Commit Graph

1252 Commits

Author SHA1 Message Date
smf-
4d21cff799 added IR1/IR2/IR3 saturation when calculating ORGB
fixed spelling mistake.
2008-04-06 22:48:25 +00:00
Aaron Giles
436adc3c48 Oops, missed one. 2008-04-06 22:12:06 +00:00
Aaron Giles
99a92aa80a Bulk converted drivers explicitly calling input_port_n_r() with a bogus
offset to calling input_port_read_indexed() instead.
2008-04-06 22:10:54 +00:00
Aaron Giles
8a914b3d22 Renamed input port functions:
readinputport           -> input_port_read_indexed
  readinputportbytag      -> input_port_read
  readinputportbytag_safe -> input_port_read_safe

Added machine parameter to input port functions. Updated
many drivers to accomplish this.
2008-04-06 22:02:39 +00:00
Aaron Giles
edb6e3de5a Fixed unicode crashing bug with input names. 2008-04-06 21:56:20 +00:00
smf-
be21ac9e08 fixed IRGB truncation and conversion to IR1/IR2/IR3 2008-04-06 21:38:25 +00:00
davidhay
ea0fec5bb4 still looking at this.. 2008-04-06 21:14:35 +00:00
smf-
3d05dc8d91 fixed SZ0 truncation. 2008-04-06 21:12:02 +00:00
davidhay
f9e06bbc50 memory map cleanup 2008-04-06 20:07:27 +00:00
davidhay
a04b9e5afc added another Seibu Cup Soccer Selection set, credit Arzeno Fabrice
renamed some sets, as some of the Seibu Cup Soccer sets are actually 'Seibu Cup Soccer Selection'
2008-04-06 17:31:25 +00:00
Brian Troha
d553b0011d adds a tiny bit more info about the Touch Master games 2008-04-06 17:22:22 +00:00
smf-
d485e8ed3c Fixed the SR masks for MTC0.
Added ability to test the instruction/data cache ram. The scratchpad and BIU register are now handled internally to the CPU.

All writes are performed with masks. SWL/SWR used to be implemented with two writes ( one byte and one word ) when writing three bytes, now it only ever performs one. Byte and Word writes use masks as they leave the rest of the register on the bus, which can be picked up by larger registers.

The read/write functions to use are cached when the SR bits are updated, as are the bad address masks.

Added coprocessor 1 & 3 support, though they don't do anything useful.

All loads now go through the delay pipeline, a lwl/lwr will grab the value out of the pipeline if it's updating the same register.

Added undocumented behaviour of BLEZ/BGTZ. The comparison for zero can be changed by specifying an alternate register in the RT field ( the documentation says you should always use register 0 ).

Restricted to 16 COP0 registers & generate an exception if any of the 5 for the MMU are used.

Added BCF/BCT instructions, although I have found no conditions that affect them yet.

Generates an exception if any MMU instructions are executed.

Sets the CE instruction for all exceptions, not just those involving a coprocessor. The bits of the opcode that specify the coprocessor are grabbed no matter what the instruction.

Added TAR register and BT bit in SR. When an exception occurs during a branch, BT determines whether it was taken or not. The TAR register gets set to the destination of the branch.

Fixed the BD bit when you are in a branch delay slot and you didn't take the branch, this shows up in the pipeline as !pc.

Fixed branches within a branch delay slot.

Multiply & divide instructions can be aborted if you write to HI/LO before reading the result.
Added data breakpoints, you don't appear to be able to set breakpoints on any of the addresses internal to the CPU.

Multiply/divide/GTE instructions can execute when an exception is taken, although the EPC indicates that it hasn't. The BIOS avoids rerunning GTE instructions as they are destructive, so you have to make sure they run.

Added bus error handling, PSXCPU is limited to 8mb of ram & any access outside this range will trigger an exception. I believe this is to be an internal limit.

Added CXD8611R as a specific CPU type, System 12 appears to allow more than 8mb of ram & it's possible that this is different.

Mapped out all instructions to either generate an exception or ignore bits.

Updated the disassembler to match the decoding.

Fixed disassembling of branch instructions in a branch delay slot.

Lui checks for a ori/addiu following and will show you the result.

Added step over/out support.

