Commit Graph

3498 Commits

Author SHA1 Message Date
Aaron Giles
ca7e069f29 02479: Various: Memory leak 2008-10-09 09:14:07 +00:00
Aaron Giles
0329403bae 02488: All sets with using 2+ monitors: Crash to desktop on second play
02439: tx1: TX1 quits out on second launch
02266: tceptor: Thunder Ceptor crashes out when run as the second game
2008-10-09 09:11:42 +00:00
Aaron Giles
8a0b803ec4 02321: mpu4utst, mpu4tst2, mpu4met0: Screenless systems crash due to problems in some display core functions 2008-10-09 08:58:09 +00:00
Aaron Giles
f2464e06f2 02324: dokyusei, dokyusp, gakusai, gakusai2: Game doesn't start 2008-10-09 08:48:12 +00:00
Aaron Giles
6f77816007 Further crash fixes. Also optimized st0016 RAM tile behavior to
lazy decode the graphics, giving a big speed boost to some of the
mahjong games.
2008-10-09 08:36:16 +00:00
Aaron Giles
0389171b57 02470: Various: Access Violation
Note that this is caused by leaving entries in the bitmap
with an index larger than the palette size. This is forbidden
and now can lead to a crash in debug builds.
2008-10-09 08:08:06 +00:00
Aaron Giles
c270b3d714 02475: kf10thep: Access Violation [JohnBoy] 2008-10-09 07:17:11 +00:00
Aaron Giles
01cf916801 02502: fax, hardhat, mtrap, pepper2, teetert, venture and clones: Accessing a certain portion of memory in the debugger causes crash. 2008-10-09 07:11:08 +00:00
Aaron Giles
7b84b06986 Fix regression due to non-zero alpha values being present in the bitmap. 2008-10-09 06:35:00 +00:00
Aaron Giles
2d6453c98a Made the Z80 daisy chain aware of referencing device-specific devices.
Added preliminary LD-V1000 emulation. Not fully working yet, but mostly
there.

Cleaned up and normalized the three existing laserdisc emulations.
Removed obsolete code from the laserdisc core.
2008-10-09 05:31:15 +00:00
Tomasz Slanina
3df44083f8 snes.c - Fixed problem with OAM address reset at start of vblank.
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Sonic Blast Man 2 Special Turbo (SNES bootleg) [Andreas Naive, Tomasz Slanina]
2008-10-08 18:35:22 +00:00
Couriersud
b02332f875 MCU protection now working for lohtb2 (m72.c)
* Hooked up 6751
* Synchronized protection ram writes with timer callbacks

This is not really stable - please refer to my mail to the dev-list.
2008-10-08 01:00:36 +00:00
Couriersud
7494be5525 Removed speed hack - this would break the protection for lohtb2 2008-10-07 23:07:09 +00:00
stephh
486d9c32c0 Checked, via Z80 code analysis, inputs and Dip Switches for the following games in snk.c driver :
- gwar, gwarj, gwara, gwarb
  - chopper, choppera, chopperb, legofair
  - tdfever, tdfeverj, tdfever2
  - fsoccer, fsoccerj, fsoccerb
