Commit Graph

2540 Commits

Author SHA1 Message Date
Roberto Zandona
d6269d15fa use last version of HD63484 (like shanghai driver) 2008-08-12 12:23:24 +00:00
Roberto Zandona
526be2629c some improvements to shanghai video drivers:
1) convert framebuffer's ram from 8 bit to 16 bit
2) convert dma command from 8 bit to 16 bit
3) convert gfx command from 8 bit to 16 bit
4) implemented all gfx mode: 1,2,4,8,16 bpp
for now the rendering is only 8 bpp
now we can use this gfx chip for adp driver that use 4bpp
2008-08-12 12:04:21 +00:00
Aaron Giles
a85c4c754d Rejiggered huffman.c to support multiple interleaving
streams and a delta-RLE pre-encoding. Added optimized
case for the Y/Cb/Y/Cr video encoding case. Cleaned up
the code.

Updated avcomp.c to use the new huffman.c functions.
Reworked configuration options to allow for both input
and output of naturally aligned data streams. Updated
chdman and laserdsc to use the new interfaces. New
compression gives an additional 3-7% over previous
attempt and compresses the dummy CHDs down significantly.
2008-08-12 09:24:22 +00:00
Nicola Salmoria
d89508d201 Added reverse engineered PLD images to CPS1 games (A-board to all and B-board and C-board to many).
Credit Corrado Tomaselli and Charles McDonald.
2008-08-12 06:04:03 +00:00
Derrick Renaud
0ec9cda36e Fixed NMI on Mad Alien sound CPU. This fixes shot sound and various other sound glitches.
Marked madalien and madalina as Imperfect Graphics.  They are missing an effect.  When you shoot an enemy in the dark, the whole screen lights up.  Basically the headlights fill the whole screen.

credit Guru, Derrick Renaud
2008-08-12 03:51:29 +00:00
Derrick Renaud
d5d5d9449b structure, lower-casing functions and re-inclusion updates of the src\emu\cpu headers J - M. 2008-08-12 03:40:09 +00:00
Brian Troha
7e7e4ef30f removed bad dump from China Dragon (Hong Kong)... I dumped this PCB way back and mentioned that the copy protection checks needed fixing. The other 2 roms matched the parent set, that's why it was only the program rom.
BrianT
2008-08-12 01:40:56 +00:00
Nicola Salmoria
241e19186c KO Punch boxer graphics had to be doubled. Evidence:
http://www.retro-gaming.it/videogiochi_img/magazine_videogiochi/videogiochi2/videogiochi_2_54.jpg
http://www.retro-gaming.it/videogiochi_img/magazine_videogiochi/videogiochi2/videogiochi_2_55.jpg
(these are two halves of the same shot).
The shot is clearly from some other version of the game since the graphics are different, however it's clear that the boxer is supposed to fill the screen.
2008-08-11 16:50:55 +00:00
Nicola Salmoria
d099ba2be0 02101: wboy, wboysys2: Access Violation 2008-08-11 15:10:08 +00:00
Andrew Gardner
6be1af1ea3 Adds readmes for Great 1000 Miles Rally 2 and Super Monaco GP.
Credit Guru.

(This completes *all* the readmes)
2008-08-11 15:03:02 +00:00
Derrick Renaud
3c2b00d332 structure, lower-casing functions and re-inclusion updates of the src\emu\cpu headers up to I.
It's mostly just re-inclusion renaming, but there are few other re-nameings.
2008-08-11 03:06:59 +00:00
Brian Troha
9ab4f76a04 adds the Plotting PAL to the Japanese set. Also corrects the PAL ROM name. Adds a note that PAL is stamped B86-04... curently we don't know what Taito game B86 is for :-( But if one is dumped we'll know it should go in the taito_l.c driver 2008-08-11 00:46:39 +00:00
Derrick Renaud
3710253aa7 This (mostly - see below) completes the structure, lower-casing functions and re-inclusion updates of the src\sound\emu headers.
I did not do much to the following files because I did not know the best way to name them.
aicadsp.h
sid.h
sidenvel.h
sidvoice.h
ymdeltat.h

I did not update structures only used in the src\emu\sound\*.c files.  They are only used locally in the file so they were not worth the effort.
2008-08-11 00:32:08 +00:00
Andrew Gardner
fdf667cf9c Adds readmes for Vivid Dolls, Tower and Shaft, Star Soldier Vanishing Earth, Stone Ball, Sky Lancer, Squash, Winning Spike, Versus Net Soccer, Undercover Cops, War Gods, Space Fever, Strikers 1945, Rohga, Super Eagle Shot, Treasure Hunt (stv), and Tickee Tickats.
Credit Guru.

(This completes adding all of Guru's readmes to the MAME source.  There remain ~20 readmes that I still need to compare to what's in MAME to see if they have any additional information, but beyond that, this little project is done!)
2008-08-11 00:23:04 +00:00
Brian Troha
b8ac62f60c relocates readme info down to the proper rom set. 2008-08-11 00:01:25 +00:00
Tomasz Slanina
b6e297e8a4 New games added or promoted from NOT_WORKING status
---------------------------------------------------
Killer Instinct (SNES bootleg) [Tomasz Slanina]
Final Fight 2 (SNES bootleg) [David Haywood, Tomasz Slanina, Kowal]

