Commit Graph

51463 Commits

Author SHA1 Message Date
Nathan Woods
48af971c2e Fixed various issues that failed when compiling Vas' changes on MSVC
Most of these appear to be typos that should be benign but due to MSVC bugs, are not benign

The dac.h 'bits' thing is just stupid
2017-05-14 23:02:40 +10:00
MetalliC
b39c0759e7 minor docs update (nw) 2017-05-14 15:39:29 +03:00
Vas Crabb
0f0d39ef81 Move static data out of devices into the device types. This is a 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.
2017-05-14 21:44:11 +10:00
Lord-Nightmare
e6c4be2b4d epos.cpp: Some corrections to rom names/comments and added rom types based on pcb pictures; added note that revngr84 is a newer set rom-numbering wise than revenger is. [Lord Nightmare] 2017-05-14 03:27:30 -04:00
Philip Bennett
ba4920a71b TMS3203x: RTPS should be RPTS -nw- 2017-05-13 23:22:24 -07:00
briantro
4adc7dee30 namcos12.cpp: Correct Asia "2" region to World (nw) 2017-05-14 01:05:10 -05:00
briantro
c968380637 epos.cpp: Correct PCB layout (nw) 2017-05-14 00:19:19 -05:00
briantro
40df5a386a model3.cpp: minor doc update (nw) 2017-05-14 00:16:44 -05:00
briantro
aba1ccd0d2 New Shiritsu Justice Gakuen clone
New Clone Added
--------------------------------------
Shiritsu Justice Gakuen: Legion of Heroes (Japan 971216) [ShouTime, The Dumping Union]
2017-05-13 23:53:48 -05:00
dankan1890
0e638ad0a2 Lua scripts cleanup. 2017-05-14 14:20:38 +10:00
Ted Green
8f2c0c58c2 vrc5074: Fixed serial register handling. (nw) 2017-05-13 19:40:07 -06:00
Ted Green
1508b6d239 vegas: Added some logic to get warfa to start booting. (nw) 2017-05-13 16:28:36 -06:00
cracyc
4ebc18aeec linenoise: replace linenoise-ng with a different port that is simpler and uses a different UTF8 parser [Carl]
plugins/console: better completions [Carl]
2017-05-13 16:57:47 -05:00
Ted Green
3553a7bf42 vrc5074: Added save states. (nw) 2017-05-13 14:46:00 -06:00
Ted Green
d49614158d vegas: Converted vegas driver to use new PCI bus. 2017-05-13 14:30:06 -06:00
Ted Green
848fb62bf0 voodoo_pci: Add additional pci configuration registers for vegas support. (nw) 2017-05-13 14:30:06 -06:00
Ted Green
1c427a8692 gt64xxx: Change sdram configuration options. (nw) 2017-05-13 14:30:06 -06:00
Ted Green
d2224d2eee vrc5074: Added new Nile 4 System Controller device 2017-05-13 14:30:06 -06:00
tim lindner
06d430fbcb Emulation of Games Master Cartridge 2017-05-13 13:29:53 -07:00
briantro
7b64017afb namcos11.cpp: Dancing Eyes World Ver C (DC2/VER.C) known to exist (nw) 2017-05-13 15:16:14 -05:00
MetalliC
108cc5f67a correct NAOMI Namco games regions World<->Asia (nw) 2017-05-13 21:29:44 +03:00
MetalliC
035d96e987 new machine added as NOT_WORKING
--------------------------------
Football Power [ArcadeHacker, The Dumping Union]
2017-05-13 21:27:34 +03:00
Ivan Vangelista
23d75af6e7 more timer_pulse removal (nw) 2017-05-13 14:20:07 +02:00
Ivan Vangelista
a983f396b4 forgot mame.lst (nw) 2017-05-13 13:00:19 +02:00
Ivan Vangelista
4ac208baeb namcos11.cpp: reworked game regions according to infos provided by ShouTime (nw) 2017-05-13 12:56:38 +02:00
Ivan Vangelista
84446a9a91 new working clone
-------------------------
Penky (Italian) [ShouTime, The Dumping Union]
2017-05-13 09:04:36 +02:00
Ivan Vangelista
e89cca6a5a New working clone
--------------------------
Nibbler (rev 7) [CraftyMech]
2017-05-13 07:25:46 +02:00
hap
1cd85518e3 hmcs40: fix possible issue with irq/lpu (nw) 2017-05-12 22:33:29 +02:00
npwoods
baa7178053 Bug fix to -romident and aux verb cleanup (take two) (#2299)
* Resurrected auxverb_cleanup_and_romident_bugfix

* Changed usage for -romident and minor cleanups

* Supporting auxverbs in any order

The previous patch was supporting 'mame64 -listsource pacman' but not 'mame64 pacman -listsource'
2017-05-13 00:53:46 +10:00
hap
c8b272a6a3 hh_hmcs40: added ladders to gckong svg (nw) 2017-05-12 15:58:56 +02:00
hap
5c093fb314 hh_hmcs40: added simple workaround for bultrman (nw) 2017-05-12 15:17:26 +02:00
Lord-Nightmare
899b01ddca Irem Audio: Got rid of gen_latch usage; fixed missing d7 on sound latch; fixed device_reset to correctly clear sound latch; fixed a potential situation where sound cpu /IRQ could be incorrectly cleared [Lord Nightmare] 2017-05-12 05:29:00 -04:00
Vas Crabb
e88b5e4f9d Revert "Bug fix to -romident and aux verb cleanup (#2288)"
This reverts commit 78bf804192.
2017-05-12 17:24:56 +10:00
AJR
cce57b37b5 This is the correct MSM6253 hookup for various Sega Model N boards (nw) 2017-05-12 00:16:22 -04:00
Lord-Nightmare
4917719763 one more (nw) 2017-05-12 00:05:59 -04:00
briantro
023f574a80 epos.cpp: Spelling corrections (nw) 2017-05-11 22:59:04 -05:00
briantro
41e6527e6c epos.cpp: Id'ed correct hardward (PCB) name for earlier games (nw) 2017-05-11 22:53:49 -05:00
briantro
7a5a0ba8e7 epos.cpp: Information update (nw) 2017-05-11 22:48:36 -05:00
briantro
046d4ee1ad epos.cpp: Correct clocks and rom labels (nw)
Correct the TRISTAR 9000 clocks
Correct rom labels
combined, refined and expanded readmes for both Revenger sets
2017-05-11 22:33:08 -05:00
arbee
a2274f0509 New clones added as GAME_NOT_WORKING
Special Forces Elite Training (v01.02.00) [ShouTime, R. Belmont, The Dumping Union]
2017-05-11 22:10:32 -04:00
angelosa
d64469b4b2 Note updates (nw) 2017-05-12 03:20:48 +02:00
angelosa
38d401dd6e epos.cpp: added flip screen support [Angelo Sslese] 2017-05-12 03:14:20 +02:00
angelosa
27e82a07f5 i/o 0x38 is actually 8910 read (nw) 2017-05-12 02:27:24 +02:00
angelosa
9d97d2510e Fix The Dealer inputs (nw) 2017-05-12 01:56:31 +02:00
angelosa
c1e3f1ade4 epos.cpp: added backup RAM to dealer, revngr84 and beastf [Angelo Salese] 2017-05-12 01:48:46 +02:00
angelosa
95a2e3a939 new WORKING game
----------------
Revenger '84 [Andrew Welburn, Craig Anstett, Angelo Salese]

epos.cpp: fixed RAM based colors for The Dealer, Revenger '84 and Beastie Feastie [Angelo Salese]
2017-05-12 01:24:25 +02:00
npwoods
78bf804192 Bug fix to -romident and aux verb cleanup (#2288)
* Bug fix to -romident and aux verb cleanup

Made the following changes:
 1.  Fixed a bug where resolved slot/image options would choke -romident (reproducible in MAME 0.185 with 'mame64 -romident coco.zip')
 2.  'mame64 -romident' no longer crashes (though it doesn't do anything useful)
 3.  Changed the aux verb functions to take 'const std::string &'

* Further cleanups to auxillary verb code, as per Vas

Specifically:
 1.  The commands themselves now take 'const std::vector<std::string> &' for their argument lists
 2.  util::core_options now collects command arguments into a separate vector rather than treating them as unadorned arguments

* Vas Crabb feedback

* Now only using trim_spaces_and_quotes() when parsing INIs

Vas pointed out that it is inappropriate to trim spaces and quotes when parsing command line options
2017-05-12 09:18:20 +10:00
AJR
16cbbd9103 Improvements to romcmp
- Identify plain ASCII text files as such
- If a ROM has the same data in each half, print the hashes for that
- Avoid buffer overruns
- For calculating address masks, don't assume file size to be a power of 2
2017-05-11 18:38:39 -04:00
hap
78ecf89a06 hh_hmcs40: add note about bultrman bug cause (nw) 2017-05-12 00:06:58 +02:00
R. Belmont
c8d0aea11d Merge pull request #2292 from mark-riley/mcpx_fix
xbox: Replaced the MCPX 1.0 checksums with correct checksums.
2017-05-11 16:35:13 -04:00