summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move object finder resolution before device_start - should solve github #2759 Vas Crabb2017-10-281-0/+4
|
* (nw) srcclean - please use UTF-8 for source files, stuff that isn't valid ↵ Vas Crabb2017-09-241-1/+1
| | | | UTF-8 will be nuked, and cleaning it up by hand is annoying
* Revert Z80_R usage in alibaba, added a note about machine().rand(), open to ↵ angelosa2017-09-151-0/+2
| | | | suggestions (nw)
* Export soft_reset, hard_reset, exit, load, and save functions for Emscripten ↵ James Baicoianu2017-07-151-0/+16
| | | | builds
* Fix save/load states in Emscripten build (#2470) James Baicoianu2017-07-151-28/+56
| | | | | | | | | * Fix save/load states in Emscripten build * Simplified Emscripten integration points * Moved standalone JS functions to be static member functions of running_machine * Improved Emscripten main loop * Use convenience functions for cleaner code As an added bonus, this now allows for proper shutdown of the running machine when running in the Emscripten environment - previously, attempts to exit the program were just being ignored.
* Make machine().describe_context() a const function returning a std::string (nw) AJR2017-07-131-5/+3
| | | | As part of this change (because std::string is not printf-compatible), several devices have been updated to use the modern logmacro.h logging system.
* Minor core cleanups (nw) AJR2017-07-131-3/+3
| | | | | - disound.cpp: Make a few more methods const - machine.cpp: c_str() is no longer needed with emu_file::open since it now takes a std::string
* make device_memory_interface slightly less of a special case, use a typedef ↵ Vas Crabb2017-07-101-3/+3
| | | | to avoid nested templates everywhere (nw)
* never hurts to srcclean (nw) Vas Crabb2017-07-091-1/+1
|
* better handle the case where HTTP is not enabled. Christian Brunschen2017-07-061-18/+20
|
* Add an external panel for the Ensoniq VFX family of keyboards, with a ↵ Christian Brunschen2017-07-051-5/+5
| | | | websocket interface and an HTML/Javascript implementation that can be served over HTTP.
* Initialization ordering fixes (nw) Olivier Galibert2017-07-031-2/+6
|
* dimemory: Lift the cap on the number of address spaces per device [O. Galibert] Olivier Galibert2017-07-031-3/+5
|
* general cleanup: Vas Crabb2017-05-231-8/+8
| | | | | | | | | | | * move rarely-used output and pty interfaces out of emu.h * consolidate and de-duplicate forward declarations, also remove some obsolete ones * clean up more #include guard macros * scope down a few more things (nw) Everyone, please keep forward declarations for src/emu in src/emu/emufwd.h - this will make it far easier to keep them in sync with declarations than having them scattered through all the other files.
* Move static data out of devices into the device types. This is a ↵ Vas Crabb2017-05-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | significant change, so please pay attention. The core changes are: * Short name, full name and source file are no longer members of device_t, they are part of the device type * MACHINE_COFIG_START no longer needs a driver class * MACHINE_CONFIG_DERIVED_CLASS is no longer necessary * Specify the state class you want in the GAME/COMP/CONS line * The compiler will work out the base class where the driver init member is declared * There is one static device type object per driver rather than one per machine configuration Use DECLARE_DEVICE_TYPE or DECLARE_DEVICE_TYPE_NS to declare device type. * DECLARE_DEVICE_TYPE forward-declares teh device type and class, and declares extern object finders. * DECLARE_DEVICE_TYPE_NS is for devices classes in namespaces - it doesn't forward-declare the device type. Use DEFINE_DEVICE_TYPE or DEFINE_DEVICE_TYPE_NS to define device types. * These macros declare storage for the static data, and instantiate the device type and device finder templates. The rest of the changes are mostly just moving stuff out of headers that shouldn't be there, renaming stuff for consistency, and scoping stuff down where appropriate. Things I've actually messed with substantially: * More descriptive names for a lot of devices * Untangled the fantasy sound from the driver state, which necessitates breaking up sound/flip writes * Changed DECO BSMT2000 ready callback into a device delegate * Untangled Microprose 3D noise from driver state * Used object finders for CoCo multipak, KC85 D002, and Irem sound subdevices * Started to get TI-99 stuff out of the TI-990 directory and arrange bus devices properly * Started to break out common parts of Samsung ARM SoC devices * Turned some of FM, SID, SCSP DSP, EPIC12 and Voodoo cores into something resmbling C++ * Tried to make Z180 table allocation/setup a bit safer * Converted generic keyboard/terminal to not use WRITE8 - space/offset aren't relevant * Dynamically allocate generic terminal buffer so derived devices (e.g. teleprinter) can specify size * Imporved encapsulation of Z80DART channels * Refactored the SPC7110 bit table generator loop to make it more readable * Added wrappers for SNES PPU operations so members can be made protected * Factored out some boilerplate for YM chips with PSG * toaplan2 gfx * stic/intv resolution * Video System video * Out Run/Y-board sprite alignment * GIC video hookup * Amstrad CPC ROM box members * IQ151 ROM cart region * MSX cart IRQ callback resolution time * SMS passthrough control devices starting subslots I've smoke-tested several drivers, but I've probably missed something. Things I've missed will likely blow up spectacularly with failure to bind errors and the like. Let me know if there's more subtle breakage (could have happened in FM or Voodoo). And can everyone please, please try to keep stuff clean. In particular, please stop polluting the global namespace. Keep things out of headers that don't need to be there, and use things that can be scoped down rather than macros. It feels like an uphill battle trying to get this stuff under control while more of it's added.
* Refactoring/cleanup to state load/save handling Nathan Woods2017-05-101-22/+22
| | | | | - Changed running_machine::schedule_[load|save]() to take 'std::string &&' instead of 'const char *' - Changed running_machine::saveload_schedule to be 'enum class'
* Fixed issue with the Emscripten port where the emulation would continue to ↵ Justin Kerk2017-05-031-0/+5
| | | | run while paused. [Steven Hugg]
* Refactored HTTP handling to be easier to extend and use (nw) Miodrag Milanovic2017-03-191-6/+7
|
* debugger_access: Refactor [O. Galibert] Olivier Galibert2017-03-021-0/+1
|
* Self-registering devices prep: Vas Crabb2017-02-271-1/+1
| | | | | | | | | | | | | | * Make device_creator a variable template and get rid of the ampersands * Remove screen.h and speaker.h from emu.h and add where necessary * Centralise instantiations of screen and speaker finder templates * Add/standardise #include guards in many hearers * Remove many redundant #includes * Order #includesr to help catch headers that can't be #included alone (nw) This changes #include order to be prefix, unit header if applicable then other stuff roughly in order from most dependent to least dependent library. This helps catch headers that don't #include things that they use.
* Update machine.cpp PugsyMAME2017-02-251-0/+1
|
* srcclean (nw) Vas Crabb2017-01-221-2/+2
|
* Fix issue enabling/disabling http (nw) Miodrag Milanovic2017-01-041-0/+2
|
* One more fix (nw) Miodrag Milanovic2017-01-041-1/+1
|
* Added initial HTTP/HTTPS webserver/websocket server support (nw) Miodrag Milanovic2017-01-041-1/+29
|
* Revert "moved debugger_access() from address space to machine & removed the ↵ Vas Crabb2016-11-211-10/+0
| | | | | | anti-patterns that updated cascading address spaces. [smf]" This reverts commit 5f05fbf61348c65204fde1e2aeed72de4cb56593.
* moved debugger_access() from address space to machine & removed the ↵ smf-2016-11-191-0/+10
| | | | anti-patterns that updated cascading address spaces. [smf]
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-4/+4
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* machine: don't do the periodic_check before every timeslice (nw) cracyc2016-11-171-3/+0
|
* Do not use FUNC in delegate where applicable (nw) Miodrag Milanovic2016-11-061-2/+2
|
* Moved device_memory_interface from driver_device to dummy_space_device. ↵ smf-2016-11-031-1/+48
| | | | Exposed the dummy_space_device as machine().dummy_space(), with a trampoline in driver_device for existing callers. Debugger no longer needs to special case root_device() to avoid showing the dummy address space. [smf]
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-3/+3
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* Soft resets no longer turn back clocks on devices AJR2016-10-091-2/+25
| | | | | | | device_rtc_interface: Cleanups and refinements (nw) - Give RTCs their own phase of machine initialization, right after NVRAM loading - Make RTC feature flag overrides const, including one new one - Make rtc_clock_updated a required override
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-1/+1
| | | | to inline functions (nw)
* Introduced running_machine::compose_saveload_filename() function to convert ↵ Nathan Woods2016-07-101-7/+28
| | | | a filename (for state save/load) to a fully qualified path
* Incorporated cleanups requested by Vas Crabb Nathan Woods2016-06-241-1/+1
|
* C++-ified osd_directory (now osd::directory), and added last_modified to ↵ Nathan Woods2016-06-241-1/+1
| | | | osd::directory::entry
* "game" ==> "machine" Nathan Woods2016-06-231-2/+2
|
* More efficient device error logging AJR2016-06-201-0/+13
|
* remove all usages of tagmap Miodrag Milanovic2016-06-181-2/+2
|
* Fix build on MSVC thanks to Rene, also fix debug_break crashes therealmogminer@gmail.com2016-06-081-0/+11
|
* Major refactoring of debugger core [Ryan Holtz] therealmogminer@gmail.com2016-06-081-8/+9
| | | | | | | | * Eliminate globals/file statics * Remove lots of stuff from global scope * Use std::function for custom command registration * Eliminate some trampolines * Build fixes from Vas Crabb and balr0g
* Ioport refactoring and cleanups (nw) AJR2016-05-181-1/+1
| | | | | | - Completely move mouse hit testing down into the UI input module. This reduces some dependencies. - Never return a null pointer from ioport_field::name() to prevent potential crashes. All anonymous inputs are classified as INPUT_CLASS_INTERNAL, so several frontend functions now check type_class instead. - Correct a couple of typos.
* Move slider_state and ui_menu_item into src/frontend/mame, nw therealmogminer@gmail.com2016-05-161-0/+1
|
* remove legacy calls (nw) Miodrag Milanovic2016-05-011-101/+0
|
* Make watchdog timer a separate device AJR2016-04-301-0/+12
| | | | | - Separate watchdog implementation from running_machine (once again) and driver_device - Old-style methods, now hidden behind #ifdefs, will probably be safe to remove soon
* Cleanups and version bumpmame0173 Miodrag Milanovic2016-04-271-1/+1
|
* Merge remote-tracking branch 'upstream/master' into firstrun AJR2016-04-251-1/+2
|\
| * Fixed cheat issue (nw) Miodrag Milanovic2016-04-251-1/+2
| |
* | Machine management cleanups AJR2016-04-251-3/+5
|/ | | | | | - Boolean parameter to running_machine::run is no longer firstrun (which is now a member variable of mame_machine_manager) but quiet, which disables logging and audio recording without explicitly checking the system name. - Sound recording is now turned on and off by explicit calls. The potential uses of this have not been explored. - Dependencies reduced on drivenum.h, where the declaration for GAME_NAME(___empty) has been moved to.