New games marked as GAME_NOT_WORKING
------------------------------------
Sonic Blast Man TURBO 2 (SNES bootleg) [Corrado Tomaselli]
2008-08-10 22:43:48 +00:00
Andrew Gardner
326ad99c3a Adds readmes for Koro Koro Quest, Gigas (bootleg), Race Drivin', Hexa, IQ Block, Open Golf Championship, Macross Plus, Malzak, Puzzle Club, Naomi, Puzzle Star, Puckman Pockimon, Raiden 2, Raiden Fighters 2 (single board), Light Bringer, Landmaker, Knuckle Bash 2, and Mahjong Fight Club.
(Please, as with the previous submission, credit Guru)
2008-08-10 21:41:36 +00:00
Luca Elia
c4a5a1359c igs_blit.c update
- General clean up (merged memory maps, inputs, readme's)

- Marked vbowl program rom as bad, patched to not crash (fixes bug 00492)

- Protection emulation / patches, promoting to working:

  dbc, xymg, lhba (fixes bug 02027), drgwrld3 (fixes bug 00491), chindrac, chindrah


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Da Ban Cheng [Pierpaolo Prazzoli, Luca Elia]
Xing Yen Man Guan [Luca Elia, Wei Mingzhi]

New clones added
----------------
Zhong Guo Long (China, V010C) [Luca Elia]
Zhong Guo Long? (Hong Kong, V011H) [Luca Elia]
2008-08-10 16:02:14 +00:00
Roberto Zandona
24a0058754 implemented MWR (memory width register) to avoid hardcoded 384 value for screen width 2008-08-10 15:54:48 +00:00
Andrew Gardner
842d5e37a1 Adds readmes for Cosmo, Don Den Lover, Beatmania (CHD dumping), Dragon Master, Gals Panic, Fantasia II, Grand Tour, New Dyna Blaster Global Quest, Daytona "To The MAXX" upgrade, Namco System FL, Great Sluggers, Gun Nail, Gun & Frontier, Elevator Action Returns, and Battle Bakraid.
(It's easy to do this while watching the olympics.  110 down today, 245 more to go.)
2008-08-10 06:46:41 +00:00
R. Belmont
3fd8c0941b More FM OPN fixes [Eke, R. Belmont]
- Pass chip type around and restore Jarek's original behavior for YM2203/YM2610
- Always recalculate attack rate in set_ar_ksr, fixes Megadrive/Genesis "Batman & Robin"
2008-08-10 04:00:31 +00:00
R. Belmont
654ec18554 Fixed array size to avoid memory trashing. 2008-08-10 03:34:23 +00:00
Derrick Renaud
4f0cddd1a5 Updated src\emu\sound headers from K-S, so they use latest naming/structure and re-inclusion support. Also lowercased the handler names.
What a PITA.  :)  I'll have to go back and do A-J to lower case the handlers to match the new structure names I already did.

Sorry Mess and other port developers, but the code should match what is stated on the official WIKI.  But don't worry, I don't plan on updating anything but the sound cores.
2008-08-10 02:23:43 +00:00
Andrew Gardner
317af7eba8 Merged memory maps for drivers tbowl, thedeep, and thief.
(also changes gfx memory region tags in obvious cases)
(only ~1350 memory maps remaining :P )
2008-08-09 19:59:46 +00:00
Tomasz Slanina
12e0d61473 Added sprite wrapping to Irem m63 driver [Tomasz Slanina, Stefan Lindberg] 2008-08-09 17:33:55 +00:00
Andrew Gardner
dfd2e0d7df Merged memory maps for drivers tigeroad, timelimt, toobin, and tumbleb.c
(also changes gfx memory region tags in obvious cases)
2008-08-09 17:19:04 +00:00
Roberto Fresca
5a587d796e Improvements to Lucky74.c driver:
- Reverse engineering of custom IC's 06B49P, 06B53P & 09R81P.
 - Mapped the missing 3x SN76489.
 - Measured and traced all clocks on the board.
 - Measured and fixed the interrupt system.
 - Implemented timings/clocks from custom 06B49P.
 - Added sound support. All regular game sounds/musics are working.
 - Implemented the ADPCM samples system through 09R81P + M5205 emulation.
 - Added pinouts and technical notes about custom IC's 06B49P, 06B53P & 09R81P.
 - Added flip screen mode.
 - Inverted the order of double-up difficult DIP switches.
   (Seems to be the opposite of the indicated in the instruction sheet).
 - Changed 'Key In' to be active LOW instead of HIGH (checked in the PCB).
 - Complete memory map and ports scheme.
 - Created handlers for USART port and co-processor communication.
 - Renamed the sets accordingly.
 - Updated all notes.
 - Cleaned-up the driver.

Please co-credit Grull Osgo.
2008-08-09 15:57:31 +00:00
davidhay
1ee5dc58da new clone : Free Kick (bootleg set 2) 2008-08-09 13:11:53 +00:00
Derrick Renaud
629498ef38 more sound core structure/renaming updates.
You may have to do a clean compile, or delete the affected driver object files.

struct C140interface       to c140_interface
struct cem3394_interface   to cem3394_interface
struct ES5503interface     to es5503_interface
struct ES5505interface     to es5505_interface
struct ES5506interface     to es5506_interface
struct ssg_callbacks       to ssg_callbacks
struct gaelcosnd_interface to gaelcosnd_interface
struct ics2115_interface   to ics2115_interface

I'll stop until my posted question about chip names and upper case is answered.
2008-08-09 05:28:19 +00:00
R. Belmont
b14904ef68 cottonbm: actually, both cheats are harmful. 2008-08-09 03:40:56 +00:00
R. Belmont
98a3efeb51 cottonbm: disable main CPU speed cheat, it causes master/slave comms problems with the DRC for some reason.
Fixes mantis bugs 2020 and 2021.
2008-08-09 03:32:57 +00:00
Derrick Renaud
e6cf588405 Some more structure/naming updates of sound cores.
FWIW, I first check for variables named name_interface and rename them as name_cofig, so they don't conflict with the new interface names.

struct YMF262interface  to ymf262_interface
struct YM2151interface  to ym2151_interface
struct YM2203interface  to ym2203_interface
struct YM2608interface  to ym2608_interface
struct YM2610interface  to ym2610_interface
struct YM2612interface  to ym2612_interface
struct YM3812interface  to ym3812_interface
struct Y8950interface   to y8950_interface
struct YM3526interface  to ym3526_interface
struct TMS5110interface to tms5110_interface
struct TMS5220interface to tms5220_interface
struct AICAinterface    to aica_interface
2008-08-09 00:55:07 +00:00
Derrick Renaud
4bc7e64b46 Hooked up discrete filtering to SN76477 in Space Chaser 2008-08-08 23:16:09 +00:00
Derrick Renaud
1c8e102f7b Discrete sound for Mad Alien 2008-08-08 21:56:44 +00:00
davidhay
6a48444e71 decided not to flag rom 10 of defendw as bad dump. IMO, given the evidence, the mismatched checksum is probably a typo C066 / C866 look very similar ;-) 2008-08-08 20:53:30 +00:00
davidhay
f63347c5ce new clone: Defender (White label) [Andy Welburn] 2008-08-08 20:40:57 +00:00
Derrick Renaud
7ea948666a lower cased sn76477_interface and ay8910_interface 2008-08-08 16:32:55 +00:00
Nicola Salmoria
7b2d48149a Credit Corrado Tomaselli
Added a new Japanese version of Ghouls'n Ghosts.
This could be a hack since, running on a 91634B board, it must have been made at least three years after the initial release of the game. However, if if it's a hack, it's exceptionally well made since all ROM stickers look original and the B-board DAM63B PAL label is printed on the chip.

Also, hack or not, the code alignment of none of the already supported versions matches this one so it appears to at least be based on a new version.

The dip switches need to be checked. The Lives dips, and the two unused dips after those, also change the starting level. This could be further evidence that the game is a hack.

New clones added
----------------
Dai Makai-Mura (Japan new version)
2008-08-08 12:17:01 +00:00
Nicola Salmoria
faa193428c fix bogus comment 2008-08-08 05:34:49 +00:00
Nicola Salmoria
62a323841b fix typo 2008-08-08 05:22:15 +00:00
Derrick Renaud
cc94c8207d Updated structure and naming conventions of the following sound interfaces.
struct CustomSound_interface to custom_sound_interface
struct Samplesinterface to samples_interface
struct SN76477interface to SN76477_interface
struct AY8910interface to AY8910_interface
2008-08-08 01:50:00 +00:00
Couriersud
3f73ea77f0 Changed region "user1" to "tms5110_ctrl" 2008-08-07 23:32:44 +00:00
Couriersud
daff376f35 Change ad2083 following Aaron's suggestions.
* Use amended prom
* Mark prom as BAD_DUMP
* Use prom in TMS5110 logic instead of hardcoded values
2008-08-07 23:09:02 +00:00
Couriersud
37e0bacdf4 Corrected some typos 2008-08-07 22:13:00 +00:00
Nicola Salmoria
3686aa936a Updated the FD1089 decryption algorythm to use the real keys generated by the LCG as found by Andreas Naive.
The algorithm is more complex than it should be, but I haven't been able to simplify it more.
The keys are still embedded in the source. It would now be reasonable to move them to external files; however, for several games we only have partial keys so the files would need to be BAD_DUMP.
2008-08-07 19:10:50 +00:00
R. Belmont
eec9dab98d Fix GCC warning. 2008-08-07 16:51:31 +00:00
Aaron Giles
b40a4f5531 Cleanups and version bump. 2008-08-07 16:02:05 +00:00
Aaron Giles
9df01a2896 Added expression validation callback to verify names for CPUs and
memory regions. Extended error codes to report incorrect memory 
spaces, memory names, or memory sizes. Added verification callback
to the debugger to validate CPU and memory region names, as well
as verifying that a requested address space exists for a given
CPU.

