Commit Graph

9142 Commits

Author SHA1 Message Date
Aaron Giles
291cc0a473 Enable NULL callbacks in timer devices. 2010-06-08 23:53:48 +00:00
Aaron Giles
ad12251785 Remove stray bitmap_free's. 2010-06-08 23:40:57 +00:00
Aaron Giles
13c37d16c5 Handle flag-less CPUs gracefully. 2010-06-08 23:31:32 +00:00
Angelo Salese
f5e34d9b12 Fixed palette / priority handling in Lucky Girl (Newer Z180 hardware) [David Haywood]
new clones
----------

Phantoms II (Space Invaders hardware) [Andrew Welburn]  (enigma2b)
Toki (US, set 2) [Corrado Tomaselli] (tokiua)

new not working
---------------

Unknown Meyco Game [Trevor Brown, Antwon Barajas] (unkmeyco)
2010-06-08 19:55:22 +00:00
Wilbert Pol
cc4ff7570d SDL: Fix compiling with OSX debugger. 2010-06-08 19:50:57 +00:00
Couriersud
1110777ee5 Fix 64bit compile on linux 4.4.0 - no whatsnew 2010-06-08 19:34:21 +00:00
Michaël Banaan Ananas
2c6823cb77 volume a bit louder 2010-06-08 17:46:30 +00:00
Aaron Giles
5e04468569 Changed CPU callbacks to use cpu_device, eliminating a bunch of casting. 2010-06-08 17:35:49 +00:00
Aaron Giles
d1e9200589 Make cpu_getpreviouspc() work again, fixing btime and some other stuff. 2010-06-08 16:28:21 +00:00
Aaron Giles
34152cd57f Minor memory cleanup. 2010-06-08 16:18:54 +00:00
Aaron Giles
91f7ba3824 Fix description of 16-bit EEPROM address space. 2010-06-08 16:09:32 +00:00
R. Belmont
3f3200082a SDL: fix compiling with GTK+ debugger 2010-06-08 14:21:52 +00:00
Michaël Banaan Ananas
78c65e37e7 lowered OKIM6295 volume to sound closer to pcb (didn't touch bootlegs, or mgakuen which runs on an older revision pcb) 2010-06-08 10:43:20 +00:00
Michaël Banaan Ananas
e3ff36fe7b removed old note, renamed dsw0 to sys0 2010-06-08 10:13:12 +00:00
Michaël Banaan Ananas
1828bcfba5 32bit mamed, official buildtools
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.
2010-06-08 09:49:12 +00:00
Aaron Giles
ccd8aaaf11 Fix SDL compile error. 2010-06-08 06:15:26 +00:00
Aaron Giles
100564d412 WARNING: There are likely to be regressions in both functionality and
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]
2010-06-08 06:09:57 +00:00
Michaël Banaan Ananas
962dca9f57 game_offsets table was outdated 2010-06-07 20:33:14 +00:00
Michaël Banaan Ananas
5e26687aaa sf2hfu was broken 2010-06-07 18:57:12 +00:00
Michaël Banaan Ananas
094afb94c0 assume dsw0 bit3 to be vblank, fixes ball speed in block, doesn't cause music problems 2010-06-07 17:47:21 +00:00
Angelo Salese
a4cd5a0731 Hooked up color prom in Kick Boy [Angelo Salese] 2010-06-07 16:13:17 +00:00
Yasuhiro Ogawa
e35ebf2193 New clone added
Wai Wai Animal Land Jr.(Japan)[Team Japump, The Dumping Union]

Added color PROM of kickboy and corrected ROM filename [Team Japump, The Dumping Union]
2010-06-07 15:25:07 +00:00
Jonathan Gevaryahu
608b1c1a27 Massive Space Invaders related comment update, documenting various sets, and the various Taito PCBs used by Space Invaders/Tabletop SI/Tabletop SI Color/Tabletop SI II/etc. [Andrew Welburn, Lord Nightmare] 2010-06-07 13:03:00 +00:00
Roberto Fresca
0655afab1c More improvements to Lucky Girl (newer Z80 based hardware) [Roberto Fresca]
Figured out the following DIP switches:

 * Auto Hold (No / Yes)
 * Game Type (Hold Game / Discard Game).
 * Adult Content (No / Yes).
 * Minimal Winning Hand (Jacks or Better / 2 Pairs).
 * Minimum Bet (1 / 5).
 * Double-Up (Normal / Poker / Bingo / No D-Up).
2010-06-07 08:20:13 +00:00
Michaël Banaan Ananas
9771680511 rv ffight clones year + added unsquad Daipro 2010-06-07 08:14:39 +00:00
Roberto Fresca
e9e9e31d9c Improvements to Lucky Girl (newer Z80 based hardware): [Roberto Fresca]
* Improved the input system, added missing buttons.
 * Figured out the full coinage DIP switches. (Coins A, B, C, Key In)
 * Found and documented the output ports.
 * Added full lamps support.
 * Created a new button-lamps layout.
 * Hooked the coin and key in counters.
 * Added technical notes.
