Commit Graph

1856 Commits

Author SHA1 Message Date
Aaron Giles
1855238186 Undo change 1933 temporarily ... not quite ready to unleash this on the world
with no substantial dev exposure.
2008-06-12 19:51:49 +00:00
Curt Coder
aa15601968 Added a validity check against reading input ports at init time. 2008-06-12 19:34:37 +00:00
Couriersud
284b13c277 Moved moonwar and moonwara from scobra.c to galaxian.c 2008-06-12 19:33:02 +00:00
Aaron Giles
a701f8537e Added bilinear filter option to software rendering. Not hooked up to anything yet. 2008-06-12 19:14:18 +00:00
davidhay
50f9e740f0 NeoGeo changes from Johnboy
Changes:
========
Updated Neo-Geo game pcb infos
Marked kof2001h AES VERSION
Marked samsho3a MVS VERSION
Marked 2020bba AES VERSION, renamed p1 and added a note
Renamed lastsold p1 to correct chip label 134-p1k
-> Checked other Korean sets, found similar ID change; renamed accordingly
	Renamed rbff2k p1 to 140-p1k
	Renamed fswords p1 tp 187-p1k
	Renamed aof3k p1 to 196-p1k
   Added comment to kof99n: Korean version?
Renamed mslug3n to mslug3h, Marked AES VERSION, changed mamedriv.c
Remove BAD_DUMP from kotm, add correct m1
Correct s1 layer size in samsh5sp + clones
Removed BAD_DUMP from burningf + clone
Added correct m1 to lbowling
Added correct m1 to socbrawl + clone
Added correct m1 to mutnat
Added correct m1 to joyjoy
Added correct c1/c2 and s1 to marukodq
Renamed p-roms in wh1 and wh1h, added comment
Added some comments about 'M1' and 'S1' roms
Renamed files in kof2001 to correct chip label, changed m1
Corrected set pbobblen as found on MVS cart, added notes
2008-06-12 19:10:56 +00:00
Manuel Abadia
a3cc805f35 One more note about the PCB layout by Mirko Mattioli 2008-06-12 17:46:37 +00:00
Curt Coder
f8912e4a2d COP4xx:
- Added COP421 variant

Thayer's Quest:
- Fixed SSI-263 timings, service mode works now
- Changed to use COP421
2008-06-12 17:20:08 +00:00
Aaron Giles
c10b238896 Added option -[no]coin_lockout (-[no]coinlock) to control coin lockout behavior. 2008-06-12 17:06:49 +00:00
Aaron Giles
e62e3229d3 Missed file from previous checkin. 2008-06-12 16:58:03 +00:00
Aaron Giles
162e9bffa4 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: last 2 patches (now attached for real!)

Hi,

attached please find a couple of patches, again input related:

* d_patch01.diff removes a few more read_indexed from a bunch of drivers which were easy to test (just few supported sets)
* backpatch.diff replaces the sprintf I added (in my first submission) with the cleaner solution you suggested

Regards,
   Fabio
2008-06-12 16:57:38 +00:00
Aaron Giles
3a2c319252 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: a few more

Last batch of diff to replace input_port_read_indexed occurrencies for this u4. I widely tested the changes, so everything should be ok.

As usual 5/6 driver each patch: let me know if something fails to apply.

A final note: I added 2 'empty' ports to bullsdrt in centiped.c. This is a bit of paranoia to cover the possibility that one unknown dip is a flipscreen one (so that centiped_IN2_r has something to read for the second player as well). If bullsdrt is known not to have flip screen code, please remove these.
Anyway tags allowed me to remove an empty 5th input_port in bullsdrt, which was there to have trackballs as 6th input (like centiped & milliped have), so the code is a bit cleaner now :)

Regards
     Fabio

p.s. I also changed a few AM_READ(input_port_N_read) with AM_READ_PORT... as usual more to come after u5 is out!
2008-06-12 16:53:49 +00:00
Aaron Giles
9b80898ee0 From Shimapong
MAMETesters Bugs Fixed
----------------------
00277: [Misc.] groundfx.c, gunbustr.c, superchs.c, taito_f3.c,
       undrfire.c, psikyosh.c: Cheat search causes fatal error