Added support for oneshot cheats (those with only an "on" script).
They are activated via UI_SELECT in the cheat menu, and pop up a
message when activated. Also added a "Reset All" item in the cheat
menu to reset all cheats back to their default state, and added
support for UI_SELECT on a non-oneshot cheat so that it resets that
cheat to its default value.

Restored previous behavior that allowed popmessage() messages to
overlay menus and other UI.
2008-08-07 15:53:58 +00:00
Aaron Giles
3107dc2dff ldverify now prints transient progress to stderr, allows for frame #0,
and reports if no white flags were seen.

Fixed bug in aviio.c which could cause an infinite loop if attempting
to read sound beyond the end of the file.

Rewrote the white flag detection to use a histogram for outlier detection
and peak identification.
2008-08-07 15:07:12 +00:00
Pierpaolo Prazzoli
1c6a1e7df7 Removed bad dumps from ad2083. 2008-08-07 14:55:44 +00:00
Pierpaolo Prazzoli
1a98d9f0cd Decrypted Da Ban Cheng (dbc set in igs_blit.c) 2008-08-07 14:46:03 +00:00
Aaron Giles
ce00409cce Added word alternates for operators in expressions:
+   plus
  -   minus
  *   times or mul
  /   div
  %   mod
  !   not
  ~   bnot
  &&  and
  &   band
  ||  or
  |   bor
  ^   bxor
  lt  <
  le  <=
  gt  >
  ge  >=
  eq  ==
  ne  !=

Changed cheat escaping to automatically escape && & < and <=
to and band lt and le.
2008-08-07 06:48:04 +00:00
Aaron Giles
3153693306 From: jeaw100@york.ac.uk [mailto:jeaw100@york.ac.uk]
Subject: MPU4 sound weightings
Corrected MPU4 AY8910 output weightings
2008-08-07 06:27:21 +00:00
Aaron Giles
5fdd33c68f From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: spinal breakers clocks

Changed sound cpu clock of Spinal Breakers to 5Mhz as verified on the
pcb.
2008-08-07 06:26:39 +00:00
Aaron Giles
d4968a5667 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: cps1 refresh rate diff

I verified the vertical refresh on one of the input gates of the 
74ls08@4J on GNG romboard 88620-b-2
2008-08-07 06:25:03 +00:00
Aaron Giles
c747744376 New clone: Crystal Castles (joystick version) [Guru] 2008-08-07 06:20:54 +00:00
Aaron Giles
d276a30840 Changed defender (white) to defender (blue). 2008-08-07 04:54:47 +00:00
Brian Troha
3c8e968bc0 Makes the "Standard" version of Mega Touch III the parent and California version the clone like it should be. 2008-08-07 03:35:40 +00:00
Pierpaolo Prazzoli
33b7088c2a Fixed bug 01958: skns: Segfaults on load 2008-08-06 20:59:33 +00:00
Pierpaolo Prazzoli
aa90d1cf72 Fixed bug 01817: intrepi2: Game stops at PCB test 2008-08-06 20:42:19 +00:00
Couriersud
2f7339ee3e Added commetn in video/mario.c that sprite buffering uses the same circuit like the one in dkong 2008-08-06 20:33:31 +00:00
Pierpaolo Prazzoli
35c4dc159f Fixed bug #02090
thedeep: Game didn't start (black screen).
2008-08-06 19:54:03 +00:00
Couriersud
c81b2cb24d Added module profiling to discrete sound core
* added DISCRETE_PROFILING macro to discrete.h
* Upon discrete_stop, the worst performing modules will be listed
2008-08-06 19:31:39 +00:00
Roberto Zandona
fa04fe6355 modify memory maps - only a wip 2008-08-06 15:03:46 +00:00
Aaron Giles
5033d06b7b From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: athena clocks

Changed cpu clocks as verified on the pcb
2008-08-06 14:41:00 +00:00
Aaron Giles
5a396b5b85 From: f205v [mailto:f205v@mail.mdsnet.it]
Subject: New russian game

Dear Aaron,
thanks to the very kind and good guys at the "Soviet Arcade Games Museum"
(www.15kop.ru), namely Alex and Max; and thanks to Antro (a good friend of
mine), we have a new dump for a previously unknown Russian game: S.O.S. by Terminal.
It works on the same hardware as Konek (already in MAME), it's a simple rom
swap. I still have to chek about PROMs.
A diff file is included, together with roms.

All the best
Antonio (f205v)
2008-08-06 14:39:56 +00:00
Aaron Giles
4c0d1c6567 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: some diplocations

Hi, enclosed please find a patch to add diplocations to the some 
drivers which still missed them. The patch assumes my changes to 
drivers starting with C,D,E have been applied (port01.diff -
>port09.diff I sent on Aug 1st... there is at least crshrace.c w
hich could fail to correctly patch, due to possibly different tags, 
and probably 1 or 2 more... not many, but maybe annoying anyway). 

It adds diplocations to the following drivers: combatsc.c, copsnrob.c, 
cosmic.c, crgolf.c, crimfght.c, crospang.c (here I also added service 
dips to heuksun and bestri, which allowed me to verify locations), 
crshrace.c, dambustr.c, darkseal.c, dassault.c, dblewing.c, ddrible.c, 
deadang.c

It also adds locations to the following games: ddragon & ddragon2 on 
ddragon.c and docastle, dorunrun & dowild in docastle.c

Regards,
    Fabio Priuli
2008-08-06 14:37:26 +00:00
Aaron Giles
d3c7e67622 This also includes a fix for the bug reported at the bottom.
From: Fabio Priuli [mailto:doge.fabio@gmail.com] 
Subject: to simplify cischeat inputs

Hi,

the enclosed diff has a twofold effect on cischeat.c:

on one side: it adds diplocations to bigrun, scudhamm, 
cischeat & f1gpstar

on the other side: it removes the current hacky handling of 
f1gpstar coinage dips (check video/cischeat.c to see what I 
mean with hacky!) to use conditional ports instead. BUT in 
order to do this, I had to add more possible values for the 
PORTCOND in iptport.c. The problem is that f1gpstar has a set 
of coinage settings when you set the region to JPN or USA and 
another one when you set the region to EUR or FRA. To implement 
this I added the following self-explanatory new PORTCOND: 
ISLARGER (>), ISNOTLARGER (<=), ISSMALLER (<), ISNOTSMALLER (<=). 
Only two were really needed to implement f1gpstar dips, but 
the other two seemed costless to me while offering even more 
flexibility to the PORT_CONDITION macro.


Also notice that the handling of conditional ports in 'TAB>Dip 
Switches' menu doesn't work well (in the current source, not 
affected by my patch) with contracted expressions like 
PORT_DIPUNKNOWN_DIPLOC: the wrong items remain listed in the 
UI menu even when you change the condition! If you leave the 
DEF_STR( Unknown ) with ON/OFF cases, everything is displayed 
correctly in the menu. However, I was not able to track down 
what part of code is responsible for this bug.

Regards,
    Fabio Priuli
2008-08-06 14:35:45 +00:00
Aaron Giles
c9063a7416 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: another small fix

Hi,

with this last patch I hope to have fixed all regressions I could 
had introduced with my past submissions. This time it was a small 
problem due to my fix to bug 1565 (alleymas duplicated inputs): 
the game was unplayable in u3 (even if not reported to MT).

Regards,

    Fabio Priuli
2008-08-06 14:14:08 +00:00
Aaron Giles
769ad97695 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: fix for MT bug 2056