2010-06-07 01:54:25 +00:00
Jonathan Gevaryahu
457c3aaf8d add the duplicate dipswitches for bonus lives and mark as such. no whatsnew. 2010-06-07 01:15:44 +00:00
Jonathan Gevaryahu
f432feef54 Add Bonus Life dipswitches to Moon War (prototype on frenzy hardware) [Lord Nightmare, stephh] 2010-06-06 22:03:39 +00:00
Michaël Banaan Ananas
185de455ca ffight clones year correction 2010-06-06 17:54:10 +00:00
Fabio Priuli
821f2c55b9 vsnes.c: Reworked VROM banking to avoid pointing beyond the last bank. Also, changed the use of memory_set_bankptr into memory_set_bank. [Fabio Priuli]
Finally, this patch also updates PPU regs latching according to NEStopia behavior. but I'm still investigating if this change is 100% correct or if some further modification is required...
2010-06-06 14:08:21 +00:00
Fabio Priuli
631fd6601b Added ui_active to running_machine so that it can be accessed by the OSD 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
2010-06-06 05:56:47 +00:00
mariuszw1
2cad578c21 Moved some common PC code to machine/pcshare.c [Mariusz Wojcieszek] 2010-06-05 20:42:53 +00:00
mariuszw1
7ca4c4a9f5 pcat_nit.c update [Mariusz Wojcieszek]
- 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
2010-06-05 19:41:27 +00:00
Scott Stone
5803cb7b40 Gave Vortex it's own DIP selection until the unknowns can be determined. 2010-06-05 15:36:55 +00:00
Fabio Priuli
7d09e1a3d8 small change required by MESS: TAB should not turn on the MAME Internal UI if the user has enabled newui. No effect in MAME and, hence, no whatsnew mention needed.
While at it, I also associated ESC to Menu bar toggling when in newui (like many other emulators for Windows), given that user would quit MESS with File > Exit in the menu bar.
2010-06-04 18:37:22 +00:00
Jonathan Gevaryahu
365576b578 comment update to tms5220.c, and reordered the lattice filter to better match the 5200 patent/chip (no functional difference). no whatsnew. 2010-06-04 17:59:53 +00:00
Scott Stone
592e42838a Fix of a fix (no whatsnew) 2010-06-04 17:46:40 +00:00
Scott Stone
3e2e4b0bc0 Assorted documentation fixes (no whatsnew) 2010-06-04 17:44:20 +00:00
Jonathan Gevaryahu
0e7ee2e47b New Working Games: Vortex [Lord Nightmare, David Haywood, Smitdogg, The Dumping Union]
Colors are currently missing.
2010-06-04 17:08:36 +00:00
Angelo Salese
11e9b120c9 Added proper RTC support to the ST-V driver [Angelo Salese] 2010-06-04 15:02:39 +00:00
Jonathan Gevaryahu
92d89f1516 TMS5110: remove a small bit of dead code (speak delay frames no longer exist) 2010-06-04 13:31:45 +00:00
Angelo Salese
a33597f086 Splitted the ST-V protection handlings by per-game [Angelo Salese] 2010-06-04 13:31:14 +00:00
Couriersud
53c0d14d8c SDLMAME now compiles against SDL 1.3 up to HG rev 4464. Everything beyond that revision is completely broken since Sam ripped out multi-keyboard and multi-mice support. Further information in README_SDL13.txt [Couriersud] 2010-06-03 22:27:48 +00:00
Michaël Banaan Ananas
bea58e8d37 madshark button note 2010-06-03 19:23:32 +00:00
Couriersud
734bb0628e Addd documentation about tms5110 prom interface used by bagman and ad2083. [Couriersud] 2010-06-03 19:18:02 +00:00
Angelo Salese
94738b8267 De-cloned Street Fighter 2 Turbo from sf2ce, not worth mentioning 2010-06-03 18:59:45 +00:00
Angelo Salese
d25029cec0 Small update, needs the z80 to be decrypted for making any other progress 2010-06-03 18:27:27 +00:00
Angelo Salese
b5d1a61a2c Improvements to rgum.c 2010-06-03 16:48:46 +00:00
Couriersud
eeedf64a7e Removed r5h01_config. Memory region now has to have same tag as r5h01 device. Update playch10 driver. [Couriersud] 2010-06-03 16:22:43 +00:00
Couriersud
2adf90503c Renamed rom region "user1" to "rp5h01". No whatsnew. 2010-06-03 15:59:05 +00:00