2008-10-07 22:55:55 +00:00
Angelo Salese
f6ef599f4d There's a regression bug in Sengoku Mahjong that doesn't make the controls work from when the V30 CPU core has been converted to 16-bit.Specifically,the game accesses the multiplexer with a word write instead of a byte write.This snippet will fix it. 2008-10-07 21:26:39 +00:00
Brian Troha
70b0bba80e new clone: Armored Warriors (US 940920)
New clones added
----------------
Armored Warriors (US 940920) {Razoola]
2008-10-07 20:58:56 +00:00
Roberto Fresca
2a000a7cc8 Improvements to InterFlip / Recreativos Franco driver: [Grull Osgo, Roberto Fresca]
- Added Baby Poker Game.
 - Added sound support to Baby Poker Game.
 - Reworked the color routines.
 - Added Baby Dado Game.
 - Added new color routines for Baby Games.
 - Redumped the videocba color PROM.
 - Added color switch. (It changes background color in some games).
 - Added "hopper full" switch support (for diverter function).
 - Added diverter function decoder.
 - Added full functional mechanical counters decoding.
 - Added 7 Segment decoder and 7 Digit Counter functions.
 - Added button-lamps layout & mechanical counters simulation on layout.
   Mechanical counters to layout: Coin-In, Coin-Out and Coin to Drop.
 - Added NVRAM support to mechanical counters.


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Baby Poker [Grull Osgo, Roberto Fresca]
Baby Dado [Grull Osgo, Roberto Fresca]
2008-10-07 06:27:53 +00:00
Roberto Fresca
69d1fe783a Improved the Lucky 74 button-lamps layout to be more realistic. 2008-10-07 05:57:30 +00:00
Roberto Fresca
ee91cf4d19 Improved the button-lamps layout to all games in ampoker2.c driver. Now buttons are more realistic. 2008-10-07 05:55:59 +00:00
Roberto Fresca
c6ec8026bc Fixed the i8051 AJMP opcode to take 2 bytes instead of 3.
Please also credit Grull Osgo.
2008-10-06 21:57:27 +00:00
davidhay
6ee556f84c fix for 02460: qrouka: Coin 1+2 no longer work.
still not really convinced by this conditional dip stuff.. it stands no chance of working on games where the coinage mode is in eeprom... (but i have no better suggestions)
2008-10-06 21:52:41 +00:00
Couriersud
fc3b7838bc 02498: lightbr: Trouble of title screen
02483: gunlock, rayforcj: Title screen trouble
02482: bubblemj: Demonstration screen trouble

* Check for whether tile is opaque must honour extra planes.
2008-10-06 21:49:37 +00:00
Roberto Fresca
d3cc1b9742 Fixed timers in i8051 core. [Grull Osgo] 2008-10-06 21:36:30 +00:00
davidhay
c03c27eef3 fix for "00989: qgh: If you do a metamorphose, the screen turns black without displaying words/pictures. "
shared palette ram should actually be shared..
2008-10-06 21:10:09 +00:00
Tomasz Slanina
04c37c7bcb Sonic Blast Man 2 Special Turbo (SNES bootleg) changes:
- added rom decryption
- patched protection checks
- mapped extra inputs

Game is not playable due to heavy gfx glitches caused by bugs in SNES hw emulation.
[Andreas Naive, Tomasz Slanina]
2008-10-06 11:17:07 +00:00
Aaron Giles
e9dd491777 Added correct overlay positioning, font, and behavior to PR-8210 emulation. 2008-10-06 08:34:48 +00:00
Brian Troha
f8d5f2ed6f verified the checksum via a different auction on eBay. 2008-10-06 01:19:12 +00:00
Couriersud
887dc53b80 02458: enforce: Road layer colors are wrong.
* Please credit M.A.S.H. & Phil Bennett
2008-10-05 22:15:17 +00:00
Couriersud
4749a7dc51 02469: geebee and clones: Appears to be missing its middle swinging gate 2008-10-05 21:23:47 +00:00
stephh
c782dba531 Checked, via Z80 code analysis, inputs and Dip Switches for the following games in snk.c driver :
- ikari, ikaria, ikarinc, ikarijp, ikarijpb
  - victroad, dogosoke, dogosokb
  - bermudat, bermudaj
  - worldwar, bermudaa
  - psychos, psychosj
2008-10-05 20:54:09 +00:00
Aaron Giles
fabff71d78 OG's fixes:
* proper interrupt handling
 * fixed dcclub magic latch
2008-10-05 16:09:46 +00:00
Aaron Giles
dfa4d1a50f Completed memory maps per Charles' updated docs. 2008-10-05 00:07:36 +00:00
Couriersud
96ea69015f Fixed inputs
* added missing button mappings
* corrected dip switch

This seems to be a prototype. The number of remaining ships displayed is not correct.

New games added or promoted from NOT_WORKING status
---------------------------------------------------
Astropal (Sidam?) [Couriersud]
2008-10-04 21:33:41 +00:00
Aaron Giles
88c710d582 System 24 cleanups:
* correct memory map for CPU A
 * reduced RAM size to 256k
 * correct video timings
 * renamed regions
