Commit Graph

7450 Commits

Author SHA1 Message Date
Angelo Salese
3d7b47d280 Hooked up videoram reading in drawing functions, more gfxs are now displayed 2009-12-07 15:31:08 +00:00
Angelo Salese
9b4440922d Implemented DMA vram transfers 2009-12-07 15:15:24 +00:00
Angelo Salese
6540973d1a Refactored driver, added Guru's readme^TM and applied alternative gfx rom loading, more logical according to the readme structure 2009-12-07 13:57:33 +00:00
Phil Bennett
54570e176e Fixed srcclean handling of embedded comments within strings [Atari Ace]
(Update of r7501)

---------- Forwarded message ----------
From: Atari Ace <atari_ace@verizon.net>
Date: Sun, Dec 6, 2009 at 5:51 PM
Subject: [patch] srcclean bugfix
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

My srcclean changes to track C-style quotes didn't handle all the
special cases correctly (for instance, '\"' and "\\\"").  This fixes
it, and adds some /* ... */ to m68k_in.c so that src2html.exe does a
better job on it.

~aa
2009-12-07 11:13:54 +00:00
Aaron Giles
fd34a32091 Added new functions:
memory_install_ram() to assign a un-named bank to a region and specify
    a pointer to where the RAM lives. If this is called in the DRIVER_INIT
    function or MACHINE/SOUND/VIDEO_START functions, then it is permissible
    to specify NULL, in which case the memory system will allocate memory
    and register it for save states.

  memory_install_rom() is like the above except that it only installs a
    read handler.

  memory_install_writeonly() is like the above except that it only installs
    a write handler.

Updated several instances in the code that were assigning banks to these
sorts of static RAM regions and simplified the code.

Also fixed several regressions reported by Tafoid.
2009-12-07 08:32:02 +00:00
Brian Troha
f47d21d30a minor name update to last name update for Merit trivia roms 2009-12-07 02:00:51 +00:00
Brian Troha
61f667fa84 fixes rom names is several merit trivia question sets 2009-12-07 01:46:40 +00:00
Angelo Salese
f98e1228b8 Fixed a stupid math bug with charset decoding... 2009-12-06 23:19:07 +00:00
Angelo Salese
ab385355a8 Moved charram to a more logical position 2009-12-06 23:06:28 +00:00
Angelo Salese
8a675c2e8c Improved DMA understanding 2009-12-06 21:14:21 +00:00
Angelo Salese
b767724436 Fixed paletteram and implemented basic inputs 2009-12-06 20:07:37 +00:00
Angelo Salese
b1923d53ad Allow it to draw RAM-based chars, starts to show correct gfxs 2009-12-06 17:56:16 +00:00
R. Belmont
c165519e07 Fix 64-bit issue noted by Juergen. 2009-12-06 17:30:10 +00:00
Angelo Salese
8fc1ec0384 Fixed program ROM memory map loading as per the service mode item 2009-12-06 17:28:54 +00:00
Angelo Salese
d71b64645a Fixed some stuff as per Guru and Dox, now goes into Service Mode 2009-12-06 16:51:05 +00:00
Aaron Giles
98484d44b0 Internal memory system shuffling. Address maps initialized internally
now call the same installation handlers that drivers do for dynamic
installation. Cleaned up some parameter ordering and error detection.
2009-12-06 08:18:34 +00:00
smf-
0be7db3893 replaced char * pointer comparison with strcmp. 2009-12-06 02:19:12 +00:00
smf-
2c3c41b08f fixed compiling after share were changed to a tag, not tested if this is the correct behaviour. 2009-12-06 02:03:29 +00:00
Aaron Giles
0fd8c755ff Memory shares are now specified by tag instead of index.
The AM_SHARE() macro now takes a tag parameter. All existing
shares have been bulk renamed to "share##". However, the name
does not matter, so please use descriptive tags going forward.

Also added tag validation for bank and share tags.

Added flag to tagmap_add functions that optionally will
replace existing objects if a duplicate is found.
2009-12-05 20:19:04 +00:00
Roberto Fresca
9fdc5ec196 Noraut Poker driver improvements:
* Added new technical notes.
 * Added Kimble Z80 hardware support.
 * Added Prologic-Noraut hardware support.
 * Added proper discrete sound support to Kimble games,
   and Prologic-Noraut Joker Poker.
 * Slightly adjusted the visual area.
   This can be wrong and must be rechecked.
 * Relocated the hardware notes and layouts to ROM_LOAD section,
   so can be seen/maintained in a cleaner way.
 * Fixed the default lamps state.


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Noraut Joker Poker (Prologic HW) [Roberto Fresca, Alan Griffin]