I failed to see this wrong tag for almost 2 days!! One would guess that 
looking for the cause of coins problems, an handler with the comment "coin 
inputs" should have been noticed immediately. I saw it only this morning :(

However, fix in attachment.

Regards,
    Fabio Priuli
2008-08-06 14:13:03 +00:00
Aaron Giles
a9e375ec8c Fixed Rim Rockin' Basketball to use the HD6309 core. [Tim Lindner] 2008-08-06 14:11:49 +00:00
Aaron Giles
6cad3b3231 Added support for DEL as well as BS for backspacing in the
game select menu. Also limited input to ASCII characters.
2008-08-06 14:04:16 +00:00
Aaron Giles
5dcdb1d1c3 NOTE: with this change, I have also removed PORT_START and renamed
PORT_START_TAG to PORT_START.


From: Fabio Priuli [mailto:doge.fabio@gmail.com] 
Subject: let's say goodbye to untagged input ports ;)

Hi,

enclosed please find a few patches against 126u3 source

* port01.diff -> port09.diff : these patches continues the 
cleanup of inputs in drivers starting with C (the remaining ones), 
D and E. No ambiguous situations this time, so I guess there should 
be no problem with the changes. Improvements include conditional dips 
added to dynduke and diplocations for chinagat, chqflag, circus, 
citycon, cloak, contra and dynduke

* tag01.diff -> tag09.diff : these patches add tag to EVERY input port 
in drivers starting with F->Z. Notice that only tags are added, no 
AM_READ_PORT, nor PORT_INCLUDE (and I saw a lot of drivers would need 
it ;) ), nor other cleanups contained in the patches above. I'll keep 
cleaning input next week, probably, but at least we can definitely 
remove the untagged version of PORT_START :) Notice I was able to 
compile the source commenting out the definition of PORT_START, so 
I guess every occurrence is covered...
2008-08-06 13:56:38 +00:00
Aaron Giles
4a36b515ed Changes to the cheat.xml format:
- new tag <comment> (within <cheat>) is read and preserved 
    when saved
 - removed variable attribute from <parameter>; it is now 
    assumed to be 'param'
 - added default attribute for <parameter>

Added new variable 'frame' accessible from cheat scripts. This
can be used in the conditional to prevent execution on every
frame, or for other effects (like displaying temporary messages).

Added new variable 'argindex' which is the index when processing
an <argument> with a count attribute greater than 1. Can be used
in expressions like:

  <argument count="3">main.pb@(1000+argindex)</argument>

Reinstated the cheat menu. It now displays all loaded cheats and
allows for them to be activated. All known cheat behaviors should
be working now.
2008-08-06 05:24:31 +00:00
Aaron Giles
2d165fe1c3 Fixed I/O watchpoints. 2008-08-06 05:04:05 +00:00
Derrick Renaud
b3bfdc060a Added Discrete Sound to Fantasy, Nibbler and Pioneer Balloon. (mantis# 00227) 2008-08-06 04:02:46 +00:00
R. Belmont
661aae28dc Changes to avoid collisions with system globals on OpenSolaris. (qmc2) 2008-08-06 03:25:58 +00:00
R. Belmont
43021ec0e2 Fixed GCC compile error. 2008-08-06 03:22:21 +00:00
R. Belmont
ebbd232ba3 Fix GCC 4.3 "array bounds overflow" error. This is obviously a bug, Couriersud please take a look :) 2008-08-06 03:19:52 +00:00
smf-
47b3fc7984 fixed cdrom0 region name so the games boot. 2008-08-05 23:25:21 +00:00
Jarek Burczynski
1bb6adec56 Forced synchronization (stream_update()) before the status is actually read. 2008-08-05 21:30:33 +00:00
Couriersud
8146898f14 Discrete sound core optimizations
* moved a couple of exp(x) from _step into _reset where appropriate
* use tabulated function values for the transfer function in DSS_INVERTER_OSC

==> 40% speed increase in dkong - from 520% to
$ ./mame64 -noautosave -nothrottle -str 30 -video none dkong -nomt -nosleep 
Average speed: 722.48% (29 seconds)
2008-08-05 20:25:44 +00:00
Aaron Giles
1c6d658c57 02066: All sets in mhavoc.c: all graphics is missing
02067: mustangb, tdragonb: Access Violation 
02068: All sets in mhavoc.c: Access Violation 
02069: astrofl: Access Violation 
02070: atlantol: Access Violation
2008-08-05 16:53:46 +00:00
Aaron Giles
5e3764d0a0 Removed obsolete makemeta tool. Replaced it with new ldverify
tool which walks through either an AVI or CHD capture from a
laserdisc and ensures that there are no anomalies lurking in
the VBI data.

Added new option to chdman, where if you use -createav with
a special filename (either 2:2 or 3:2) it will create a fake
laserdisc files with the equivalent cadence. This can be used
for testing until full captures are available. Most games used
2:2 apart from Dragon's Lair and Space Ace, which were 3:2.
Note that even though these files are essentially blank, they 
are Huffman-compressed, meaning that the maximum compression
ratio you will get is 8:1, so they still end up ~5GB.

Moved error strings from chdman.c to chd.c, where they can be
fetched from any caller via the new chd_error_string()
function.

Updated vbiparse to improve Manchester code decoding. It now
assigns a confidence level per bit based on how solid the
data is. Also added a new function vbi_parse_all which parses
the white flag and all three lines of metadata from a 
laserdisc frame. It then compares line 17 and 18 against each
other and selects the most likely candidate based on per-bit
confidence and other factors.