2008-10-04 17:30:41 +00:00
davidhay
e39b0ece90 Submission from Johnboy for Mame v0.127u6 mainline
Affected files:

	mame\src\mame\drivers\neodrvr.c
	mame\src\mame\includes\neogeo.h
	mame\src\mame\machine\neocrypt.c
	mame\src\mame\machine\neoboot.c

Changes:
 . Begin of a general cleanup
	Sorting OEM / Bootleg sets
	Renaming roms on non OEM / Bootleg sets to ONE naming sheme
	Renaming functions
	Added some comments
   Cleanup is not completed.
2008-10-04 13:00:16 +00:00
Aaron Giles
099373081e Added new functions for building device-relative tags. Changed machine
configuration builder to use these functions. Also changed the laserdisc
player devices to use them. Updated Z80 CTC/SIO code to assume that the
CPU provided for the clock is relative to the device that the CTC/SIO
belong to. Updated memory code to assume that regions and devices
referenced by the memory map are relative to the device the associated
CPU belongs to.
2008-10-03 16:29:33 +00:00
Aaron Giles
d707ec622e Fixed a number of regressions due to recent 68000 IRQ changes. 2008-10-03 06:05:16 +00:00
stephh
e348c244aa Added missing support of normal joystick for player 2 in 'gwarb'. 2008-10-03 04:20:30 +00:00
stephh
fc54f63a09 Removed unneeded keys by removing the constants.
Readded UI_ON_SCREEN_DISPLAY to be changed again in the "Inputs" menu as per Aaron's request.

A clean build is required and cfg/default.cfg has to be deleted !
2008-10-03 04:00:41 +00:00
Nathan Woods
17b9549fef Fixed broken prototypes 2008-10-03 03:27:37 +00:00
Brian Troha
18748a6b3f new games/clones added
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Megatouch 5 (9255-60-07 RON, New Jersey version) [Brian Troha]

New clones added
----------------
Megatouch III (9255-20-07 ROG, New Jersey version) [Brian Troha]
Super Megatouch IV (9255-41-07 ROG, New Jersey version) [Brian Troha] (Not Working)
2008-10-02 22:40:37 +00:00
Aaron Giles
f90a19f2bc MSVC compiler error. 2008-10-02 15:05:46 +00:00
Aaron Giles
5123b07115 Cleanups and version bump. 2008-10-02 05:34:21 +00:00
Aaron Giles
cf63e2baa8 Fixed handling of interrupts when the CPU was in the STOP state. 2008-10-02 05:31:24 +00:00
Aaron Giles
18c6cfb56a From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Sent: Mon 9/29/2008 9:45 AM
To: submit@mamedev.org
Subject: Small SNES changes
Hi,  

enclosed please find a patch which changes a bit the way SNES 
carts (NSS & bootlegs) are loaded at init time. Currently, data 
are loaded once at start and then the read handlers perform various 
mirroring tricks. With the attached patch, the cart is loaded at 
init and mirrored as many times as it is necessary, while handlers 
simply read from the plain offset. Also, blocks of data are mirrored 
until they fill all the available banks. Implementing this behavior 
both simplifies the handlers code and is more faithful to the hardware 
(see mirroring note included in the DRIVER_INIT).

I also slightly changed some handlers to take into account the new 
mirroring system. OTOH sram_handlers haven't been updated (they will 
be eventually) because with carts as small as the ones in nss.c and 
snesb.c, they basically have no overlapping with the new mirroring 
approach... as soon as I come up with a satisfactory implementation 
that works in MESS (which has to deal with much larger carts), I will 
also submit the MAME side.

No regressions appear with the patch, as far as I could test.

Regards
   Fabio

--

From: Fabio Priuli [mailto:doge.fabio@gmail.com] 
Sent: Wednesday, October 01, 2008 12:01 AM
To: submit@mamedev.org
Subject: further snes changes

Hi,