Source Changes
--------------
Updated cheat system
 - Changed the function of default memory read in case of the search
   to prevent from crashing if a game uses cpu_spinutil()
   Now basically used do_memory_read() instead of do_cpu_read()
   (Try to search in actfancr between this and previous version)
   NOTE : It's not fundamental solution but no longer crash
 - Cleaned up read_data() and write_data()
 - Cleaned up save/load routine and added open_cheat_database()
 - Added new menu "Cheat Commands" into the cheat main menu
     the following commands are supported in this menu
      * reload cheat code (the same as Reload Database key)
      * cheats ON/OFF (the same as Toggle Cheat key)
      * watchpoints ON/OFF (the same as Shift + Toggle Cheat key)
      * save description (save the title of the game)
      * save raw code (save raw cheat code with new format)
 - Fixed several bugs which has found in testing
 - Renamed functions based on coding guidlines
2008-06-12 16:46:29 +00:00
Aaron Giles
863a28e929 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: a few more read_indexed removed

Hi Aaron,

attached please find a few more patches to remove input_port_read_indexed, following the approach you suggested.

Once again, each patch covers 5/6 drivers to more easily avoid failures while applying them.  Let me know if any patch fails to apply.

Also, I would like to ask some of you to take a look at bbusters.c: the behavior of the handler 'control_3_r' seems strange to me but I was not able to understand exactly which is its role in the driver. Currently, it reads one of the inputs "IN5", "IN6", "IN7" (because gun_select assumes values 0,1,2). If it's used to select the gun among the 3, shouldn't it read "IN5", "IN7" and "IN9"? anyway the current code works, so I only added a comment about this and I hope some of you can review this part of the driver to remove the remaining input_port_read_indexed.

A couple of additional notes (tag names refer to the ones I added in the patch): 

* in bnstars.c, the input port tagged as "IN6" is never read. probably this is well known to the driver author but... I think there was no harm in pointing it out :)
* in bsktball.c, Start is mapped to both the start & p1 buttons (but it is hidden behind an hack, check src/mame/machine/bsktball.c). since you were removing a few of these duplications recently, maybe this one could go as well...
* in bwing.c, the input port tagged as "EXTRA" seems an hack, and maybe it could be removed

Regards,
     Fabio
2008-06-12 16:44:33 +00:00
Aaron Giles
b171ca8111 From: Micko [mailto:mmicko@gmail.com]
Subject: 8080/8085 fix

Hello Aaron,
 
While working on drivers for some 8080 machines, I have noticed that there are some errors in flags settings in CPU implementation.
I have done fixes and now sending patch for code . Also there are changes to set right timings for both 8080 and 8085 since not all timings are up to documentation.
 
Regards,
Miodrag
2008-06-12 16:34:47 +00:00
Aaron Giles
72a6f91a8c From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: fix for MT bug #01885

I tested almost every set I changed, but it seems I missed astdelux.

Here there's a fix. Sorry.

Regards

     Fabio
2008-06-12 16:32:39 +00:00
Aaron Giles
f874100bc9 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Static qualifiers, header file cleanups, and new
include files for MAME

Hi mamedev,

The following two patches improve the use of header files in MAME, and
reduce the number of exported symbols.

The second patch then adds ~30 header files for a number of drivers
that use multiple source files.  It consolidated the various cchip
related declarations in cchip.h, and added machine/seicop.h as well.

~aa
2008-06-12 16:27:56 +00:00
Aaron Giles
50bbb369bb From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Static qualifiers, header file cleanups, and new
include files for MAME

The first patch adds static qualifiers where appropriate, adds missing
#include statements, source comments and header declarations, as well
as removes dead declarations.  The only part that required judgement
was deciding whether audio/galaxian.c declarations should be in
galaxold.h or galaxian.h, it doesn't make sense for them to be
declared in both.  This exercise did find a bug, galaxold_init_stars
was declared incorrectly in video/fastfred.c.
2008-06-12 16:25:34 +00:00
Aaron Giles
c52aacb732 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix 01863 mwalk and clones: Crash on multisession

Hi mamedev,

This should fix 01863, a multisession bug with mwalk.  There is more
global state that might need zeroing, but for a 64-bit build, this was
sufficient.

~aa
2008-06-12 16:20:22 +00:00
Aaron Giles
13a86d728f From: Oliver Stoeneberg [mailto:oliverst@online.de]
Sent: Thursday, June 05, 2008 9:00 PM
To: submit@mamedev.org
Subject: Machine -> machine cleanups

This cleans up the usage of Machine in many of the src/video files.
2008-06-12 16:19:45 +00:00
Aaron Giles
e852db663a x86/x64 back-ends:
* fixed adc/sbb so that they don't optimize out ever
 * fixed detection of special and/or/xor cases
 * fixed GETFLGS opcode so that it doesn't return anything other than requested flags
 * changed LZCNT/BSWAP to be more flexible in register selection