Added frame number display to laserdsc.c. It is off by
default, though most players can be configured to turn it on
(not sure if any actually do). It can be manually toggled via
the backslash key during playback.
2008-08-05 16:30:35 +00:00
Brian Troha
1f1fd39a44 more accurate statement about the NVC285 on Rally-X 2008-08-05 16:15:44 +00:00
Andrew Gardner
7b5da2e934 Adds readmes for Area 51, Animalandia Jr, Avengers In Galactic Storm, Alien 3: The Gun, Aquajack, and Missile Command.
Please credit Guru.
2008-08-05 15:25:38 +00:00
Roberto Zandona
1cb5cc78a8 soccerss (konamigx): fix for test rom (mantis #02033) 2008-08-05 12:55:22 +00:00
Brian Troha
28644f8523 adds information about custom program versions on rom name labels conventions 2008-08-05 03:49:05 +00:00
Brian Troha
11d0967aad New clone:Megatouch III (9255-20-01 RON)
New clones added
----------------
Megatouch III (9255-20-01 RON) [Brian Troha]
2008-08-05 01:46:16 +00:00
Brian Troha
83f5a6f54a fix cut-n-paste error on CPU type & correct the double "like" 2008-08-05 01:10:27 +00:00
Brian Troha
ab1e02e821 Verifies former region hacked US set as correct with correct Taito ID number. Adds information about the CPU, OSC and TC0030CMD chip. Corrects the CPU clock down to 8MHz from 12MHz. 2008-08-05 01:06:37 +00:00
Brian Troha
5f7ab71b4b adds note about the "video" chip for Rally X which appears to be DIP28 Fujitsu MB884x stamped 8050 2008-08-05 00:55:32 +00:00
Brian Troha
6339e98279 correct prom names for RallyX ... retained prom type info 2008-08-05 00:49:42 +00:00
Wilbert Pol
0f20ccdc1e Set the initial timer output to 2 to indicate that it is undetermined. 2008-08-04 17:44:56 +00:00
Wilbert Pol
1c0a7fce3a Fix compile errors. 2008-08-04 15:41:01 +00:00
Aaron Giles
95e3753dd2 Added proper laserdisc support for MACH 3, Us vs. Them, and Cobra
Commander (MACH 3 hardware). Old laserdisc hacks are now removed.
The code now talks to the standard Pioneer PR-8210 interface. Also
removed hacky "target list" from the MACH 3 ROMs; this information
is now decoded on the fly from the right channel laserdisc audio.
 
Other Gottlieb cleanups:
 - moved sound inputs to audio/gottlieb and included them in
    all relevant drivers
 - ordered input ports and ROM definitions consistently
 
Other laserdisc changes:
 - changed PR-8210 interface to work consistently for both Gottlieb
    and Stern games
 - added audio callback mechanism to allow drivers to peek at the
    raw audio streams
 - extended the VBI parser to be even more lenient
2008-08-04 15:26:41 +00:00
Andrew Gardner
d20e6b6151 Improved Dsp56k CPU interrupt handling. Polygonet Commanders now advances past its first dsp handshake. 2008-08-04 04:07:29 +00:00
Couriersud
77e548383a Scanline exact rendering for dkong & clones
* Sprite limit of 16 sprites per scanline implemented from schematics.
* Proper wrap around from bottom to top
2008-08-03 23:20:46 +00:00
Roberto Zandona
074ec8ff9b fix layout for invaders (mantis 2049) 2008-08-03 21:23:29 +00:00
Roberto Zandona
2c3973b9a3 radr: fix label of a dsw (mantis 02079) 2008-08-03 21:07:40 +00:00
Roberto Zandona
300d758618 fix DSW coinage; please credit to Fabio Priuli 2008-08-03 20:54:53 +00:00
Couriersud
82eff3f75c Revert accidentially commited changes. Sorry! 2008-08-03 19:02:28 +00:00
Couriersud
54da9f29bd 8257dma and z80dma devices now require device callback handlers instead of machine handlers.
Updated affected drivers accordingly.
2008-08-03 18:54:39 +00:00
Roberto Zandona
25379f0b5a fix window in shanghai and shangha2 2008-08-03 16:50:12 +00:00
Andrew Gardner
ae72afc18f Adds readmes for Victorious Nine, Youma Ninpou Chou, Pairs, Woodpecker, Slap Fight, Alcon, Tiger Heli, Superman, and WWF Superstars.
Please credit Guru.
2008-08-03 16:24:14 +00:00
Roberto Zandona
ef5ea22b9b add memory maps 2008-08-03 15:36:35 +00:00
Roberto Zandona
dff7bfdcb5 add some routines to skeleton "adp" driver 2008-08-03 14:43:01 +00:00
Roberto Zandona
6c3fe42bae fix CLR and CPY operations when the copy direction is from right to left -> this fix some gfx bugs in kothello 2008-08-03 10:09:06 +00:00
Brian Troha
ef65c9cce7 minor correction to memmap 2008-08-03 06:17:37 +00:00
Brian Troha
3b0857b675 adds edge connector pinout info to flower.c 2008-08-03 06:17:11 +00:00
Andrew Gardner
1ff2a15e0d Adds readmes for Kyros No Yakata, Bombs Away, Meikyuu Hunter G, Crazy Kong, Moero Pro Yakyuu Homerun Kyousou, Lucky & Wild, Match It, Country Club, Enforce, Elevator Action, Chuka Taisen, The New Zealand Story, Buck Rogers Zoom 909, and Head On 2008-08-03 06:13:02 +00:00
Couriersud
b95f4ada03 Added some notes about sprite limits and hardware. Thanks to R. Belmont for sharing the information! 2008-08-02 23:31:08 +00:00
Brian Troha
2f32d1d62a Removes "?" from Karate Blazers (World?) we have a verified US & Japanese version. 2008-08-02 22:17:17 +00:00
davidhay
00072016e5 fix psikyo4 region without breaking eeprom even ;-) 2008-08-02 22:06:20 +00:00
R. Belmont
86c919a2d7 Backported a bunch of FM OPN (YM2608/2612) fixes from Genesis Plus GX. All of
this was verified on real hardware.  [Eke-Eke, Nemesis, Alone Coder, AamirM]

- implemented PG overflow, aka "detune bug" (Ariel, Comix Zone, Shaq Fu, Spiderman...)
- fixed SSG-EG support
- modified EG rates and frequency
- fixed EG attenuation level on KEY ON (Ecco 2 splash sound)
- fixed LFO phase update for CH3 special mode (Warlock, Alladin)
2008-08-02 22:05:24 +00:00
davidhay
a433ae612f fix region jumper on psikyo4 (loderndf) no idea when this got broken.. looks to have been broken for a while tho. 2008-08-02 22:03:56 +00:00
Brian Troha
12b53262fc updated info from "bonus" material for the PCB I bought to decap/dump the MB8841 CPU 2008-08-02 17:18:47 +00:00
Andrew Gardner
14f225e1d3 Adds readmes for Galaga, The Outfoxies, Splatter House, and Top Racer. 2008-08-02 15:53:23 +00:00
Andrew Gardner
3ea67aa8c9 Memory map merge for drivers: blmbycar, blockade, blockhl, blockout, bombjack, boogwing, and bottom9. 2008-08-02 05:31:21 +00:00
Aaron Giles
6d5941e085 Disks opened by the romload module are no longer identified by index.
Instead, they are identified by the region they were loaded in. This
generally means one disk per region. get_disk_handle() now takes a
region name in place of an index. Updated all callers to do this.
The SCSI modules in particular posed a challenge to make this work,
so watch out for potential bugs there.

Changed the IDE interfaces to default to choosing the region with the
same tag as the device for its master disk (assuming no slave). Added
support for specifying explicit master/slave disk regions as part of
the configuration, though slave disks are still not supported yet.

Change the laserdisc interface to no longer require a disk number or
a custom sound device. Both are now assumed to be tagged the same as
the laserdisc device. Updated all drivers accordingly.
2008-08-01 23:11:08 +00:00
Roberto Zandona
9a456202dd fix height of the hw window (1 pixel) 2008-08-01 18:19:43 +00:00
Aaron Giles
a0c9cf2939 More gottlieb cleanup. Fixed rev 2 sound again, fleshed out memory
maps and behaviors according to the schematics. Hooked up coin
counters.

Added new functions cputag_set_input_line() to assert input lines
via CPU tag instead of index.
2008-08-01 16:39:12 +00:00
Roberto Zandona
6a2eccda3a some improvements to kothello:
- hooked up inputs
- promoted to working
dipswitcha are not implemented; for this reason are necessary 5 coins for 1 credit
2008-08-01 12:19:40 +00:00
Nathan Woods
6ddfa127af Minor MESS compilation fix 2008-08-01 10:59:32 +00:00
Luca Elia
ee4b5bca15 Older "Champion Poker" set with Tuning copyright
Formerly known as pokerigs in iqblock.c (wrong driver).
I've renamed it to cpokert and moved it to csk.c.
It works now.

New clones added
----------------
Champion Poker (v200G) [Luca Elia]
2008-08-01 09:50:27 +00:00
Roberto Zandona
6f12257687 better implementation of CPY command 2008-08-01 06:40:34 +00:00
Brian Troha
69e1dc9d8d Adds a note in the romdef about the default settings for both INDY 500 sets. Changed game names to INDY 500 Twin & INDY 500 Deluxe. 2008-08-01 05:56:06 +00:00
Brian Troha
dab2689f02 New clone: Indy 500 Deluxe
Note: it works as well as the parent ;-)
You can watch it run in MAME