New games marked as GAME_NOT_WORKING
------------------------------------
Kimble Double HI-LO (z80 version) [Roberto Fresca, Alan Griffin]
2009-12-05 20:05:03 +00:00
Angelo Salese
8d4b6387f3 Cleaned up a small left over quirk, not worth mentioning 2009-12-05 19:24:44 +00:00
Scott Stone
86cbe8c506 Changed occurrences of device label "cpu" to "maincpu" to comply to stated guidelines. 2009-12-05 18:22:48 +00:00
Aaron Giles
ee315fe99d Renamed functions:
memory_install_read/write_port_handler -> 
        memory_install_read/write_port

   memory_install_read/write_bank_handler -> 
        memory_install_read/write_bank
2009-12-05 07:59:31 +00:00
Aaron Giles
9eda9e163e More memory system cleanup. Removed SMH_* macros entirely. In
their place are a series of expanded macros and new memory
installation helpers. Some mappings below (not all are new):

   AM_READ(SMH_RAM)                       -> AM_READONLY
   AM_WRITE(SMH_RAM)                      -> AM_WRITEONLY
   AM_READWRITE(SMH_RAM, SMH_RAM)         -> AM_RAM
   AM_READ(rhandler) AM_WRITE(SMH_RAM)    -> AM_RAM_READ(rhandler)
   AM_READ(SMH_RAM) AM_WRITE(whandler)    -> AM_RAM_WRITE(whandler)
   AM_DEVREAD(tag, rhandler) AM_WRITE(SMH_RAM) 
                                  -> AM_RAM_DEVREAD(tag, rhandler)
   AM_READ(SMH_RAM) AM_DEVWRITE(tag, whandler) 
                                  -> AM_RAM_DEVWRITE(tag, whandler)

   AM_READ(SMH_ROM)                       -> AM_ROM
   AM_WRITE(SMH_ROM)                      -> (was a no-op)

   AM_READ(SMH_NOP)                       -> AM_READNOP
   AM_WRITE(SMH_NOP)                      -> AM_WRITENOP
   AM_READWRITE(SMH_NOP, SMH_NOP)         -> AM_NOP

For dynamic memory handler installation of the various types,
use the new functions:

   memory_unmap_read()
   memory_unmap_write()
   memory_unmap_readwrite() -- unmaps a section of address space

   memory_nop_read()
   memory_nop_write()
   memory_nop_readwrite() -- nops a section of address space

Cleaned up the internals of the address_map_entry structure, and
also normalized the way the address map macros work to remove a
lot of redundancy.
2009-12-05 07:54:11 +00:00
Tomasz Slanina
320793ee8f New clones added
----------------
Gals Panic (Korea, EXPRO-02 PCB) [Guru]
2009-12-04 19:30:10 +00:00
Phil Bennett
1c58ec77c5 03557: All sets in namcos12.c: Music is slower than original [Phil Bennett]
Measured and corrected Namco System 12 H8/C352 clocks [Phil Bennett]
2009-12-04 19:01:30 +00:00
Brian Troha
dc53a14ef2 Minor name change for a CPS2 clone to make it more logical 2009-12-04 01:55:12 +00:00
Angelo Salese
3a40556117 Cool Riders: discovered that area 4******* of SH-2 is actually a weird kind of text tilemap blitter [David Haywood, Angelo Salese] 2009-12-04 01:39:17 +00:00
Angelo Salese
9bc7aee599 Cool Riders: basic DMA hooked up 2009-12-03 23:03:13 +00:00
Angelo Salese
179960b682 Fixed a subtle bug... 2009-12-03 20:22:51 +00:00
Angelo Salese
111cc80254 Moved around some data and logged what it seems to be a DMA 2009-12-03 19:26:22 +00:00
Phil Bennett
ac751ce903 new clones
-----------

Invasion (4 bootleg sets) [f205v, ANY]
Head On (Sidam bootleg, set 2) [f205v, ANY]
Head On 2 (Sidam bootleg) [f205v, ANY]
Arkanoid (bootleg on Block hardware, set 2) [f205v, ANY]
2009-12-03 15:12:26 +00:00
Phil Bennett
445eb3eb39 PCB documentation updates: [Kevin Eshbach]
* Added the board xtal's for Battlantis, Contra and Pandora's Palace
* Corrected the MCU dump for Pandora's Palace
* Added indication of an undumped PAL for Contra/Gryzor
* Added PAL dumps for Cruis'n USA - rev L4.1
* Added information on the PROM from the 2 Board version of Congo Bongo


--------- Forwarded message ----------
From: Kevin Eshbach <keshbach@comcast.net>
Date: Fri, Nov 27, 2009 at 2:00 AM
Subject: Patch file with assorted updates
To: submit@mamedev.org


Enclosed is a patch file with the following updates.