enclosed please find a patch which rewrites memory handlers in 
machine/snes.c to take into account the additional cart/memory layouts 
(mode 22 & 25) which were available for the home console (almost no 
impact on nss.c & snesb.c, which only use mode 20 & 21). rather than 
only add a bunch of if(snes_cart.mode == XXXX), I preferred to slightly 
rewrite the handlers. main changes on the MAME side are:

* merged regions 0x700000 up to 0x7dffff in snes_map (this allows to 
make memory maps in nss.c and snesb.c identical: the zone previously 
NOPed in nss.c is now handled by snes_r_bank5, because it was not 
reserved for all cart types)
* split region 0x800000-0xbfffff from 0xc00000-0xffffff in snes_map. 
This simplifies a bit handlers used by MAME and it will be necessary 
when MESS supports special chips like SDD-1 (which dynamically changes 
the part of cart loaded in the latter region)
* slightly enlarged SRAM regions (in this case, it only affects what 
happens inside the handler, NOT snes_map) to support carts with 512kbits 
of SRAM (e.g. Thoroughbred Breeder III for MESS). I'm still not 100% 
satisfied with SRAM mirroring, but this is closer to the real thing 
than the previous way to handle it

No regressions are present, neither in MAME nor in MESS, as far as I 
could test (well, for MAME weren't expected, since most changes affected 
mode 22 & 25).

Regards,
     Fabio
2008-10-02 05:09:37 +00:00
Aaron Giles
96943508cd From: abcd efgh [mailto:cix_999@yahoo.it]
Sent: Sunday, September 28, 2008 6:01 AM
To: submit@mamedev.org
Subject: System1 Dips Location

Hi folk!
I continuing   the work on System1
- Added dips location in all game
- Moved in generic Cabinet dip for eliminate the redundancy
- Better implementation of generic input
Bye Sonikos
2008-10-02 05:06:13 +00:00
Aaron Giles
742dcf52f3 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Sent: Friday, September 26, 2008 11:01 PM
To: submit@mamedev.org
Subject: fix for sbasketb

As pointed out by ShimaPong on mameworld forums, dips are 
read in the wrong way in sbasketb.c. It seems that when 
DipLocations were added, the tags were changed in the input 
ports but not in the memory map.

The enclosed patch fixes this regression

Regards,
    Fabio
2008-10-02 05:05:20 +00:00
Aaron Giles
adaaf55595 From: Matt Ownby [mailto:matt.ownby@gmail.com]
Sent: Fri 9/26/2008 10:15 AM
To: submit@mamedev.org
Cc: Philip Bennett
Subject: fix for Cube Quest Line CPU emulation
I found a bug in the emulation of the Cube Quest Line CPU.

Proof of bug:
After looking at .diff,
Assume 'ci' is 1, and assume 'r' and 's' are both 0xFFF 
(0xFFF equals -1, as these numbers are 12-bit signed).
The result should be mathematically equivalent to -1 - (-1) 
which is 0.
~0xFFF is 0xF000, so you'd have 0xF000 + 0x0FFF + 1 which equals 
0x10000 but since 'res' is 16-bits this is truncated to 0x0.  
'C' then becomes 0 and 'V' becomes 1 (as I recall).  The result of 
0 is correct, but the flags are wrong; V should be 0 and C should 
be 1.

Under my proposed fix, you'd have 0x000 + 0x0FFF + 1, which equals 
0x1000, so the lower 12 bits are 0 (correct) and C is 1 and V is 0 
(correct).

I discovered this bug while disassembling the line CPU's ROM.
2008-10-02 05:04:06 +00:00
Aaron Giles
4e9364ded5 Stupid compiler. 2008-10-01 17:12:04 +00:00
Aaron Giles
ce465cb509 Changed 68000 interrupts to only trigger during execution. This
means that multiple changes without any execution will be seen as
atomic. It also means that PULSE_LINE no longer works for signalling
IRQs.

Added checks in the debug build to catch people who try to use
PULSE_LINE for non-NMI and non-RESET input lines on CPUs that no
longer support direct interrupt generation. Over time expect this
list to increase.
2008-10-01 17:09:11 +00:00