summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hashfile moved from MESS to emu section (needed for now in image support ↵mame0138u2 Miodrag Milanovic2010-06-173-0/+654
| | | | until softlist implementation is finished), this doesn't affect mame side (no whatsnew)
* Cleanups and version bump. Aaron Giles2010-06-1775-625/+625
|
* Fixed missing cpu_device -> legacy_cpu_device (no whatsnew) Miodrag Milanovic2010-06-172-2/+2
|
* Fix sound timing issues. Aaron Giles2010-06-171-1/+1
|
* Change cpu_device into a base class. Rename old cpu_device to legacy_cpu_device. Aaron Giles2010-06-17118-332/+390
| | | | Update interfaces as appropriate.
* The last OS X PPC compile fix (really) (no whatsnew) R. Belmont2010-06-171-1/+1
|
* Near the end? (no whatsnew) R. Belmont2010-06-171-3/+3
|
* devicelist.first hates me (no whatsnew) R. Belmont2010-06-171-1/+1
|
* Whack. Mole. Assembly required. (no whatsnew) R. Belmont2010-06-171-3/+3
|
* Guess what (no whatsnew) R. Belmont2010-06-171-1/+1
|
* Infinite PPC OS X compile fixes (no whatsnew) R. Belmont2010-06-171-1/+1
|
* Yet more OS X PPC compile fixes (still no whatsnew) R. Belmont2010-06-171-2/+2
|
* Even more OS X PPC compile fixes (no whatsnew) R. Belmont2010-06-171-1/+1
|
* More OS X PPC compile fixes (no whatsnew) R. Belmont2010-06-171-1/+1
|
* More OS X PPC fixes (no whatsnew) R. Belmont2010-06-171-1/+1
|
* More OS X PPC compile fixes (no whatsnew) R. Belmont2010-06-171-1/+1
|
* More OS X PPC fixes (no whatsnew) R. Belmont2010-06-171-1/+1
|
* Fixes for OS X PowerPC compile [R. Belmont] R. Belmont2010-06-172-2/+2
|
* - moved opresolv and zippath into /lib/util from MESS [Miodrag Milanovic] Miodrag Milanovic2010-06-163-746/+0
| | | - removed ifdef MESS from osd part since calls are needed by zippath
* emuopts - added support for image devices parameters [Miodrag Milanovic] Miodrag Milanovic2010-06-162-0/+105
|
* Image device cleanup (no whatsnew) Miodrag Milanovic2010-06-165-196/+230
|
* -romident can now identify chd's [smf] smf-2010-06-151-12/+72
|
* devlegacy.c,clifront.c,info.c [Miodrag Milanovic] Miodrag Milanovic2010-06-1510-5/+1406
| | | | | | | - Created legacy image device - Moved opresolv implementation from MESS - listmedia is option is available in MAME too - listxml output now contains image devices
* Regression fixes: Aaron Giles2010-06-148-74/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | atarijsa.c: just use a generic device for the tms5220 to handle variants until we have a proper base class (fixes eprom, eprom2 - eprom.c "assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src") decocass.c: invert sense of reset line to MCU (fixes All sets in decocass.c - Games no longer begin loading (countdown)) metro.c: use generic device for the YM sound since multiple YM chips are used. (fixes 3kokushi, blzntrnd, dharma, dharmak, dokyusei, dokyusp, gstrik2, gstrik2j, karatour, ladykill, lastfort, lastforte, lastforte, lastfortg, lastfortk, skyalert, toride2g, toride2gg, toride2j - metro.c "assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src") mitchell.c: when swapping the OKIM6295 for an MSM5205, use a different tag. (fixes pangba, spangbl - mitchell.c "assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src") deco32.c: use a proper EEPROM device to fetch the space from. (fixes tattass, tattassa - deco32.c - Crash while checking "Jack Ram" before start "assert: src/emu/emucore.h:328: dynamic_cast<_Dest>(src) == src") system1.c: use a proper z80pio_device (cleanup) vconv.c: support -g* options for MSVC builds (cleanup) m377101.c/g65816.c: fix fault logic for mapping icount (fixes All sets in namcofl.c, namcona1.c, namconb1.c, nss.c, sfcbox.c, snesb.c airco22b, cybrcycc, dirtdash, rrf, timecrs, timecrsa - namcos22.c Hanging immediately or shortly after start. "assert: src/emu/schedule.c:189: ran >= *exec->m_icount") schedule.c/diexec.c/timer.c: add temporary logging to permit direct comparisons with earlier games timing (cleanup) generic.c: fix computation of time for turning off the IRQ when using generic_pulse_irq() to account for CPU-local time (fixes Any sets in bublbobl.c which use the which use m6801 - Frequent/Random watchdog resets.) z80pio.c: convert internal line states to bool, and fix typo (control_write should have been data_write in one place) (fixes Any system1.c games which use z80pio - No sound)
* Legacy memory and nvram device define and declare had exchanged ↵ Miodrag Milanovic2010-06-131-4/+4
| | | | implementation,requires full recompile (no whatsnew)
* Fixed illegal opcodes message, not worth mentioning Angelo Salese2010-06-131-2/+2
|
* Removed not needed constant, set proper return type and added call to m4510 ↵ Miodrag Milanovic2010-06-134-12/+7
| | | | core too (no whatsnew)
* Added back software list support in emu core, and update 6510 and SM8500 cpu ↵ Miodrag Milanovic2010-06-136-14/+98
| | | | cores with calls needed by MESS (no whatsnew)
* Split implementation for legacy devices into a separate macro. Updated all Aaron Giles2010-06-11141-119/+464
| | | | | | | | devices to use this macro in their .c file. This greatly reduces the amount of work the linker has to do to combine all the instances, and reduces the final binary size when building with symbols. Unfortunately, in order to do it I had to switch back to macros from templates, but I can live with that for legacy devices.
* Add back the validity check support for legacy devices to help MESS. Aaron Giles2010-06-112-0/+23
|
* MESS related fixes to enable compile after device rewrite (no whatsnew) Miodrag Milanovic2010-06-113-5/+4
|
* Flash: 4k sectors should erase in 1/8th the time of 64k. Miodrag Milanovic2010-06-112-12/+74
| | | extend core to support GBA chip types. [R.Belmont]
* Fix several timing problems: Aaron Giles2010-06-103-9/+15
| | | | | | | | * suspend-until-time was broken (CPU would be suspended and never resumed) * timer devices would fire an initial callback even if not set up with a time yet * triggers requested after a time would fire twice; once right away and once at the target time Fixes many regressions.
* Cache pointer to exit function to prevent crashes on teardown. Aaron Giles2010-06-092-18/+15
|
* Initialize m_scantime and m_pixeltime to non-zero values to prevent divide by Aaron Giles2010-06-091-2/+2
| | | | zero if called prior to initialization.
* Change cpu execute function to just use the icount stuffed by Aaron Giles2010-06-09105-443/+101
| | | | | the scheduler, rather than manging an incoming cycle count. It was confusing to have multiple sources of cycle counts.
* Tweak to s2650 IRQ cycle handling to fix gcc codegen bug. Aaron Giles2010-06-093-1/+8
| | | | Added asserts to catch other unexpected situations.
* Enable NULL callbacks in timer devices. Aaron Giles2010-06-081-1/+2
|
* Remove stray bitmap_free's. Aaron Giles2010-06-082-5/+3
|
* Handle flag-less CPUs gracefully. Aaron Giles2010-06-082-2/+2
|
* Fix 64bit compile on linux 4.4.0 - no whatsnew Couriersud2010-06-081-1/+1
|
* Changed CPU callbacks to use cpu_device, eliminating a bunch of casting. Aaron Giles2010-06-08123-540/+549
|
* Make cpu_getpreviouspc() work again, fixing btime and some other stuff. Aaron Giles2010-06-081-0/+1
|
* Minor memory cleanup. Aaron Giles2010-06-081-95/+91
|
* Fix description of 16-bit EEPROM address space. Aaron Giles2010-06-081-1/+1
|
* 32bit mamed, official buildtools Michaël Banaan Ananas2010-06-081-2/+2
| | | | | | | src/emu/info.c: In function 'void print_game_info(FILE*, const game_driver*)': src/emu/info.c:600: error: 'sound' may be used uninitialized in this function src/emu/info.c:600: note: 'sound' was declared here it didn't give the error in the similar function print_game_sampleof but I initialized sound to NULL there too to be sure.
* WARNING: There are likely to be regressions in both functionality and Aaron Giles2010-06-08535-16549/+20297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | performance as a result of this change. Do not panic; report issues to the list in the short term and I will look into them. There are probably also some details I forgot to mention. Please ask questions if anything is not clear. NOTE: This is a major internal change to the way devices are handled in MAME. There is a small impact on drivers, but the bulk of the changes are to the devices themselves. Full documentation on the new device handling is in progress at http://mamedev.org/devwiki/index.php/MAME_Device_Basics Defined two new casting helpers: [Aaron Giles] downcast<type>(value) should be used for safe and efficient downcasting from a base class to a derived class. It wraps static_cast<> by adding an assert that a matching dynamic_cast<> returns the same result in debug builds. crosscast<type>(value) should be used for safe casting from one type to another in multiple inheritance scenarios. It compiles to a dynamic_cast<> plus an assert on the result. Since it does not optimize down to static_cast<>, you should prefer downcast<> over crosscast<> when you can. Redefined running_device to be a proper C++ class (now called device_t). Same for device_config (still called device_config). All devices and device_configs must now be derived from these base classes. This means each device type now has a pair of its own unique classes that describe the device. Drivers are encouraged to use the specific device types instead of the generic running_device or device_t classes. Drivers that have a state class defined in their header file are encouraged to use initializers off the constructor to locate devices. [Aaron Giles] Removed the following fields from the device and device configuration classes as they never were necessary or provided any use: device class, device family, source file, version, credits. [Aaron Giles] Added templatized variant of machine->device() which performs a downcast as part of the device fetch. Thus machine->device<timer_device>("timer") will locate a device named "timer", downcast it to a timer_device, and assert if the downcast fails. [Aaron Giles] Removed most publically accessible members of running_device/device_t in favor of inline accessor functions. The only remaining public member is machine. Thus all references to device->type are now device->type(), etc. [Aaron Giles] Created a number of device interface classes which are designed to be mix- ins for the device classes, providing specific extended functionality and information. There are standard interface classes for sound, execution, state, nvram, memory, and disassembly. Devices can opt into 0 or more of these classes. [Aaron Giles] Converted the classic CPU device to a standard device that uses the execution, state, memory, and disassembly interfaces. Used this new class (cpu_device) to implement the existing CPU device interface. In the future it will be possible to convert each CPU core to its own device type, but for now they are still all CPU devices with a cpu_type() that specifies exactly which kind of CPU. [Aaron Giles] Created a new header devlegcy.h which wraps the old device interface using some special template classes. To use these with an existing device, simply remove from the device header the DEVICE_GET_INFO() declaration and the #define mapping the ALL_CAPS name to the DEVICE_GET_INFO. In their place #include "devlegcy.h" and use the DECLARE_LEGACY_DEVICE() macro. In addition, there is a DECLARE_LEGACY_SOUND_DEVICE() macro for wrapping existing sound devices into new-style devices, and a DECLARE_LEGACY_NVRAM_DEVICE() for wrapping NVRAM devices. Also moved the token and inline_config members to the legacy device class, as these are not used in modern devices. [Aaron Giles] Converted the standard base devices (VIDEO_SCREEN, SPEAKER, and TIMER) from legacy devices to the new C++ style. Also renamed VIDEO_SCREEN to simply SCREEN. The various global functions that were previously used to access information or modify the state of these devices are now replaced by methods on the device classes. Specifically: video_screen_configure() == screen->configure() video_screen_set_visarea() == screen->set_visible_area() video_screen_update_partial() == screen->update_partial() video_screen_update_now() == screen->update_now() video_screen_get_vpos() == screen->vpos() video_screen_get_hpos() == screen->hpos() video_screen_get_vblank() == screen->vblank() video_screen_get_hblank() == screen->hblank() video_screen_get_width() == screen->width() video_screen_get_height() == screen->height() video_screen_get_visible_area() == screen->visible_area() video_screen_get_time_until_pos() == screen->time_until_pos() video_screen_get_time_until_vblank_start() == screen->time_until_vblank_start() video_screen_get_time_until_vblank_end() == screen->time_until_vblank_end() video_screen_get_time_until_update() == screen->time_until_update() video_screen_get_scan_period() == screen->scan_period() video_screen_get_frame_period() == screen->frame_period() video_screen_get_frame_number() == screen->frame_number() timer_device_adjust_oneshot() == timer->adjust() timer_device_adjust_periodic() == timer->adjust() timer_device_reset() == timer->reset() timer_device_enable() == timer->enable() timer_device_enabled() == timer->enabled() timer_device_get_param() == timer->param() timer_device_set_param() == timer->set_param() timer_device_get_ptr() == timer->get_ptr() timer_device_set_ptr() == timer->set_ptr() timer_device_timeelapsed() == timer->time_elapsed() timer_device_timeleft() == timer->time_left() timer_device_starttime() == timer->start_time() timer_device_firetime() == timer->fire_time() Updated all drivers that use the above functions to fetch the specific device type (timer_device or screen_device) and call the appropriate method. [Aaron Giles] Changed machine->primary_screen and the 'screen' parameter to VIDEO_UPDATE to specifically pass in a screen_device object. [Aaron Giles] Defined a new custom interface for the Z80 daisy chain. This interface behaves like the standard interfaces, and can be added to any device that implements the Z80 daisy chain behavior. Converted all existing Z80 daisy chain devices to new-style devices that inherit this interface. [Aaron Giles] Changed the way CPU state tables are built up. Previously, these were data structures defined by a CPU core which described all the registers and how to output them. This functionality is now part of the state interface and is implemented via the device_state_entry class. Updated all CPU cores which were using the old data structure to use the new form. The syntax is currently awkward, but will be cleaner for CPUs that are native new devices. [Aaron Giles] Converted the okim6295 and eeprom devices to the new model. These were necessary because they both require multiple interfaces to operate and it didn't make sense to create legacy device templates for these single cases. (okim6295 needs the sound interface and the memory interface, while eeprom requires both the nvram and memory interfaces). [Aaron Giles] Changed parameters in a few callback functions from pointers to references in situations where they are guaranteed to never be NULL. [Aaron Giles] Removed MDRV_CPU_FLAGS() which was only used for disabling a CPU. Changed it to MDRV_DEVICE_DISABLE() instead. Updated drivers. [Aaron Giles] Reorganized the token parsing for machine configurations. The core parsing code knows how to create/replace/remove devices, but all device token parsing is now handled in the device_config class, which in turn will make use of any interface classes or device-specific token handling for custom token processing. [Aaron Giles] Moved many validity checks out of validity.c and into the device interface classes. For example, address space validation is now part of the memory interface class. [Aaron Giles] Consolidated address space parameters (bus width, endianness, etc.) into a single address_space_config class. Updated all code that queried for address space parameters to use the new mechanism. [Aaron Giles]
* Added ui_active to running_machine so that it can be accessed by the OSD ↵ Fabio Priuli2010-06-063-5/+7
| | | | | | | input code. A clean compile is probably required. No whatsnew needed. Brief explaination: ui_active is a variable which helps systems with keyboard input devices (mainly MESS computers, but it might be handy when MAME fully emulates games like Typing of the Dead) to determine if keys like 'P', 'TAB', 'ESC', etc. should be interpreted as UI actions (pause, enter menu, quit emu...) or as inputs in the emulated keyboard. this change is to allow for additional OSD-specific inputs (which are defined osd/ sources) to check for ui_active before getting detected, in case they collide with emulated inputs
* Moved some common PC code to machine/pcshare.c [Mariusz Wojcieszek] mariuszw12010-06-051-0/+3
|
* pcat_nit.c update [Mariusz Wojcieszek] mariuszw12010-06-058-4/+2751
| | | | | | | - added VGA emulation from MESS - added INS8250 emulation from MESS - added format decimal support to Microtouch - added rom banking and inputs to pcat_nit games - streetg(2) now boot properly