C back-end:
 * implemented flag variants of SEXT/ROLAND/ROLINS/LZCNT/BSWAP

PPC DRC:
 * added more symbols for debugging
 * fixed lmw/stmw if rA is one of the loaded/stored registers
 * removed unnecessary variables & structure members
 * optimized for the XER and CR0 case where XER doesn't need an overflow calculation
 *
2008-06-12 16:13:05 +00:00
Tomasz Slanina
43c67f6adf Added sound emulation to Dacholer and Kick Boy 2008-06-12 15:12:33 +00:00
Manuel Abadia
9e6333d74e Added alternate layout for World Rally 2 PCB from Mirko Mattioli 2008-06-12 10:18:02 +00:00
Aaron Giles
20ee6bc325 PPC DRC:
* changed SPU receive model to a push model; updated drivers accordingly
 * added macros for setting the SPU transmit handler and sending bytes
 * cleaned up ppc.h
2008-06-12 02:48:11 +00:00
Jim Stolis
3b3f47b864 * All video slot titles now accept coins and play normally
* Renamed peps0716 to its proper name "River Gambler Slots", instead of "Quarter Mania Slots"
* Updated peps0716 to use the proper CAP
* Replaced peps0615 to use a CAP with closer colors (still wrong)

New games added or promoted from NOT_WORKING status
---------------------------------------------------
Player's Edge Plus (PS0014) Super Joker Slots [Jim Stolis]
Player's Edge Plus (PS0022) Red White & Blue Slots [Jim Stolis]
Player's Edge Plus (PS0043) Double Diamond Slots [Jim Stolis]
Player's Edge Plus (PS0045) Red White & Blue Slots [Jim Stolis]
Player's Edge Plus (PS0308) Double Jackpot Slots [Jim Stolis]
2008-06-12 00:55:08 +00:00
Jim Stolis
f4e88036ac Timer 0's second split counter was incorrectly checking the Timer 1 Run Control Bit 2008-06-12 00:47:44 +00:00
Couriersud
2300a01dd5 Moved calipso to galdrvr.c/galaxian.c 2008-06-12 00:43:49 +00:00
Couriersud
ba646b1e9b Removed armorcar remains from scobra.c 2008-06-12 00:12:01 +00:00
Couriersud
8b6a2651c7 Move spdcoin & superbon to galaxian.c/galdrvr.c
* Fixes 00251: spdcoin: Sound isn't perfect. There are many static pops to be heard, and volume is very low.
* superbon: Change name to Agent Super Bond and Manufacturer to "Signatron USA"
* superbon: Change year to 1985 following information on arcadeflyers.com
2008-06-11 23:56:29 +00:00
Brian Troha
567964909e changed "CRC16" in comment to "checksum" to be accurate. 2008-06-11 21:41:26 +00:00
Brian Troha
6d484550e9 changes SWAT Police to "normal" from imperfect graphics thanks to Haze.
Fixed some roms and added a note stating that some PCBs come with larger EPROMs with data repeated.
2008-06-11 21:30:40 +00:00
Curt Coder
0d579d5375 Thayer's Quest:
- fixed Z80-COP communications
- figured out ports from disassembly
- added cart presence detection logic
2008-06-11 19:29:49 +00:00
Curt Coder
d8c3b0e4f1 COP4xx:
- fixed LEI instruction
2008-06-11 19:19:00 +00:00
Aaron Giles
2f524636c6 PPC DRC:
* added detection of MMU enablement in 403GCX case
 * fixed bug in protection bounds violation detection for 4XX to get ppd
    to the "ppc4xx_spu_rx_data unimplemented" message
2008-06-11 14:37:33 +00:00
Aaron Giles
7079892d7e Fixed left/right accesses to work with recent memory handler changes. 2008-06-11 13:44:46 +00:00
Roberto Fresca
a5ec808bdd Cal Omega driver improvements:
- Improved the input system for some games.
 - Fixed some wrong color codes.
 - Updated technical notes.
2008-06-11 08:14:54 +00:00
davidhay
daf632e308 improv 2008-06-11 06:47:40 +00:00
Aaron Giles
fe1200fdcb Thayer's Quest:
* fixed conflicting layout (not super happy with the technique...)

x64 back-end:
 * added a "hop" around the prolog of the HANDLE opcode to allow fall-through