New clones added
----------------
Indianapolis 500 Deluxe [Kris Anks]
2008-08-01 03:14:06 +00:00
Aaron Giles
444cde4388 Added cropping of the VBI data. 2008-08-01 02:36:23 +00:00
Aaron Giles
776b251aa2 Removed per-frame metadata support from chdman. Creating an A/V
now simply requires an AVI file input.

Relaxed VBI Manchester code clocking to allow for a little bit
of wiggle when finding the clock.

Changed laserdisc support to parse white flags and other data
from the VBI data directly, rather than relying on the textual
metadata. Expanded video frame cache to 3. Changed the way
frames are assembled to decrease the likelihood of getting an
interlaced weave. Fixed sound creation so that it is done at
reset time instead of device start, when the sound devices aren't
yet live.

Fixed bug in winwork that caused the creation of single work 
items to return NULL, and thus lead to massive memory leaks when
using A/V CHDs.
2008-08-01 02:23:26 +00:00
Derrick Renaud
c43a103858 Minor optimization to the DISCRETE_INPUT modules. The node output is now calculated when a discrete_sound_w() is called instead of each step in the simulation.
Removed the Enable line from the DISCRETE_ADJUSTMENT modules.  They should never be disabled.

Some before/after speed tests:
dkong - from 203% to 204%
firetrk - from 418% to 429%
phoenix - from 253% to 257%
polaris - from 448% to 476%
2008-08-01 00:08:42 +00:00
Roberto Zandona
bab5dcbbbb fix sprite-sprite priorities in spinlbrk (mantis #02060) 2008-07-31 21:49:16 +00:00
Roberto Zandona
9fe219e5c5 fixed gfx in kothello 2008-07-31 18:13:58 +00:00
Luca Elia
9f8e261997 Driver for "Jingle Bell" by IGS
(roms in current/j/jingbell.zip)

The background (slot reels) is not emulated properly,
hence it's not playable and marked as not working.

New games marked as GAME_NOT_WORKING
------------------------------------
Jingle Bell [Luca Elia]
2008-07-31 16:52:17 +00:00
Roberto Zandona
89e879e806 add infos to the 1943 driver (video) about priorities encoded in PROM 2008-07-31 10:39:05 +00:00
Luca Elia
eb89942ce4 Preliminary driver for "Quiz Punch 2"
Like some other Space games (mosaic.c), it is protected by an MCU
that supplies the addresses to jump to.

I've done some basic simulation that at least shows the service mode.

This is a candidate for decapping / trojaning, or for Nicola to examine
like he did with Mosaic ;-)

Note to Guru: u118 is probably bad, it fails the rom test.

New games marked as GAME_NOT_WORKING
------------------------------------
Quiz Punch 2 [Luca Elia]
2008-07-31 09:41:24 +00:00
Aaron Giles
57bd1856b5 Cleanups/version bump. 2008-07-31 09:00:13 +00:00
Aaron Giles
e8f2759a0c (From Atari Ace. Note that I only took the first patch, which applied
to whole functions. The other one I'm not so sure about. Commented
code is usually hilighted differently, making it very easy to spot.)

Hi mamedev,

This set of patches has one aim only, to identify chunks of code that
have been disabled by the use of C/C++ comments, and to disable them
instead by using the preprocessor.  The C comment approach to
disabling code isn't safe (embedded comments will trip it up), and the
C++ comment approach isn't elegant (you shouldn't need to touch every
line to disable a chunk of code).  Using #if...#endif is preferable
always, excepting perhaps if (0) { ... }.

The patch has three parts.  The first only handles cases where full
functions were disabled.  The second handles cases where parts of
functions were disabled.  The third then tries to restore the
whitespace that the use of comments converted from tabs to spaces via
srcclean.exe.  It also cleans up the whitespace in a handful of the
files in areas outside of the original two patches.

~aa
2008-07-31 08:30:22 +00:00
Aaron Giles
e0409bc7b1 From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: a few cleanups

This patch contains:
- removal of unprintable chars (newlines) in SH-2 disassembler (I 
submitted this in the past nd it wasn't included)
- a few unnecessary checks after malloc_ort_die() calls
- changes two romload.c warnings to use GAMENOUN instead
- adds "deprecat.h" in a  few src/mame/drivers files (would be 
necessary, if the debugger.h one would be removed)
- cleans up the mame.mak by adding all missing defines and grouping 
them based on cpu.mak
- renamed video_exit() to winvideo_exit() for consistency in function 
names
2008-07-31 08:26:39 +00:00
Aaron Giles
a69088c498 Added new options 'cheatpath' to specify one or more paths for cheat
files. Removed old option 'cheat_file'.

Updated xmlfile.c to specify the line number for each node, for more
accurate error reporting.

Removed old cheat.c/.h and replaced them with code that will read and
write the new XML-based cheat format using the new cheatpath option
(cheats still need to be enabled in order to load at all). Note that
the cheats are not implemented yet, but they are fully parsed. To test
saving, whenever a cheat file is successfully loaded, it is immediately
written back out as 'output.xml' to the cheat directory for validation.
2008-07-31 08:19:53 +00:00
R. Belmont
252f254ab3 New game marked as NOT WORKING: Bust a Move 2 (JAPANESE ROM ver. 1999/07/17 10:00:00)
Game is NOT WORKING because it uses an H8/3644 MCU plus an IDE HDD to emulate the home PS1 version's redbook audio tracks.  Cross your fingers for decapping.
2008-07-31 04:53:53 +00:00
R. Belmont
818cfdc705 Fixed 64-bit GCC compile. 2008-07-31 04:49:54 +00:00
R. Belmont
252395e70a Enable strict PC relative loads for ST-V games; at least Cotton Boomerang needs them. 2008-07-31 04:42:51 +00:00
Brian Troha
7011feedf2 New Clone: Killer Instinct 2 (v1.3k, upgrade kit)
actual driver mod

Not working like v1.4k, upgrade kit

New clones added
----------------
Killer Instinct 2 (v1.3k, upgrade kit) [Brian Troha]
2008-07-31 01:16:02 +00:00
Brian Troha
ee24c4259f New Clone: Killer Instinct 2 (v1.3k, upgrade kit)
Not working like v1.4k, upgrade kit

New clones added
----------------
Killer Instinct 2 (v1.3k, upgrade kit) [Brian Troha]
2008-07-31 01:15:12 +00:00
Aaron Giles
5a17b8a274 Changed symbol table reference parameters to void * from UINT32. 2008-07-31 00:19:30 +00:00
Aaron Giles
2583b3cb6a Fixed menu handling so it doesn't swallow the tab key. 2008-07-30 22:36:30 +00:00
Luca Elia
fb63d91e65 Driver for "Galaxi", an italian gambling game.
Roms are in current/g/galaxi.zip.

New games added or promoted from NOT_WORKING status
---------------------------------------------------
Galaxi [Luca Elia]
2008-07-30 17:17:29 +00:00
R. Belmont
a6991f7085 Fix audio in F3 games after recent region changes. 2008-07-30 17:06:47 +00:00
Roberto Fresca
db1052137d New clones added
----------------
Pool 10 (italian, set 3) [Roberto Fresca]
2008-07-30 17:03:25 +00:00
Aaron Giles
975eccb12c Simplified shift/rotate instruction implementations.
The ROL/ROR/SHL/SHR opcodes provide the carry flags typically generated by
almost all CPUs. The RORC/ROLC opcdes map directly to the rotate through 
carry of most CPUs as well.
2008-07-30 14:49:40 +00:00
stephh
9e81e14705 Replaced "cpu1" and "cpu2" instances by "main" and "slave". 2008-07-30 14:32:25 +00:00
Aaron Giles
2a503b0899 Fixed overaggressive search & replace. That will teach me to try out
a new editor. :)
2008-07-30 14:13:11 +00:00
Aaron Giles
7d732d1f06 Remaining obvious regressions from region change. 2008-07-30 13:30:02 +00:00
Aaron Giles
03c86e0aa7 Fixed several regressions due to the region changes. 2008-07-30 05:21:01 +00:00
Aaron Giles
53491603bb Added region and regionbytes fields to the deviceconfig, which are
auto-filled by the device manager before starting the device. This
simplifies the auto-binding process for devices.