Fixed standalone disassembler.
2008-04-06 16:42:10 +00:00
Nicola Salmoria
d8bbbf35b0 Removed CPS1 tile kludges and replaced with per-game ROM mapping tables. Ideally, the ROM mapping should be derived from mapping of the PALs found on the B board. However, this is unlikely to happen, so we'll have to live with hardcoded tables.
Note that this is a significan change and some new bugs might be caused by it. Unlikely previous bugs, where extra garbage tiles would appear in the games, the new bugs would be tiles or sprites MISSING--so they will be harder to notice. This would happen because in some cases the 16x16 regions of the gfx ROMs can be used by both scroll2 and sprites, while in other cases they must be separated.
2008-04-06 12:17:22 +00:00
davidhay
4f89b193d5 improved graphic decoding for Legionnaire, the BK3 tiles are now correctly extracted from the TXT region, map screen has correct tiles now. no progress with the protection tho. 2008-04-06 12:13:34 +00:00
Aaron Giles
830b8836fc 01609: Various - tested srmp4 (ssv.c), ttmahjng (route16.c), vsmahjng (vsnes,c), tokkae (konamigx.c), sf2 (cps1.c): INP playback loses sync quickly
Rewrote INP recording from scratch, since all old INPs are broken anyways.
Header now includes timestamp, which overrides the default time base for MAME's system time.
Each frame recorded now gets a timestamp.
Analog ports are recorded once per frame and interpolated.
Analog port calculations are all done in fixed point for consistent results.
A bunch of other minor tweaks in the input port code.

There may still be a few changes to the final INP format (considering adding 
NVRAM data directly in the INP file, for example....) but this at least seems
to work for the games I've tried.
2008-04-06 06:03:00 +00:00
Brian Troha
c889f3124f Adds new non-working game: Touch Master 5000
Not working, only goes as far as tm4k.  Initial protection bypassed as per tm4k.

Adds some doc / info as well
2008-04-06 04:58:44 +00:00
Nathan Woods
8fcdf39e8e Added a temporary MESS specific hook 2008-04-06 01:19:15 +00:00
davidhay
09f5e868b0 dox talked with the owner of the PCB for this, apparently swapping these two roms gives correct colours, they were incorrect before. 2008-04-05 21:28:59 +00:00
davidhay
e97cb11af3 couple of minor changes, still no actual improvements. 2008-04-05 21:23:25 +00:00
davidhay
d0a0358317 documentation fix 2008-04-05 14:30:25 +00:00
davidhay
bd7c159b15 Seibu COP stuff - just moving things around renaming them, comparing Legionnaire with Raiden 2 etc. No functional improvements just yet. 2008-04-05 13:08:11 +00:00
Couriersud
0d10d0df2c 00761: finalapr: Heavy performance hit.
Actually remove tilemap invalidating from tilemap_set_palette_offset (tilemap.c)
Following recommendation from Aaron added a comment to tilemap.h
2008-04-04 19:43:20 +00:00
Nicola Salmoria
5c7d45515e 00352: spaceskr: The cabinet DIP setting is inverted, when you set it upright mode, control is separated for P1 and P2, the scre 2008-04-04 17:41:32 +00:00
R. Belmont
0dbbecd2b3 [SCSICD] Reverted previous change. 2008-04-04 17:05:53 +00:00
Pierpaolo Prazzoli
aa098ca047 An erroneous debug-change leaked in the last commit 2008-04-04 14:46:38 +00:00
Aaron Giles
356d5dd812 Fixes 01659: stereo balancing is wrong
Apparently if you cast a negative number to a UINT32 at compile-time,
gcc does the "right thing" and saturates it to 0.
2008-04-04 14:17:56 +00:00
Aaron Giles
2c63abdad0 Actually fixed -refreshspeed. 2008-04-04 13:31:25 +00:00
Couriersud
ceab42a52b 01081 (partial): megaplay.c (all games): 1 Player Start and 2 Players Start are duplicated.
There is more to do to in the bug report.
2008-04-04 08:14:05 +00:00
Couriersud
0c79f46193 01663: Hat switches not working
All custom itemids were mapped to class SWITCH. With the recent modification, this implicitly changed to ABSOLUTE.
This fix will use the passed itemid to determine the class.
2008-04-04 07:38:35 +00:00
Nathan Woods
6498f1b8f2 Updated devconv.h to work with 0.124u1 2008-04-04 01:51:39 +00:00
Nicola Salmoria
f023814464 00405: cawing: Text in the attract mode is garbled. 2008-04-03 17:32:29 +00:00
Nicola Salmoria
a69f4fd45c 00250: 3wonders: Various graphic glitches. 2008-04-03 16:32:56 +00:00
Nicola Salmoria
959e66e484 Tweak Do Run Run CPU clock to match the behaviour observed on the real board.
01021: dorunru2: Side-by-side test.
2008-04-03 15:52:37 +00:00
Couriersud
2cfb327cbe Show a message if coin-lockout is active and coin x is pressed. 2008-04-03 15:37:45 +00:00
Nicola Salmoria
bb9c7b593d 00404: 3wonders: a glitch when u insert your record name when game is over. 2008-04-03 14:28:26 +00:00
Nicola Salmoria
26f1537f66 01552: 3wonders, 3wonderu: Another little graphic glitch on attract mode 2008-04-03 13:25:05 +00:00
Aaron Giles
31336e491e Cleanups and version bump to 0.124u1. 2008-04-03 07:57:25 +00:00
Aaron Giles
efbe64428a Switched from ACCESSING_BYTE_*, ACCESSING_WORD_*, ACCESSING_DWORD_*
macros to ACCESSING_BITS_*_* macros.
2008-04-03 07:36:23 +00:00
Aaron Giles
0d89ceb44b From: Hugh Allen [mailto:hugh2@bigpond.net.au]
Subject: patch for state save in buggybjr