* Added the board xtal's for Battlantis, Contra and Pandora's Palace (I did
not verify if cpu's/sound chips are using the correct clock speed though.)
* Added indication of an undumped pal for Contra/Gryzor
* Added pal dumps for Cruis'n USA - rev L4.1 (one pal could not be dumped.)
* Corrected the mcu dump for Pandora's Palace
* Added information on the PROM from the 2 Board version of Congo Bongo

All dumps have been previously forwarded to The Dumping Union.



Kevin Eshbach
2009-12-03 15:01:17 +00:00
Phil Bennett
16ed9e0dcc Fixed srcclean handling of embedded comments within strings [Atari Ace]
---------- Forwarded message ----------
From: Atari Ace <atari_ace@verizon.net>
Date: Wed, Dec 2, 2009 at 2:14 AM
Subject: [patch] Fix srcclean to handle strings
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

I noticed an odd case in src2html.c where tabs were converted to
spaces unnecessarily.  Turns out srcclean does not track quoted
strings, so an embedded comment in a string will be treated the same
as a comment.  Attached is a patch to fix this.

~aa

P.S. The *.lay files could use a run through srcclean.
2009-12-03 14:34:31 +00:00
Phil Bennett
e62d1e6cd7 Added preliminary HNG64 additive tilemap blending [David Haywood]
-----Messaggio originale-----
Da: David Haywood [mailto:neohaze@nildram.co.uk]
Inviato: martedì 1 dicembre 2009 22.47
A: Angelo Salese
Oggetto: hng64 additive tilemap blending debug

not very optimal, but some debug-key based support for this.

t/y/u/i  enable / disable additive blend mode for the tilemaps.

note, when drawing onto a black background the tilemap will look exactly
the same, because black + colour = colour ;-)

the most obvious use are the effects layers in the samurai games, used
for a light beam effect, and snow / storm effects.

I don't know how the hw enables it.
2009-12-03 14:29:17 +00:00
Aaron Giles
0069237f20 Memory banks are now referenced by tag rather than index.
Changed all memory_bank_* functions to specify a tag.
Bulk-converted existing banks to be tagged "bank##" in
order to ensure consistency. However, going forward, the
tags don't matter, so please name them something useful.

Added AM_BANK_READ/AM_BANK_WRITE macros to let you specify
bank tags. Also changed AM_ROMBANK and AM_RAMBANK macros to
accept tags as well.

Added new functions memory_install_read_bank_handler and
memory_install_write_bank_handler to install banks by tag
name, similar to input ports.

Changed internals of memory system to dynamically allocate
all banks. The first time a bank with an unknown tag is
installed, a new bank object is created and tracked 
internally. Removed all SMH_BANK(n) references outside of
the main code; these should never, ever be useful anymore.
2009-12-03 08:16:38 +00:00
Fabio Priuli
d642d98b58 Fix for MT03562: fcombat: Segmentation Fault after OK 2009-12-03 06:18:14 +00:00
Fabio Priuli
c28e7e339e Fix for MT03561: robokid, robokidj, robokidj2: Segmentation Fault after OK 2009-12-03 06:17:18 +00:00
Fabio Priuli
9a05e23eda Fixed a couple of drivers complaining for missing inputs (see MT3559) 2009-12-02 23:15:00 +00:00
Fabio Priuli
4442c6161c Fixed other two regressions from svn 7449. Thanks Tafoid for spotting these. 2009-12-02 23:03:11 +00:00
Fabio Priuli
6ad7e040ec Added shared driver data struct to 40love.c, bking.c, buggychl.c and msisaac.c (they use the same mcu emulation)
As a result, bking.c, buggychl.c and msisaac.c now support save states (40love.c already did, even if mcu values were not saved)
2009-12-02 22:39:48 +00:00
Fabio Priuli
71be191faf Fixed a small banking problem with bootlegs in aerofgt.c 2009-12-02 22:30:35 +00:00
Angelo Salese
f3bdc40bd6 Cool Riders: some hooks to allow FBI logo drawing [Angelo Salese] 2009-12-02 20:41:38 +00:00
Angelo Salese
05fc796369 Actually fixed colors for good in Wink 2009-12-02 16:57:34 +00:00
Jonathan Gevaryahu
214b3564e9 Cosmic: fixed cosmica2 romset rom split and names to match romset as described in mameinfo, which it matches (except for one rom which mameinfo is probably wrong about). The romset uses a different rom daughterboard to the other cosmica romsets, and different sized roms. 2009-12-02 15:58:28 +00:00
Jonathan Gevaryahu
5dffcb6c6c mostly resolved mix of intel and motorola notation in tms32025 disassembler 2009-12-02 15:32:57 +00:00
Fabio Priuli
b5d9596eff New clone added :
Tower of Druaga (Manufactured by Sidam) [Corrado Tomaselli]
2009-12-02 13:08:56 +00:00
Tomasz Slanina
2841662f1b New games added or promoted from NOT_WORKING status
---------------------------------------------------
LA Girl [Tomasz Slanina, Guru]
2009-12-02 09:51:33 +00:00
Fabio Priuli
dfa4726c7b Not really worth credit: purged some direct use of SMH_RAM in favor of macros from memory.h 2009-12-02 08:56:01 +00:00
Fabio Priuli
e4b27e0b27 Fix for MT03558: drivers with Access Violation since 0.135u2
I hope these are the only regressions I introduced in svn 7449...
2009-12-02 07:34:35 +00:00