Added new selector for device-specific ROM regions. Not yet wired
up in the ROM loader.
2008-07-30 02:57:19 +00:00
Aaron Giles
3b3cd0ffb2 Removed ancient /* audio CPU */ comments that were remnants
from when we removed the CPU_AUDIO_CPU flag. Now that all the
CPU are tagged, it is quite clear which CPU is audio-related.
2008-07-30 02:35:56 +00:00
davidhay
fa5592836c preliminary work on key file format 2008-07-29 23:14:34 +00:00
davidhay
35ac4bed2d Naomi updates [Samuele Zannoli]
1) refactors many global and static variables in video\dc.c into a
structure to hold the tile accelerator state
2) textures should be better decoded with more pixel formats
3) adds placeholders for some register probably used by the dimm board
4) corrects a little error in a rom board register (very important, now at
least the gdrom games try to start)
2008-07-29 22:14:41 +00:00
Wilbert Pol
c67737a40c i8051 cpu core timer updates:
- Added support for timer mode 0 (13 bit timer)
- Cleaned up timer code a bit, fixing some off-by-one errors when timers overflow.
2008-07-29 18:29:01 +00:00
Aaron Giles
3052db3fa9 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Sent: Sunday, July 27, 2008 2:46 PM 
To: submit@mamedev.org 
Subject: misc patches 

Hi, 

enclosed please find a few more patches based on 126u2. It's just a few 
minor bugfixes because I'm quite busy and I still have to test the other 
changes to tagged inputs (I will send them in the next few days) 

In misc2.zip you'll find a few corrections to my previous patches and a 
few new bugfixes: 

* cachat.diff: It fixes bug 2046. This is a bug I introduced misreading 
the default value of the flip dip when updating taito_l.c to use 
taitoipt.h definitions. My bad, sorry. 

* witch.diff: It fixes another small 'mistake' I introduced when tagging 
the ports in witch.c. I searched and replaced a few too many 'port' 
occurrences, making some comments unreadable. Again, sorry for the 
inconvenience. 

* btime.diff: It's an updated version of my previous patch, following 
your suggestions. 'Off' comes always first now and manual settings which 
do not work on the emulated game are commented out 

* skyfox.diff: It fixes bug 2050. Being at it, I also added dip 
locations to the driver and updated memory maps to use AM_READ_PORT 

* combatsc.diff: It fixes bug 456, solving both the regression which 
made disappear all sprites (they were covered by the non-transparent 
text layer since 118u1) and the corruption of the graphics in title 
screen (due to the wrong drawing order). Mind that bug 400 (scrolling 
problems present since 0.79) is not fixed yet, unfortunately. 

Regards, 

Fabio
2008-07-29 17:13:56 +00:00
Aaron Giles
e70d4b0a85 (Modified to allow for overwrites of RAM ranges only.)
From: Atari Ace [mailto:atari_ace@verizon.net] 
Subject: [patch] Stricter ADDRESS_MAP checks

Hi mamedev,

The current implementation of address maps is lacking some useful
checks of the initial tokens.  In particular, it doesn't validate that
a particular entry doesn't try to define the same handler multiple
times.

The attached patch adds this and some other validations as fatalerrors
in address_map_detokenize, and fixes the affected maps.  The errors
generally fall into the following categories.

1.  AM_RAM AM_WRITE(...).  Should have been AM_RAM_WRITE(...)
2.  AM_RAM AM_READWRITE(...).  The AM_RAM is a NOP.
3.  AM_RAM AM_RAMBANK(...).  The AM_RAM is a NOP.
4.  AM_ROM AM_ROMBANK(...).  The AM_ROM is a NOP.
5.  AM_ROM AM_READ(...).  The AM_ROM is a NOP.

One peculiar error was in equites.c, where there were two AM_BASE
entries.

~aa
2008-07-29 17:08:43 +00:00
Aaron Giles
212c069fd9 Fixed CPS1 audio CPU names to prevent crash. 2008-07-29 15:21:58 +00:00
Aaron Giles
27061ca599 Moved region post-processing back to the end. Fixes endian issue on
second SH2 for ST-V games.

Fixed buffer overrun in latest SCSP code. Not sure how that ever
worked.

