Commit Graph

9742 Commits

Author SHA1 Message Date
Phil Bennett
98630a96d7 03961: racedriv and clones: Game resets itself before game start [Phil Bennett]
Given that cpu_eat_cycles() doesn't work in this case and the old method of getting icount is deprecated, let's just remove the hack...
2010-08-19 13:30:03 +00:00
Scott Stone
9b55f891e9 Fix 04006: fixeightb: Graphic glitches 2010-08-19 10:46:59 +00:00
Phil Bennett
71059b2a59 [Append to neodrvr.c change list]
* Corrected ROM_REGION "maincpu" for
 . twinspri, ghostlop, aof2, aof2a, fightfev, fightfeva
 * Added correct p1 ROM to irrmaze


That's the last of the external submissions Aaron.

---------- Forwarded message ----------
From: Manuel Carreras <jaybeewip@yahoo.es>
Date: Sun, Aug 15, 2010 at 12:29 PM
Subject: submission 2 for Mame 0.139u1
To: submit@mamedev.org
Cc: jaybeewip@gawab.com


Hi mamedev,

a second small submission for Mame 0.139u1.

ReadMe and diff are in attached .zip

Thx
jb

Submission 2 from Johnboy for Mame v0.139u1

Changed files:
===============
src\mame\drivers\neodrvr.c


Changes:
========
Corrected ROM_REGION "maincpu" for
 . twinspri, ghostlop, aof2, aof2a, fightfev, fightfeva
Added correct p1 to irrmaze
2010-08-19 09:36:40 +00:00
Phil Bennett
50e0cc725a neodrvr.c updates: [Johnboy]
* Renamed the following sets:
    sengokh -> sengokuh,
    fatfursa -> fatfurspa,
    shocktra -> shocktroa
    kof99 -> kof99h,
    kof99a -> kof99
 * Removed wh2j (only diff. C-ROM arrangement; same data)
 * Added correct m1 to sengoku3


---------- Forwarded message ----------
From: Manuel Carreras <jaybeewip@yahoo.es>
Date: Sat, Aug 14, 2010 at 6:03 PM
Subject: submission for Mame 0.139u1
To: submit@mamedev.org
Cc: jaybeewip@gawab.com


Hi mamedev,

a small submission for Mame 0.139u1.

ReadMe and diff are in attached .zip

Thx
jb


Submission from Johnboy for Mame v0.139u1

Changed files:
===============
src\mame\mamedriv.c
src\mame\drivers\neodrvr.c
src\mame\machine\neoprot.c

Changes:
========

Renamed the following clone sets:
. sengokh, fatfursa, shocktra
Removed wh2j (only diff. c-rom arrangement; same data)
Added correct m1 to sengoku3
Renamed kof99 to kof99h and kof99a to kof99
2010-08-19 09:02:12 +00:00
Aaron Giles
0edda6dda2 Remove memory_read/write_byte/word/dword/qword* variants. Again, this is mostly
bulk search & replace:

S: memory_read_([bytewordq]+)_[0-9lbe_maskd]+( *)\(( *)([^,]+)( *),( *)
R: \4->read_\1\2\(\3

S: memory_read_([bytewordq]+)( *)\(( *)([^,]+)( *),( *)
R: \4->read_\1\2\(\3

S: memory_write_([bytewordq]+)_[0-9lbe_maskd]+( *)\(( *)([^,]+)( *),( *)
R: \4->write_\1\2\(\3

S: memory_write_([bytewordq]+)( *)\(( *)([^,]+)( *),( *)
R: \4->write_\1\2\(\3

Gets 99% of the cases.
2010-08-19 08:27:05 +00:00
Aaron Giles
3598b772bc Replace "const address_space" with "address_space" throughout the system.
The purpose of making it const before was to discourage direct tampering,
but private/protected does a better job of that now anyhow, and it is
annoying now.

    s/const[ \t]+address_space\b/address_space/g;

Is basically what I did.
2010-08-19 07:26:14 +00:00
Aaron Giles
dd19e512c0 Massive memory system change. This is another step along the path toward
supporting cleaner implementations of drivers in the explicitly OO world.
Expect a follow-on of several more changes to clean up from this one, which
deliberately tried to avoid touching much driver code.

Converted address_space to a class, and moved most members behind accessor
methods, apart from space->machine and space->cpu. Removed external references
to 8le/8be/16le/16be/32le/32be/64le/64be. All external access is now done via
virtual functions read_byte()/read_word()/etc. Moved differentiation between
the endianness and the bus width internal to memory.c, and also added a new
axis to support small/large address spaces, which allows for faster lookups
on spaces smaller than 18 bits. 

Provided methods for most global memory operations within the new address_space 
class. These will be bulk converted in a future update, but for now there are
inline wrappers to hide this change from existing callers.

Created new module delegate.h which implements C++ delegates in a form that 
works for MAME. Details are in the opening comment. Delegates allow member 
functions of certain classes to be used as callbacks, which will hopefully 
be the beginning of the end of fetching the driver_data field in most 
callbacks. All classes that host delegates must derive from bindable_object.
Today, all devices and driver_data do implicitly via their base class.

Defined delegates for read/write handlers. The new delegates are always
passed an address_space reference, along with offset, data, and mask. Delegates
can refer to methods either in the driver_data class or in a device class.
To specify a callback in an address map, just use AM_READ_MEMBER(class, member).
In fact, all existing AM_ macros that take read/write handlers can now accept
delegates in their place. Delegates that are specified in an address map are
proto-delegates which have no object; they are bound to their object when
the corresponding address_space is created.

Added machine->m_nonspecific_space which can be passed as the required
address_space parameter to the new read/write methods in legacy situations 
where the space is not provided. Eventually this can go away but we will
need it for a while yet.

Added methods to the new address_space class to dynamically install delegates
just like you can dynamically install handlers today. Delegates installed this
way must be pre-bound to their object.

Moved beathead's read/write handlers into members of beathead_state as an
example of using the new delegates. This provides examples of both static (via
an address_map) and dynamic (via install_handler calls) mapping using delegates.

Added read/write member functions to okim6295_device as an example of using
delegates to call devices. Updated audio/williams.c as a single example of
calling the device via its member function callbacks. These will be bulk
updated in a future update, and the old global callbacks removed.

Changed the DIRECT_UPDATE_CALLBACKs into delegates as well. Updated all users
to the new function format. Added methods on direct_read_data for configuring the
parameters in a standard way to make the implementation clearer.

Created a simple_list template container class for managing the common
singly-linked lists we use all over in the project.

Many other internal changes in memory.c, mostly involving restructuring the code
into proper classes.
2010-08-19 06:57:51 +00:00
Angelo Salese
bf9afe4c4b Improved the memory management some more 2010-08-19 03:32:49 +00:00
Angelo Salese
bd5af6aa45 Fixed another memory management bug 2010-08-19 02:48:25 +00:00
Angelo Salese
3d1b853486 Added flyback 2010-08-19 02:28:26 +00:00
Angelo Salese
77e01f0037 ...fixed for good 2010-08-19 01:42:04 +00:00
Angelo Salese
339da06f52 Fixed a crash 2010-08-19 01:39:12 +00:00
Angelo Salese
442902ef9c Fixed broken POST checks 2010-08-19 01:09:28 +00:00
Phil Bennett
2e53eacc98 03755: soldivid: No music after loading savestate (or -autosave) [Phil Bennett]
Added missing save-state registration entries to the SH-2 core [Phil Bennett]
2010-08-18 23:40:14 +00:00
Angelo Salese
6df8458d6f Rewritten I/O device r/w accesses in Acorn Archimedes/Aristocrat MK-5 [Angelo Salese] 2010-08-18 23:38:29 +00:00
Angelo Salese
3614f73b6d Added set chip roms to Aristocrat MK-5 2010-08-18 22:14:23 +00:00
Phil Bennett
9c638cb87c 03820: batlbubl, bangball: Using -autosave causes audio to malfunction [Phil Bennett]
Added save-state support to the YMF278B core [Phil Bennett]
2010-08-18 22:00:49 +00:00
Angelo Salese
f4cdf4b4fe Fixed Diamond Touch screen settings (fixed htotal/vtotal) 2010-08-18 21:24:30 +00:00
Angelo Salese
8a91eb89d0 Fixed x/y offsets, added interlace mode 2010-08-18 21:08:18 +00:00
Angelo Salese
9000eb69e3 Improved video emulation to the Aristocrat MK-5, added bare-bones VIDC DMA transfer and timings, added 8bpp mode [Angelo Salese] 2010-08-18 20:37:01 +00:00
Angelo Salese
4a4eddedbe Used logical addresses for video and fixed sound frequency 2010-08-18 16:19:31 +00:00
Angelo Salese
0634470398 Fixed a fatal bug in MEMC handling and removed the mapping kludge for Aristocrat MK-5 [Angelo Salese] 2010-08-18 16:02:04 +00:00
Angelo Salese
ac6c07a019 new clones
----------
Pioneer Balloon (Rock-Ola license) [gamerfan, Smitdogg, The Dumping Union]
2010-08-18 12:38:46 +00:00
Phil Bennett
3bd34bad40 03986: All sets in enigma2.c: Most Dip Switches no longer function [Phil Bennett] 2010-08-18 12:28:22 +00:00
Phil Bennett
508d845437 04001: All sets in mappy.c: Reload of state causes audio corruption [Phil Bennett] 2010-08-18 10:06:00 +00:00
Angelo Salese
977c250951 Fixed VIDC CRTC behaviour, not worth mentioning 2010-08-17 16:01:49 +00:00
Angelo Salese
cd9508e9d8 Added some new notes 2010-08-17 10:59:22 +00:00
Angelo Salese
3951c85f8a Updated to the latest source tree 2010-08-17 09:50:06 +00:00
R. Belmont
0829705164 Attempt to fix reported GCC 4.5 problems [R. Belmont] 2010-08-17 01:00:44 +00:00
Angelo Salese
ba756dfc3c Added 2KHz timer to Aristocrat MK-5 HW [Angelo Salese] 2010-08-17 00:37:43 +00:00
Angelo Salese
f0b317cde6 Made the I2C clock bit to be AA-specific 2010-08-16 23:03:42 +00:00
Angelo Salese
77ab1ae19d Added sound hook-up to the Erotictac HW, sound doesn't yet work due of missing memory management hook-up [Angelo Salese] 2010-08-16 22:56:43 +00:00
Jonathan Gevaryahu
0791702208 Add IC pinout to VLM5030 driver. Still need translation of the datasheet for VCU, RST (which does more than just reset) and MTE. [Lord Nightmare] 2010-08-16 21:59:46 +00:00
Angelo Salese
47151b7ceb Fixed the Sound DMA in Acorn Archimedes / Aristocrat MK-5, adding sound support to the drivers [Angelo Salese] 2010-08-16 21:16:33 +00:00
Angelo Salese
ea32352618 Implemented I2C accesses to the Acorn Archimedes / Aristocrat MK-5 HW, fixing SRAM check [Angelo Salese]
Added clock read-back register to the I2C device [Angelo Salese]
2010-08-16 20:49:00 +00:00
Scott Stone
155802611f Volume adjustment to yunsun16.c - YM was much lower in volume compared to samples and other sounds. (no whatsnew) 2010-08-16 19:47:33 +00:00
Angelo Salese
2c16861c42 new WORKING game
----------------
Doki Doki Idol Star Seeker [Hurray Banana, cacis, Team Japump, David Haywood, The Dumping Union]
2010-08-16 18:20:58 +00:00
Phil Bennett
cb6fdddfda 03994: All sets in dcheese.c: Reload of state cause audio corruption [Phil Bennett] 2010-08-16 17:36:31 +00:00
Angelo Salese
09e9c65fbb Acorn Archimedes / Aristocrat MK-5: Added Force IRQ/FIRQ hook-up and hooked up an undefined behaviour for a timer check, fixes CPU check during POST [Angelo Salese] 2010-08-16 17:10:00 +00:00
Angelo Salese
0d8556a7da Virtual memory initial bank hack, to show all of the MK-5 errors, no whatsnew 2010-08-16 16:07:14 +00:00
Angelo Salese
557293e730 Hooked up some quick and dirty video routine to Aristocrat Mk-5 [Angelo Salese] 2010-08-16 15:06:51 +00:00
Phil Bennett
9ddee4ab77 Merged topshoot into the megadrvb driver (formerly genesisb) [Sonikos]
---------- Forwarded message ----------
From: abcd efgh <cix_999@yahoo.it>

- Hide quoted text -
Date: Sat, Aug 14, 2010 at 8:41 PM
Subject: topshoot/genesisb
To: submit@mamedev.org


Hi

I merge topshoot into genesisb driver.

bye sonikos
2010-08-16 12:16:19 +00:00
Angelo Salese
a941d38d15 Updated Archimedes to the latest source, not worth mentioning 2010-08-16 12:15:54 +00:00
Phil Bennett
e05ee0fd11 Cleaned up toaplan2 driver and converted it to use driver_data [Atari Ace]
---------- Forwarded message ----------
From: Atari Ace <atari_ace@frontier.com>
Date: Tue, Aug 10, 2010 at 5:14 PM
Subject: [patch] Convert toaplan1/2 to driver_data
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

toaplan1/2 had ~100 AM_BASE/AM_SIZE macros, so was a prime candidate
for conversion to driver_data (my goal is to eliminate those macros).
Just as I was finishing up that conversion, toaplan2 was partially
converted to driver_data, so before things change again, here's a
patch to convert the rest.

It's in two parts.  The first patch is just some cleanup of the
drivers.  The second patch is then the actual conversion.

~aa
2010-08-16 11:53:16 +00:00
Phil Bennett
62d9666e74 03992: btoads: Reload of state cause major graphic corruption [Phil Bennett]
Converted TLC34076 to a device [Phil Bennett]
2010-08-16 00:41:11 +00:00
Phil Bennett
f83f00dce8 03991: bigevglf : Reload of state cause audio corruption [Phil Bennett]
Added save-state support to the MSM5232 sound core [Phil Bennett]
2010-08-15 20:53:48 +00:00
Phil Bennett
a65aa6c30a A more elegant fix for the last bug... 2010-08-15 20:05:41 +00:00
Phil Bennett
13b03f7bb2 03993: All sets in crshrace.c: Reload of state cause loss of audio [Phil Bennett] 2010-08-15 19:38:05 +00:00
Phil Bennett
dd09a3a9dd 03989: asterix and clones: Reload of state causes loss of audio [Phil Bennett]
Added save-state support to the K053260 sound core [Phil Bennett]
2010-08-15 17:42:52 +00:00
Michaël Banaan Ananas
f4cd70817b typo 2010-08-15 09:09:53 +00:00