Here's a little patch for initial support of state saving in buggybjr. 
(It'll help with tx1 and buggyboy too, but they are non-working)

All I did was get rid of the "anonymous" (temporary) timer that was 
preventing saving, and replace it with a "permanent" timer. I didn't go 
looking for data which might need to be saved.
2008-04-03 05:30:15 +00:00
Aaron Giles
ca3d7d01e6 From: Wilbert Pol
Subject: pit8253 device

I have converted the pit8253 implementation into a device. To make it  
easier to use I've also created a src/emu/devconv.h in the same style  
as src/emu/memconv.h.

I do not have all roms/disk images to test all drivers.  I have only  
been able to test pf2012, filetto, and topgunnr.
2008-04-03 05:26:47 +00:00
Aaron Giles
39d36956d2 From: roberto zandona
Subject: some fix for aerfboot (bootleg of aerofgt)

this fix:
1) spriteram3 (previous value was too high and in the "city" level some build disappear
2) sprite gfx bank (previously some sprite appear right and some sprite was wrong)
3) the zoom is a litlle bit better
4) i have removed multisprite support; in the bootleg aren't present
 
the remaining problem is "not draw some sprite"; maybe there's a mark in some place
 
in the code i add, in a comment //, a way to avoid the draw of the sprite (searching a 0000 0000 0000 0000 sprite); this way works quite good but not perfectly (some time too many sprite are in the screen); maybe there's a value indicating the #number of sprite to draw (from the end to spriteram3 to start)
 
--

From: roberto zandona
Subject: addendum (aerfboot)

this fix perfectly the sprite zoom
2008-04-03 05:23:11 +00:00
Aaron Giles
e621d87cfe From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: MESS machine stuff

Another machine parameter added to a MESS function call.
2008-04-03 05:21:51 +00:00
Aaron Giles
aea595a54a From: neoforma
Subject: TinyMAME fix

Nothing to talk about. Just a fix to make it again possible to compile 
out-of-the-box.
2008-04-03 05:20:29 +00:00
Aaron Giles
92cc517479 From: roberto zandona
Subject: a little fix

a little update: this fix priorities in mermaid and rougien and a sprite bug:
 
when a sprite have x coordinate >= 0xf0 the value is negative
this fix the sprite bug
 
+  if (sx >= 0xf0) sx -= 256;
2008-04-03 05:19:34 +00:00
Couriersud
622bbf8e6a ironhors: add discrete filtering and mixing
* one driver less using FILTER_RC
2008-04-02 22:00:10 +00:00
Brian Troha
5bc94c30dd Documentation (rom name) correction. 2008-04-02 20:52:12 +00:00
Nicola Salmoria
944070ee86 00403: 3wonders: Points are displayed between lives of first player and the word INSERT COIN 2008-04-02 16:22:33 +00:00
Curt Coder
1859e012d2 - converted CDP1869 to the new device system
- refactored to represent how the hardware actually works
- added PMA latching on OUT5
- separated Cidelsa video to its own file
2008-04-02 14:43:06 +00:00
Curt Coder
12589d9abd More COP400 fixes:
- fixed serial timer
- fixed clocks
- fixed COP410 RMB3, XAD instructions
- general cleanup
2008-04-02 14:36:50 +00:00
Nicola Salmoria
9c0447a597 Fix CPS1 background color. This fixes 3 wonder (game start) and mtwins (explosion during attract).
If seems to break Varth, hower, and has dubious effects on the boot sscreens of avsp, sfa3 and possibly other CPS2 games.

01542: 3wonders, 3wonderu, wonder3: Wrong colour of background in game selection and start screens
00410: xmcota: After a couple passes through the demo mode, the background on the qsound screen will go to a shade of green.
2008-04-02 13:31:03 +00:00