colmns97 still asserts in SCSPDSP, but this happened before the
region change.
2008-07-29 15:12:09 +00:00
Aaron Giles
25e1504511 Oops, should have been using SETc versus GETFLGS in this case. 2008-07-29 05:52:05 +00:00
Aaron Giles
5333fe1fb3 Fixed taito_l crashes. 2008-07-29 05:18:20 +00:00
Aaron Giles
962daf6607 Implemented ADDV/SUBV with flags. Kept C versions behind a compile-time define
for comparison.
2008-07-29 05:16:02 +00:00
Aaron Giles
d9c66068e8 Changed space character for memory regions from re'g'ion to 'm'emory_region. 2008-07-29 04:53:20 +00:00
Aaron Giles
a7ae6a548f Fixed comment. 2008-07-29 01:45:34 +00:00
Aaron Giles
a22ab0d669 Fix for 02043: All games in cps2.c: All Parent Sets for CPS2 Games Abort
(Thanks to Firewave)
2008-07-29 01:39:22 +00:00
R. Belmont
76d5ed12a3 SH2DRC: add SUBV, replace ADDV with C version as a precaution. (Fixes most of Mantis #2026, except the part which is a separate bug). 2008-07-28 23:12:47 +00:00
davidhay
6d998d26ed change unmapped read for mspacman to see if it changes tunnel behavior (as suggested by dwidel) 2008-07-28 22:05:50 +00:00
davidhay
bd04b28cfd adds recent guru dumps to aleck64.c, not working. 2008-07-28 21:56:28 +00:00
Roberto Fresca
d67a7c8c74 Changes to lucky74.c driver:
- Pre-defined CPU and SND clocks.
 - Switched the color system to RESNET calculations.
 - Completed the remaining DIP switches.
 - Added lamps support. Created a layout to show them.
 - Changes on the interrupt system (need to be verified on the PCB).
 - Renamed the graphics regions to more descriptive names.
 - Corrected the manufacturer's name.
 - Splitted the driver to driver + video.
 - Updated technical notes.
2008-07-28 18:34:06 +00:00
Aaron Giles
4a6fc8d5e5 Region classes go bye-bye. 2008-07-28 16:22:20 +00:00
Aaron Giles
86022ddde4 Removed all instances of regions with different class but equal names. 2008-07-28 15:09:12 +00:00
R. Belmont
6211400d23 Slowness is portable. 2008-07-28 14:36:06 +00:00
smf-
765d90880d fixed inline of DecodeADPCM under visual studio. 2008-07-28 14:10:11 +00:00
smf-
7cecc0bb3c added cast so direct input 8 code will build on mingw. 2008-07-28 13:20:04 +00:00
Aaron Giles
27fed1ec97 Changed the way memory regions are referenced. Instead of a single
integer value, regions are now referred to by a region class and
a region tag. The class specifies the type of region (one of CPU,
gfx, sound, user, disk, prom, pld) while the tag uniquely specifies
the region. This change required updating all the ROM region
definitions in the project to specify the class/tag instead of
region number.

Updated the core memory_region_* functions to accept a class/tag
pair. Added new memory_region_next() function to allow for iteration
over all memory regions of a given class. Added new function
memory_region_class_name() to return the name for a given CPU
memory region class.

Changed the auto-binding behavior of CPU regions. Previously, the
first CPU would auto-bind to REGION_CPU1 (that is, any ROM references
would automatically assume that they lived in the corresponding
region). Now, each CPU automatically binds to the RGNCLASS_CPU region
with the same tag as the CPU itself. This behavior required ensuring
that all previous REGION_CPU* regions were changed to RGNCLASS_CPU
with the same tag as the CPU.

Introduced a new auto-binding mechanism for sound cores. This works
similarly to the CPU binding. Each sound core that requires a memory
region now auto-binds to the RGNCLASS_SOUND with the same tag as the
sound core. In almost all cases, this allowed for the removal of the
explicit region item in the sound configuration, which in turn 
allowed for many sound configurations to removed altogether.

Updated the expression engine's memory reference behavior. A recent
update expanded the scope of memory references to allow for referencing
data in non-active CPU spaces, in memory regions, and in EEPROMs.
However, this previous update required an index, which is no longer
appropriate for regions and will become increasingly less appropriate
for CPUs over time. Instead, a new syntax is supported, of the form:
"[tag.][space]size@addr", where 'tag' is an optional tag for the CPU
or memory region you wish to access, followed by a period as a 
separator; 'space' is the memory address space or region class you
wish to access (p/d/i for program/data/I/O spaces; o for opcode space;
r for direct RAM; c/u/g/s for CPU/user/gfx/sound regions; e for 
EEPROMs); and 'size' is the usual b/w/d/q for byte/word/dword/qword.

Cleaned up ROM definition flags and removed some ugly hacks that had
existed previously. Expanded to support up to 256 BIOSes. Updated
ROM_COPY to support specifying class/tag for the source region.

Updated the address map AM_REGION macro to support specifying a
class/tag for the region.

Updated debugger windows to display the CPU and region tags where
appropriate.

Updated -listxml to output region class and tag for each ROM entry.
2008-07-28 09:35:36 +00:00
R. Belmont
1b81188229 SH2DRC: Add PC-relative load optimization and ability to disable if necessary [R. Belmont, based on an idea by Mariusz Wojcieszek] 2008-07-28 05:57:29 +00:00
R. Belmont
67faaeb473 AICA updates [Deunan Knute, ajax16384, R. Belmont]
- Fixed ADPCM decoder to remove bad optimization and match YMZ280B.  DC offset is fixed and output quality is higher
- Improved handling of slot monitor and timers B and C
- Simplified interpolation code
2008-07-28 05:46:29 +00:00
Andrew Gardner
867d51a2bc Memory map merge for beezer.c, bishi.c, and bladestl.c 2008-07-28 04:48:41 +00:00
Andrew Gardner
6e13a53ff7 DSP56156 CPU Core updates.
- Rewrote core logic, communications, and interfaces.
- Added three parallel memory moves to the disassembler.
- Initial interrupt logic in place.

Plygonet.c updates.
- All communication hacks have been removed.
- Memory maps have been temporarily reverted while new DSP56k cpu core catches up.
2008-07-28 01:19:21 +00:00
Tomasz Slanina
92bcd925f0 Irem m63 - adjusted AY frequencies to proper 1.5 MHz [Stefan Lindberg] 2008-07-27 22:50:18 +00:00
Nathan Woods
251b59b069 Cleaned up MESS-specific hooks 2008-07-27 12:08:09 +00:00
smf-
0124a7cc68 Builds with latest DirectX SDK, which doesn't support Direct 3D 8 & Direct Input 7. If you want to compile in support for earlier versions then you can set DIRECT3D=8 & DIRECTINPUT=7. Based on a diff posted on the mameworld compiling board by RansAckeR, who was helped by uRebelScum. 2008-07-26 21:13:35 +00:00
Nathan Woods
a08d7977c3 Added some assertions 2008-07-26 20:49:28 +00:00
Nathan Woods
b3ee2ffd1f Added the ability to optionally pass a destructor to ui_menu_alloc_state() 2008-07-26 18:34:17 +00:00
Aaron Giles
37f422ebec Removed missing include. 2008-07-26 14:26:10 +00:00
Aaron Giles
1cc0010977 Attempted fix for 01092: debugger crashes when exiting during "run to cursor" 2008-07-26 14:24:11 +00:00
Brian Troha
d6108e5347 verified the Free Kick proms
better documented prom info/type
minor white space clean up
2008-07-25 16:00:43 +00:00
Aaron Giles
fcf08639ee A bit more cleanup, still half-WIP now that I'm distracted with votrax. 2008-07-25 15:46:39 +00:00
stephh
bf20cd444a Handles player 3 inputs for 'wofhfh'. 2008-07-25 10:11:46 +00:00
Brian Troha
70b0a76a05 adds info from the Guru about the Kiki KaiKai MCU. 2008-07-25 05:36:52 +00:00
Aaron Giles
7a14f21c15 Cleanups and version bump. 2008-07-24 09:07:49 +00:00
Aaron Giles
4900606a62 Minor gameplan changes in attempts to get leprechn music playing again.
No success yet.
2008-07-24 08:38:06 +00:00
Aaron Giles
56d6052e1f 01892: calspeed: Refreshspeed causes horrible screetching in some games [Calspeed used for example]. 2008-07-24 06:55:03 +00:00
Aaron Giles
0b77a69691 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Conditional code cleanup resubmit

Hi mamedev,

This is a resubmit of a previous patch.  The earlier version would not
compile with 32-bit MSVC, due to the fact that its linker required
external dependencies in dead code to be met before dead code
elimination was done, causing linker errors.  The proper fix for this
would be to add the necessary dependencies, so I instead simply left
the conditional code in place in winalloc.c and chd.c.

~aa

Original submission email below:
----
Conditionally compiled code tends to bitrot, so MAME should try to
avoid it as much as possible.  I sent a patch six months ago to
eliminate conditional code associated with logging, here's another
patch that does more of this.  Some notes:

1.  drc_ops.c: I couldn't find a LOG_CODE anywhere, so I used if (0).
2.  romload.c: I converted all the users of debugload to use
LOG((...)) instead, following the traditional conditional logging
pattern.
3.  windows/sound.c: I eliminated the separate sound log and directed
the few outputs to the error log.

~aa
2008-07-24 06:26:47 +00:00
Aaron Giles
9b63c42203 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] .data removals to fix reset/multisession bugs

Hi mamedev,

One nice artifact of properly constifying data structures in MAME is
that it makes it relatively easy to spot a class of reset/multisession
bugs, namely that almost any object in .data is probably in error.
Unless the value is properly initialized in a reset routine the
initial non-zero value can't be relied upon, so there's no need to
have a non-zero value to begin with.

With that in mind, here's a patch to move more items out of .data by
either applying const, removing the non-zero initializer (if its
overwritten by init/reset) or by adding appropriate initialization
code.  In most cases I tried to add initialization code to a reset
routine, but in some cases I chose an init routine, possibly leaving a
reset bug intact.

Some interesting bits:
1.  tms9900 core.  The use of .data to initialize the irq_level wasn't
correct in some cases as the layout of the structure was core
dependent.
2.  bfcobra.c.  By introducing a VIDEO_START routine a hack in
VIDEO_UPDATE could be removed.

~aa
2008-07-24 06:18:01 +00:00