x86 back-end:
 * redesigned stack management to keep the stack at the same 16-byte alignment

PPC DRC:
 * fixed parameter ordering for masked reads/writes
2008-06-11 05:27:13 +00:00
Brian Troha
b2a4d0e951 New games added or promoted from NOT_WORKING status
---------------------------------------------------
SWAT Police [Brian Troha]

New clones added
----------------
Head Panic (ver. 0117, 17/01/2000) [Brian Troha]


SWAT Police is marked as imperfect graphics.  I don't think the roms are bad... The driver may need to updated to support the foreground or the foreground isn't correctly mapped

I made the new Head Panic set the parent even though it's older.  Beacuse it's by ESD only and is all English.

Added notes about other ESD games and updates some general info
2008-06-11 01:38:02 +00:00
Roberto Zandona
c8ee175625 compile fix 2008-06-10 22:19:09 +00:00
davidhay
2b2f6c9bc5 adds squash (itisa) not working
GAMEs Not Working
-----------------

Squash (Itisa) [f205v]

i'll take a look why it doesn't work if i find time later.. probably a copy protection.
2008-06-10 22:12:02 +00:00
Aaron Giles
e9b6f6be04 Firebeat driver:
* Added VBLANK IRQ clear
 * Added ATAPI IRQ clear
 * Tried to add UART IRQ clear but it doesn't yet work
 * Most of the games start to show something again with these changes
 * Added fast RAM region

PPC DRC:
 * Fixed TLB filling for 4XX protection ranges

PC16552d:
 * Tried to wire up assert/clear signals for this chip based on guesswork
   (anyone want to implement it properly? :)
2008-06-10 21:49:33 +00:00
Aaron Giles
a96458747d PPC common:
* reduced address bus width of 4xx series to 31 bits per the
    documentation

PPC DRC:
 * fixed bug that would jump to incorrect PC after filling the
    TLB during a mismatch event
 * added explicit address truncation to 31 bits for 4xx series
 * added new PPCDRC_ACCURATE_SINGLES option, which removes the
    excessive (and very likely unecessary) extra rounding when
    performing the "fast" single-precision floating point ops

Konami drivers:
 * designated fast RAM accesses for work RAM
 * removed unnecessary mirroring
 
Model 3:
 * identified and fixed VBLANK bit in real3d status which was
    causing the system to hang at startup
 * designated fast RAM accesses for work RAM

53C810:
 * changed read/write handles to proper READ8/WRITE8_HANDLER
    callbacks so they can eventually be used directly
2008-06-10 20:10:57 +00:00
Curt Coder
623b9cd690 Thayer's Quest changes:
- cleaned up driver
- added LED layout from Dragon's Lair
- mapped keyboard and dips correctly
- added laser disc drive selection
2008-06-10 19:56:36 +00:00
Couriersud
4074d8cec7 01827: All sets in galaga.c: DIP switch information is not being readded properly when .CFG is read.
* commit 1728 got lost somehow - reapplied
2008-06-10 19:32:13 +00:00
Curt Coder
fd00d5fb31 Fixed AY-3-8910 output mode in Draco. 2008-06-10 19:29:22 +00:00
Aaron Giles
ec6953c047 PPC DRC:
* Added basic cycle counts for longer instructions
 * Added penalty for polling timebase and decrementer registers
 * Fixed dependencies in cpu.mak
2008-06-10 09:03:45 +00:00
Aaron Giles
156d61c760 DRC frontend:
* changed from tracking "live" registers to tracking "necessary" registers
 * genericized register tracking to be more flexible
 * added previous instruction pointer to opcode descriptions

PowerPC frontend/DRC:
 * cleaned up register tracking implementation
 * fixed numerous errors and shortcomings in the tracking
 * added support for removing unnecessary XER CA and CR0 computations
 * updated UML logging to output new frontend statistics

MIPS3 frontend/DRC:
 * tweaked register tracking to match new DRC frontend system
 * updated UML logging to output new frontend statistics
2008-06-10 07:34:48 +00:00
Roberto Zandona
1092415cb5 fix sprite wrap in bomblord and dynablsb 2008-06-09 18:30:43 +00:00
Roberto Zandona
dfaba61bfc implementation of tile-sprite priorities in bomblord and dynablsb 2008-06-09 18:23:38 +00:00
Aaron Giles
cfab49b884 map command in the debugger now does separate read/write/fetch lookups 2008-06-09 17:30:01 +00:00