Commit Graph

1475 Commits

Author SHA1 Message Date
Aaron Giles
66c48036a3 From: Fabio Priuli [mailto:priuli@math.ntnu.no]
Subject: some dips

dips.diff adds tags and locations to dips for marvins.c and matmania.c 
(also adding a couple of corrections in names and default settings, 
explained in short notes added to the drivers)
2008-04-10 13:50:47 +00:00
Roberto Zandona
b389e946d6 fix for another opcode
now all the opcodes are decrypted
2008-04-10 05:29:16 +00:00
Roberto Zandona
75053e1d2b confirmed two more opcodes 2008-04-09 22:39:17 +00:00
Roberto Zandona
04ef716385 gussun oyoyo and risky challenge:
another opcode to fix explanations in the practice level
2008-04-09 20:29:46 +00:00
Aaron Giles
4867aa38b9 Take two of the previous changes. I think this is a little simpler,
using masks instead of the generic byte/word/dword read functions.
2008-04-09 14:48:22 +00:00
Aaron Giles
b4e4b1d3f0 Oops, remove accidentally checked-in makefile changes. 2008-04-09 13:23:25 +00:00
Aaron Giles
eeee1cb437 Rewrote core memory handlers as inline functions. These should be easier to
trace through in a debug build, yet should operate the same as before.

Created a complete set of functions for all databus sizes (8,16,32,64) and
all endiannesses. A few functions are redundant, but it is now very clear
which functions to use in which scenarios. It is also now possible to rely
on being able to access values of 8, 16, 32 or 64 bits via the built-in
accessors without fear of crashing.

Updated all cores using 8-bit handlers to explicitly call the 8-bit handlers
with the appropriate endianness.

Fixed a few games which were calling n-bit handlers directly to use the
generic forms. In the future, this is all the access drivers will have.
2008-04-09 07:31:47 +00:00
stephh
0a3bdaa3ef Fixed bug ID 01668 based on etabeta submission.
Checked inputs for all games but 'survival' (Dip Switches still need to be done), so now cocktail mode is correctly supported by 'pleiads' and its clones.

Renamed sets :
  - falcona  -> falconz
  - vautour2 -> vautourz
2008-04-09 05:47:48 +00:00
Roberto Zandona
7800d2bb70 fix dasm for two code and prefix opcode in real time encryption 2008-04-08 22:39:28 +00:00
Wilbert Pol
8dcedabb57 Removed the hardcoded dependency on a 8254 device from the 8042kbdc code. Changed the drivers using the 8042kdbc to define their own 8042kdbc - 8254 dependency. 2008-04-08 18:35:48 +00:00
Nicola Salmoria
ea8471679b New clones added
----------------
Super Monaco GP (set 1, Japan, Rev A, FD1094 317-0124a) [Corrado Tomaselli]
2008-04-08 17:13:58 +00:00
Nathan Woods
3364fdb2d8 Initializing device_config.machine to NULL 2008-04-08 00:30:56 +00:00
smf-
ee9ce122a9 removed useless casts in BLEZ/BGTZ 2008-04-07 23:49:48 +00:00
smf-
af97c741b3 fixed OTZ sign extension
fixed reading from SXYP
fixed reading from IRGB
fixed writing to LZCR
fixed sign extension of GTE control registers
fixed writing to FLAG

New games added or promoted from NOT_WORKING status
---------------------------------------------------
1 on 1 Government (JAPAN)
2008-04-07 23:20:31 +00:00
Roberto Zandona
486cdcb6b5 1) fix nec v30 dasm when a "real-time encrypted cpu" is used
2) fix Execution Clocks for add,addc,and,or,xor,cmp,sub,subc instruction
2008-04-07 22:30:52 +00:00
Roberto Zandona
634b30cbb3 fix for wrong tile-sprite priority 2008-04-07 19:31:20 +00:00
Wilbert Pol
35462b15c5 Changed the 8237dma implementation into a device. 2008-04-07 17:53:56 +00:00
Nicola Salmoria
9940fd24a7 Added mising TC0060DCA sound mixer to the Taito Z driver
marked one dblaxle ROM as BAD_DUMP
00029: contcirc: Audio emits from one speaker on start up.
2008-04-07 11:52:29 +00:00
Nicola Salmoria
3e3c448017 merged memory maps 2008-04-07 09:23:49 +00:00
Nicola Salmoria
af9f5d75c1 01253: topsecrt: There are gray tiles around the title in the original pcb and the bootleg too. 2008-04-07 08:51:40 +00:00
Nicola Salmoria
e0c1c7a07e fixed 3wonders missing sprites in last update 2008-04-07 07:35:56 +00:00
Roberto Zandona
99103d0736 for aerfboot:
1) sprite offset are now correct
2) split spriteram in two parts
3) identified last sprite for the two parts
4) promoted to "working" (no sound)
 
for pallavol:
1) fix for sprite's y-coordinate
2) implement lookup table for convert sprite code in the real code
3) change the name to "1991 Spikes (Italian bootleg) (see the snapshot)
4) fix scroll
5) fix offset
2008-04-07 07:02:23 +00:00
Nicola Salmoria
5b36289ee7 updated comments to match comments from Charles, and fix error in 3wonders mapper table. 2008-04-07 06:50:10 +00:00
Ryan Holtz
947697a18d Whoops. Left some debugging code in there. 2008-04-07 01:51:35 +00:00
Ryan Holtz
4254afc8b5 Mostly fixes sound in N64-based games (Adam Gashlin)
Correct DMA functionality in N64-based games (Ville Linde)
2008-04-07 01:34:15 +00:00
Andrew Gardner
0cb1234dd4 Memory map merges for drivers starting with U, V, W, and Z. 2008-04-07 00:26:08 +00:00
Aaron Giles
bcb340612b Fixed bug that prevented the initial input port update from working properly. 2008-04-07 00:21:00 +00:00
davidhay
bb3ddbf98e added back some logging 2008-04-06 23:16:39 +00:00
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
Nathan Woods
36af5b18bc Tweaked the hooks that MESS has in the MAME initialization process 2008-04-02 10:59:32 +00:00
Aaron Giles
dc5af38f5b From: roberto zandona [mailto:robiza71@tin.it]
Subject: patch for mermaid

proper implentation of hardware collision (first implentation was incomplete)
this fix mermaid (when the player is in the water with the sharks) and rougien (Mantis 01652)
2008-04-02 08:40:34 +00:00
Aaron Giles
cce0f9f8e7 From: Wilbert Pol [mailto:wilbert@jdg.info]
Subject: pcshare patch for mess

Another patch to machine/pcshare; this patch allows the MESS machines  
to choose whether the RDY pin of the nec765 floppy controller is  
connected or not.

Last weekend's pcshare keyboard was almost correct, it caused some  
stuck shift key situations in MESS. This patch fixes that.

Removed a lot of MESS specific code from the machine/pcshare code.
2008-04-02 08:39:44 +00:00
Aaron Giles
fa67773ba7 From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: Further ACIA changes

Added dynamic control of RX and TX pins to 6850 ACIA emulation - this is
needed for correct operation of the MPU4 Video communications system, 
and may be handy for some MESS systems. To use, set the rx and tx clocks
to 0 in the acia interface, then use acia_tx_clock_in() and 
acia_rx_clock_in() respectively.
2008-04-02 08:37:28 +00:00
Aaron Giles
d26f7f12da From: Mr. Do [mailto:mrdo_emu@hotmail.com]
Subject: Internal LAY File - Armor Attack

This is becoming kind of fun.  Here's an internal LAY file for Armor Attack.
 
Re-created the overlay using just rectangles.
 
And finally got to use flipx and flipy for the first time (main reason I did it).
2008-04-02 08:36:30 +00:00
Aaron Giles
35b88f45fe From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: small change for MESS cleanup

This adds the "Machine" parameter to a MESS function call in MAME 
code to go along with Machine -> machine ckeanups in MESS
2008-04-02 08:34:24 +00:00
Aaron Giles
f8c51f9a23 From: Wilbert Pol [mailto:wilbert@jdg.info]
Subject: pcshare.c


The attached patch fixes the self-test responses generated by IBM 5150  
and XT keyboards for MESS.
2008-04-02 08:33:39 +00:00
Aaron Giles
bddaca5de2 From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: Machine -> machine cleanups

This patch changes "Machine" to "machine", when the runnin-machine 
parameter is already available. In some cases I could even remove the 
dprecat.h.

I will look for some occurances where it can be easily changed and 
afterward take a step at adding the running_machine parameter in a 
few places.
2008-04-02 08:33:06 +00:00
Aaron Giles
86e9f195a9 From: Mariusz Wojcieszek
Attached diff adds Multi Game III (yet another NES-based hack) to multigam.c. Game is playable.
Multi Game III
2008-04-02 08:31:21 +00:00
Aaron Giles
9518901281 From: Corrado Tomaselli
Subject: rygar clocks

Corrected clocks on Rygar.
Concerning the 400khz resonator, it's genuine, not resoldered even if 
schematics shows a 384khz resonator.
Another Rygar from a friend of mine has a 400khz resonator so it's 
possible Tecmo had a stock of those resonators to use in change of the 
384khz ones.
2008-04-02 08:30:14 +00:00
Aaron Giles
125e286bda From Dirk Best:
Astrocade update:
 - Update src/mame/includes/astrocde.h to use an XTAL value
 - Clear interrupts if they are no longer valid
 - Add the knob inputs
2008-04-02 08:27:45 +00:00
Aaron Giles
a4a7ea967c From: Mike Haaland
src/osd/windows/ledutil.c

 Include osdcomm.h so INT32 is defined under VC.
2008-04-02 08:25:25 +00:00
Aaron Giles
3fd1755ae2 From: RansAckeR
Subject: fix for 01623

Also changed apb COIN3 to SERVICE1.

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: blueprnt.c dips

Added dip locations

--

Also fixed compile error in namcona1.c.
2008-04-02 08:24:20 +00:00
Aaron Giles
2a9d6c09bf Added missing #include. 2008-04-02 08:17:56 +00:00
Nicola Salmoria
72b84c545f Use new TILEMAP_DRAW_ALL_CATEGORIES flag where applicable 2008-04-02 04:54:02 +00:00
Nathan Woods
ff3b615c69 Removing false assertion; NULL is also DEVICE_TYPE_WILDCARD 2008-04-02 01:39:31 +00:00
Pierpaolo Prazzoli
704514c351 Forgot to decomment a check 2008-04-01 21:31:54 +00:00
Pierpaolo Prazzoli
f95ec93c7c - Added tilemaps and sprites 4bpp mode
- Added preliminary ROZ implementation (disabled until the enable / disable register is found)
- Changed background pen to fix emeralda demo
2008-04-01 21:29:29 +00:00
Couriersud
f4b7ad20e2 discrete sound system:
* Fix timing of stream_update in discrete_sound_w
  All sound cores update before processing changed data
* Add streeam_update to discrete_sound_r
* Now supports multiple output nodes per module. 
  There is the possibility to support multiple outputs per module.
  In this case, NODE_XXX is the default output. Alternative outputs may
  be accessed by using NODE_XXX_YY where 00<Y<08.
  
  You may also access nodes with macros:
  
      NODE_XXX = NODE_SUB(XXX, 0)
      NODE_XXX = NODE(XXX)
      NODE_XXX_YY = NODE_SUB(XXX, YY) with YY != 00 
      
  This should e.g. make discrete sound emulation easier
  when dealing with e.g. flip flops (Q & QQ) and binary counters

* added sanity checks to check consistency issues introduced by this change
* modules specify number of outputs ==> Certain special modules (WAVELOG) 
  may no longer be used as input nodes
* removed explicit (NODE_XX + expr) from a couple of drivers
2008-04-01 21:17:17 +00:00
Brian Troha
4a83ea709f Credit: The Guru
Adds Super Bishi Bashi Champ (Korea) to bishi.c

CPU speed correct & readme text added.
2008-04-01 20:43:58 +00:00
Nicola Salmoria
a284b2fd9e fix tilemap viewer to draw the whole tilemap when categories are used 2008-04-01 16:01:34 +00:00
Nicola Salmoria
d91c34cf31 01468: ldrun2: Priority problem at titlescreen 2008-04-01 13:30:49 +00:00
Nicola Salmoria
e81294dfa0 Fix 01469: ldrun2: Compared to the PCB does MAME show less graphic at the bottom of the screen. 2008-04-01 12:52:04 +00:00
Nathan Woods
68db1ed583 Typo fix 2008-04-01 01:24:10 +00:00
Andrew Gardner
859f894aa2 A few more memory map merges. 2008-03-31 04:52:41 +00:00
R. Belmont
2a869f8673 Various SCSI devices register state items by their disk ID, which are not unique across device types. This introduces a device-type offset for CD-ROMs so their registrations don't clash with harddisks. 2008-03-31 03:04:34 +00:00
Phil Bennett
cb87356d5c Courtesy of Anonymous:
* Added plane priority to blitter - if anyone knows how this really works let us know!
 - Fixes Treble Top signature writing
* Video output now supports all modes - lores, hires, mixedres, 8/7/4/3 bits/pixel
  - Fixes Every Second Counts colour problems
* Added line draw
  - Fixes missing stuff from Question Of Sport
* Change blitter loop type control - there are 4 types of loop.
* Corrected video frame rate to 50Hz.
* Corrected Z80 speed - 5.91mhz, this still might be wrong but I don't have a board to check.
* Accounted for Z80 cycles stolen during a blit operation. Improves gfx/sound sync and seems to fix the final round lockup in Every Second Counts.
2008-03-30 23:59:31 +00:00
Nathan Woods
6bc1249cb8 More MESS-specific changes (this code should be factored out of MAME) 2008-03-30 23:30:43 +00:00
smf-
6c238b4395 Fixed state loading now that the digital i/o board's serial number has been changed to a const by not saving it. As the serial number cannot be changed at run time it was rather pointless. I can only imagine I did it so you could hack the state file instead of having to recompile, though it should probably load it from an external file so you can supply your own. 2008-03-30 22:37:06 +00:00
davidhay
988ab9a7b0 a bootleg of badlands - heavily modified, not working. 2008-03-30 19:54:22 +00:00
Brian Troha
83ecc9bd8f changes Deer Hunting USA v2.0 to "v2" as the actual subversion is unknown. 2008-03-30 19:37:49 +00:00
R. Belmont
778117985e [AW] A little magic from ElSemi to make the Atomiswave BIOS try to be more verbose, but our video emulation isn't good enough to cooperate. 2008-03-30 19:03:22 +00:00
R. Belmont
e05a67c0f2 [MEGADRIVE] Turned off default SRAM handling for #ifdef MESS. 2008-03-30 18:49:19 +00:00
Andrew Gardner
4f6044c309 Memory map merges for half of the W drivers.
A couple of random touchups for X, Y, and Z drivers as well.
Each driver is tested by watching the attract mode through and diff'ing logs.

My ISP was blocking mamedev e-mails for a couple of weeks, so I apologize if I did anything odd because of a discussion that I missed.
2008-03-30 18:26:42 +00:00
davidhay
d332b5c542 (from Bryan McPhail) adds Chase Bombers to undrfire.c, not working properly. 2008-03-30 17:57:17 +00:00
Nathan Woods
52f6db9e2b MESS specific change; part of MESS' device changeover 2008-03-30 17:14:03 +00:00
Couriersud
cac4d00e7d Add ITEM_IDs for additional axes and switches
Add ITEM_IDs for up to 4 hats/POVs
2008-03-30 14:28:08 +00:00
stephh
652ffd72f9 Changed Seibu sound CPU to use AM_READ_PORT("COIN") instead of input_port_0_r.
Added in bloodbro.c driver partial work from RansAckeR :
  - dips locations
  - coin modes

Added notes for 'bloodbra'.
2008-03-30 10:19:43 +00:00
smf-
ad4ef5d256 New macros added for checking mem_mask. ACCESSING_BYTE_n, ACCESSING_WORD_n & ACCESSING_DWORD_n. These check for any access within the bounds, currently the pattern for checking whether both bytes of a word is written is to make two byte checks ( this pattern existed before because there was no macro for testing a 16 bit word, though you could have used ACCESSING_LSW32 ).
All occurrences of ACCESSING_LSB, ACCESSING_MSB, ACCESSING_LSB16, ACCESSING_MSB16, ACCESSING_LSB32, ACCESSING_MSB32, ACCESSING_LSW32, ACCESSING_MSW32 & simple mem_mask checks have been replace with the new macros.
The old macros are gone.
2008-03-30 09:19:23 +00:00
stephh
c646da31ad Fixed clones relationship. 2008-03-30 06:51:25 +00:00
R. Belmont
40f3c081f4 [AICA, SCSP] Fixed encoding/decoding of negative denormal floats in the DSP. Shouldn't actually affect any games. (kingshriek, Deunan Knute) 2008-03-30 00:12:07 +00:00
Couriersud
ad1d29db6e Removed unnecessary #include 2008-03-29 23:14:54 +00:00
Couriersud
91d938313b Added discrete filtering and mixing games using konami_sound. 2008-03-29 23:14:08 +00:00
Couriersud
4e4c63ba21 Added NODE(x) macro to avoid avoid (NODE_00 + 3) in code. 2008-03-29 23:06:29 +00:00
Couriersud
edf72c9bf9 implements discrete mixing
* uses DISCRETE_RCFILTER_SW
* uses sound routing to route 76416 output to discrete logic
2008-03-29 21:12:54 +00:00
Couriersud
6a8fa36bcc adds DISCRETE_RCFILTER_SW to discrete sound
* this implements multiple RC networks with CD4066 switches to connect/disconnect capacitor
2008-03-29 21:10:06 +00:00
Pierpaolo Prazzoli
a934d5cf95 Fixed sprites shadow in namcona1 driver and removed Emeraldia hack 2008-03-29 15:20:33 +00:00
Nathan Woods
1e57031838 MESS-specific changes; mame.h no longer include's MESS's device.h 2008-03-29 14:46:37 +00:00
Curt Coder
e241656170 Reverted to old execute, new broke more than it fixed. 2008-03-29 14:13:09 +00:00
Yasuhiro Ogawa
b4dc7567b4 added multiplier (same as wecleman) to Flak Attack
Info provided by VU801qCf
2008-03-29 13:32:28 +00:00
Curt Coder
6bdcdb0769 Removed debugging code. 2008-03-29 12:18:41 +00:00
Curt Coder
d23a72d1cd Rewrote the COP400 execute function. 2008-03-29 12:17:59 +00:00
Phil Bennett
1a931524f6 Added 'Beeline' by BFM. Non-working as we're missing the 3.5" floppy image... 2008-03-29 02:32:55 +00:00
Phil Bennett
ed397c466a 1. Added driver for JPM 'Give us a Break' hardware, supporting:
* Give us a Break [2 sets]
* Ten Up [2 sets]
Neither are playable; they don't register coins for some reason.

2. Fixed interrupt handling and 16-bit memory accessors in 6840ptm.c
Also cleaned up code for the sake of readability.

3. JPM games now have their own object archive file.
2008-03-29 01:35:02 +00:00
Couriersud
d71dc84ed6 Fix compile on 64bit environments 2008-03-28 22:58:17 +00:00
Aaron Giles
6350ab3302 Minor cleanup and simplification. Removed palette_config(). 2008-03-28 18:59:31 +00:00
Aaron Giles
c5335ee5d4 Fixed compile error in MSVC. 2008-03-28 18:32:09 +00:00
Curt Coder
cb38b8b0d5 - implemented interrupt
- implemented serial input/output
- fixed XAD/LDD, XIS1, RMB3 opcodes
- fixed clock divider
- fixed internal memory map size
- added some cpu variants

As a result, Draco at least initializes the AY-8910 now.
2008-03-28 16:10:23 +00:00
Aaron Giles
4821d456dd Fixed:
- 01622: [Core] -refreshspeed has no effect (aaron) - Resolved.
2008-03-28 10:10:21 +00:00
Aaron Giles
ce1da5c445 Fixed:
- 01629: [Graphics] raiga, stratof: broken colors on sprites (aaron) - Resolved.
- 01630: [Graphics] fstarfrc, ginkun, riot: broken colors on sprites (aaron) - Resolved.
- 01627: [Misc.] spbactn, spbactnj: Crashes with Access Violation (aaron) - Resolved.
2008-03-28 09:57:56 +00:00
Aaron Giles
ed961330b6 Added override to allow individual games to change sprite clipping behavior.
Fixed sprite clipping offset to be 0-15 as I originally derived....
2008-03-28 09:28:36 +00:00
Aaron Giles
6979179c11 Galaxian rewrite. Ultimately will combine the existing drivers
for galaxian, scramble, frogger, scobra, amidar, and dambustr.
For the moment, only a subset of games are implemented in the
new system; the remainder are running on the old code.

Main features are accurate video timing, correct stars 
implementation, better organization, simplified input ports,
and many other smaller fixes. In addition, the following
MAMETesters bugs are addressed:

- 01598: [Graphics] 4in1, gmgalax, pacmanbl: Sprites are cut off on the top row
- 01563: [DIP/Input] gmgalax: Duplicated Inputs
- 00300: [Graphics] zigzag: in cocktail mode player 2 screen is shift over to the right
- 01454: [Graphics] mshuttle, mshuttlj, mshutlj2: The display of the screen is shifted
- 01473: [Graphics] orbitron: Orbitron graphics not correctly displayed
- 01600: [Graphics] pacmanbl, batman2: The background is shifted to the right and cut off on the right side
- 01602: [Misc.] luctoday: Messed up graphics. (Screen Offset)
- 01599: [Graphics] omega: Screen is vertically offset
- 01605: [Graphics] gteikokb, gteikob2: Wrong screen offset (aaron)
2008-03-28 08:34:31 +00:00
Aaron Giles
ec36f9c06f Converted special-case DIP switches (service, unknown, unused) into their
own token type rather than expanding into other tokens. The reduces the
number of redundant strings and data.
2008-03-28 00:04:22 +00:00
Aaron Giles
984380354e Added fatal error if AM_READ_PORT() references a non-existent port. 2008-03-28 00:03:25 +00:00
Brian Troha
8f9a52fa11 Deer Hunting USA V2 added to seta2.c 2008-03-27 22:22:56 +00:00
Brian Troha
ebe96672ce Adds redumped U13 eprom to Off Road Challenge v1.40. All roms self test green :-) 2008-03-27 22:00:04 +00:00
smf-
5ed703d6d5 fixed another bug in new debug hook code, data wasn't shifted properly in all cases. 2008-03-27 21:04:02 +00:00
smf-
07459e6491 Passes mem_mask to the read and write debug hooks. This allows the address & size of the memory access to be correctly calculated when using a memory call that takes a mem_mask. Unexpected results will occur if you pass in a mem_mask that has a gap in. For example 0x00ff00ff is treated as a 3 byte operation, a watchpoint for the gap will still trigger. To simplify the mem_mask decoding it is inverted before passing to the debugger. 2008-03-27 20:23:36 +00:00
smf-
7d38bf085f reverted, I misunderstood something and it's broken. I'm on it. 2008-03-27 19:56:24 +00:00
smf-
8b7582a477 Passes mem_mask to the read and write debug hooks. This allows the address & size of the memory access to be correctly calculated when using a memory call that takes a mem_mask. While testing I found that the address had already had it's lower bits masked out, so watch points were broken already. Unexpected results will occur if you pass in a mem_mask that has a gap in. For example 0x00ff00ff is treated as a 3 byte operation, a watchpoint for the gap will still trigger. To simplify the mem_mask decoding it is inverted before passing to the debugger. 2008-03-27 19:22:20 +00:00
Couriersud
1355872b9a Fix cfg file corruption if joystick is not connected
* itemclass now part of token if item is not found

Settings for joysticks which use a custom item id will still be lost. A fallback has to be provided here since those will use a token generated from the input item name.
2008-03-26 19:06:24 +00:00
Nathan Woods
ec82be4ab3 Removed a MESS-ism 2008-03-26 02:57:08 +00:00
Curt Coder
a72d813bb3 - de-deprecated the timer callbacks
- moved PCB RAM to the heap and fixed index overflow
2008-03-25 19:49:57 +00:00
Pierpaolo Prazzoli
aba3623620 Fixed 01613: swcourt, swcourtj: Strange sprites cutting on the edge of screen 2008-03-25 18:22:53 +00:00
Aaron Giles
e670f5c51a Renamed galaxian.c -> galaxold.c. Updated all drivers accordingly. 2008-03-25 12:20:09 +00:00
Aaron Giles
a070ad63d8 Fix for incorrect sound bug in 0.124. 2008-03-25 03:24:21 +00:00
Brian Troha
911beb11af Credit: The Guru
adds clones (and new parent with bad program rom) of Offroad Challenge
Adds version and build info to rom sets
2008-03-24 23:14:48 +00:00
davidhay
b70b27a86f adds jrking, it's a common graphic hack bootleg of dkongjr so it's worth supporting. 2008-03-24 19:56:22 +00:00
davidhay
b7c4b2cb58 added bjtwina clone of bjtwin 2008-03-24 18:59:52 +00:00
davidhay
22664bb7b5 reverted previous gnga graphics change, added the bootleg set which exhibits this behaviour instead. 2008-03-24 18:41:43 +00:00
Luca Elia
757d289163 Driver for Astro Corp. hardware.
New game:

- Show Hand (roms/current/s/showhand.zip)
2008-03-24 18:29:07 +00:00
davidhay
ed76ab8ab4 (from JohnBoy)
Changes:

- Updated HW.c

- Tagged kotmh AES VERSION
- Tagged alpham2 MVS AND AES VERSION
- Tagged bjourney MVS AND AES VERSION
- Tagged nam1975 MVS AND AES VERSION
- Tagged tpgolf MVS AND AES VERSION
- Tagged fatfury2 MVS AND AES VERSION
- Tagged samsho2 MVS AND AES VERSION
- Tagged 3countb MVS AND AES VERSION
- Tagged tophuntr MVS VERSION
- Tagged kof96 MVS VERSION
- Tagged fatfury3 MVS AND AES VERSION
- Tagged sengokh AES VERSION
- Tagged burningf MVS VERSION
- Tagged aof MVS AND AES VERSION
- Tagged kof2003 MVS VERSION

- tophuntr/tophunta: Renamed p2
- 3countb: Changed p1, added correct m1
- fightfva: Added correct v2
- quizkof: Added correct c2
- rbff2/rbff2h/rbff2k: V4 is 16mbit only
- fatfury1: Added correct m1
- spinmast: Added correct p2
- sengokh: Renamed p1 to correct chip label
- svcpcb/svcpcba: Renamed bios to correct chip label
- ms5plus: Synced m1 with parent set
- tpgolf: Added correct m1, c3, c4; renamed v11 and v22 to correct chip label
- aof: Added correct m1
- roboarmy: Added correct m1
- roboarma: Disabled for now, this looks like an emulation hack. Can someone confirm this set is real?
- gpilotsh: Added new set
- samsho: Changed set to MVS version, removed old version, left some notes
- samshoh: Added AES version
- kof2003: Removed MVS / World /US from description

Again some m1 changes, going STRICTLY by the book now:
- nam1975: Added correct m1
- bstars2: Added correct m1
- maglord/maglordh: Added correct m1
- ridhero/ridheroh: Added correct m1
- gpilots: Removed BAD_DUMP from m1, is correct

- Some cleanups
2008-03-24 14:30:16 +00:00
davidhay
503df78746 this is an italian bootleg of double dragon. not currently working.
the graphic roms are scrambled, the banking code has been patched out (and the program roms might have some protection on them too, there is a weird jump to the 0x2000 range)

also it runs on 3x M6809s instead of the usual CPUs.

Not convinced the sound roms are good dumps, they seem to small.

This bootleg needs a fairly significant chunk of time put into getting it working due to the heavy modifications.  I've had several people asking me to add it, but I simply don't have time.
2008-03-24 14:06:31 +00:00
smf-
fecf13b28d added drum mania 2nd mix power up kit & fixed drum mania 2nd mix description. the selection of security carts and cd's has been split as the installation of the power up kit requires it. 2008-03-24 12:36:44 +00:00
Aaron Giles
0b4cf08add Removed most uses of BITMAP_FORMAT_RGB15. Just a few sega systems
remaining. My eyes bleed from looking at the wecleman driver.
There is no way on earth the hardware works anything like that.
2008-03-24 07:32:55 +00:00
Aaron Giles
147707bbe0 Bumped version to 0.124. 2008-03-24 04:08:41 +00:00
Aaron Giles
9476c50ee6 Cleanups for 0.124. Marked Mermaid as working per checkin comment. 2008-03-24 04:07:46 +00:00
Aaron Giles
4442fccc23 Fix 01601: orbit: Game doesn't start. Watchdog/reset problem?
Fragile timing broke with new video timing. Redid video timing with
raw parameters and added full memory map and a few other cleanups.
2008-03-24 03:33:25 +00:00
Aaron Giles
126d821654 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Minor static/const/include fixups

Hi mamedev,

Another batch of minor static/const/include fixes.  Very boring, very
pedantic.  ;)

~aa
2008-03-24 01:51:12 +00:00
Aaron Giles
4e689364f7 From: Luigi30 [mailto:luigi30@gmail.com]
Subject: lghost fix

This fixes bug 1570.
2008-03-24 01:49:55 +00:00
Aaron Giles
b16332a024 From: Luigi30 [mailto:luigi30@gmail.com]
Subject: 1564 fix

I changed Service 3 to Service 2. The only other button that could be Service 2 (labeled unused) gives a NOT USED in service mode.
2008-03-24 01:49:05 +00:00
Aaron Giles
07ed6b77b8 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] gcc 4.3.0 fixes

Hi mamedev,

GCC 4.3.0 was recently released, and some adjustments need to be made
to MAME to compile successfully with it.  The idectrl.c change is only
needed to silence gcc's overwrite warnings, the code is correct as
written.  The tx1.c change on the other hand is a bug spotted by the
stricter checks in the new compiler.

[Note only the tx1 changes were accepted]
2008-03-24 01:48:21 +00:00
Aaron Giles
3a79e95d54 From: JEA Wallace
Subject: Removal of Periodic int hack

Removed improper use of PERIODIC_INT in mpu4, to use new timer devices. 
Also corrected 50Hz timer in MPU4 Video games.
2008-03-24 01:45:21 +00:00
Aaron Giles
e9e9a1c023 From: roberto zandona
Subject: mermaid
an implementation of "hardware sprite collision"
 
with collision the game works
2008-03-24 01:44:18 +00:00
Aaron Giles
1840d25ee7 From: RansAckeR
Subject: fix for 01560

--

From: RansAckeR
Subject: fix for 01525
As is noted in the source: "The NMI handler just handles the "Stop Mode" dip
switch."

0xf801 is written to when the game is continued in stop mode, this should
not have been changed to watchdog_reset_w in 0.73

Off course this is all just a guess.
2008-03-24 01:42:53 +00:00
Aaron Giles
e26af0c0b2 From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: blockhl.c & blockout.c inputs/dips

blockhl.c, blockout.c:
-Added dip locations
-fixed unknown dip switches
2008-03-24 01:38:01 +00:00
Aaron Giles
e04bb4f699 From: Lei Wu [mailto:lanewu@hotmail.com]
Subject: MSVC9 fix [Emuman]

the original macro is too long, which caused a MSVC9 internal compiler error
2008-03-24 01:36:47 +00:00
Aaron Giles
e22e29dc9b From: Andrea Turci [mailto:any@hippy.it]
Subject: Ridge Racer RR3 revision

Hello,
    Diff (aganist 123U6) and rom for the newer revision of Ridge Racer

Ridge Racer (Rev. RR3, World)
2008-03-24 01:35:51 +00:00
Aaron Giles
5d52880b7b From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: cabal bootleg fixed clocks

Corrected clocks on Cabal bootleg
2008-03-24 01:34:19 +00:00
Aaron Giles
d77d9fdb64 Added validity check to ensure input port tags don't have duplicates.
Fixed several drivers where there were duplicates.
2008-03-24 01:33:12 +00:00
Aaron Giles
873daa0090 From: Cesare Falco [mailto:cesare.falco@gmail.com]
Subject: [bugfix] gnga: load correct graphics roms

I used to play the alternate version of Ghost'n'goblins in my arcade,
and I can remember the cross as the last weapon instead of the shield,
which on the other side, is shown in the square below the playing
ground.

In MAME that version was once known as a clone named "gngcross", which
was then renamed to "gnga" starting with 0.35rc2, and merged with
original set.

Unfortunately, rom list for the clone is wrong: it's been pasted from
original set "gng", whilst a couple of graphics roms must be loaded from
"makaimur" instead. You can see this by yourself comparing sources from
0.35rc1 and 0.35rc2.

The attached patch was obtained from SDLMAME on a Linux box, on release
0.123u6. I can't test it compiling MAME code, however this obviously
affects mainline too.

Thanks and keep up your good work!

Cheers,
Cesare Falco
(SDLMAME Ubuntu maintainer).
2008-03-24 01:32:45 +00:00
Aaron Giles
abda9cf18b Undid recent change to remove pen lookups in 16bpp modes. This code
is shared between INDEXED16 and RGB15 rendering and we're not ready 
to remove the lookups yet.
2008-03-24 01:20:39 +00:00
Pierpaolo Prazzoli
637bd36853 Fixed bug 01433: marvins: If you play player 2, the maze remains unchanged.
Inverted cabinet bit in madcrash (also if there's an original bug for cocktail mode)
2008-03-23 19:30:36 +00:00
Zsolt Vasvari
c27dfa66fa Added mc6845_set_hpixels_per_column() for the Hercules gfx adapter 2008-03-23 15:24:56 +00:00
Zsolt Vasvari
2cf47b7531 Fixes malzak2 from crashing 2008-03-23 14:02:50 +00:00
Aaron Giles
90a7af6166 From Derrick Renaud:
In drivers\seta.c, the zombraid gun input ports should be changed as 
per the attached text file. The current crosshair settings work only 
with the default power-on settings.  The updated code works with 
calibrated settings.
2008-03-23 13:50:41 +00:00
Aaron Giles
9f4e71d8b3 From: Duke [mailto:startaq@gmail.com]
Subject: Unnecessary assert in video.c

The assert

assert(machine->config->devicelist != NULL);

in video.c causes the MESS mk1 driver to fail because it doesn't have
any devices - no screens and no sound devices. It works fine when the
assert is removed.

--Dirk
2008-03-23 13:48:43 +00:00
Nathan Woods
0fd62f5d4f Added a machine_config* parameter to certain MESS specific hooks 2008-03-23 11:32:46 +00:00
Pierpaolo Prazzoli
d6272eb90b Fixed bug 01586: multisession graphics corruption 2008-03-23 10:50:48 +00:00
Aaron Giles
223d9b5d03 Fixed video timing in xtheball. Still don't know why it changed
recently, but the new parameters reproduce the old values.
2008-03-23 05:26:56 +00:00
Zsolt Vasvari
ffaddce8f4 Adds the 'static' as per AtariAce, but he screwed up the alignment of an important table :(, which is why I am sending it myself 2008-03-23 05:26:19 +00:00
Aaron Giles
cd508ea42d Minor MSVC compilation fix. 2008-03-23 05:15:45 +00:00
Zsolt Vasvari
ed6af175ef RGB15 to INDEXED16 conversion 2008-03-23 04:46:35 +00:00
Zsolt Vasvari
dc01a6b148 - Converted crystal.c from RGB32 to INDEXED16
- Added PALETTE_INIT( RRRRR_GGGGGG_BBBBB )
2008-03-23 02:41:49 +00:00
Zsolt Vasvari
a1e4799fa7 RGB15 to INDEXED16 conversion 2008-03-23 02:28:48 +00:00
Zsolt Vasvari
102519de1f RGB15 to INDEXED16 conversion 2008-03-23 02:24:05 +00:00
Nathan Woods
bbecd3b886 MESS-specific: Interim change in the process of changing over to MAME's device
system
2008-03-22 22:26:25 +00:00
Zsolt Vasvari
55c9a000bf RGB15 to INDEXED16 conversion 2008-03-22 14:28:55 +00:00
Zsolt Vasvari
fd2f7cfe03 RGB15 to INDEXED16 conversion 2008-03-22 14:25:53 +00:00
Zsolt Vasvari
8fcc91c77f Added option to programatically set the clock pin. This is needed by at least one MESS driver 2008-03-22 09:49:45 +00:00
Zsolt Vasvari
a5c8f40a68 INDEXED16 conversion 2008-03-22 06:48:12 +00:00
Zsolt Vasvari
4f0b3c83db eolith.c: Same modifications as dgpix -- almost identical hardware
dgpix.c: fixed video RAM masking I screwed up with the last update
2008-03-22 06:43:29 +00:00
Zsolt Vasvari
d2b44c842f DGPIX: Converted to INDEXED16
Removed temp bitmaps
       Changed ugly recursive video RAM code

DDZ:   Removed RGB15 -- it's a "skeleton" driver, so why have it?

video\generic.c: Added PALETTE_INIT(RRRRR_GGGGG_BBBBB) and PALETTE_INIT(BBBBB_GGGGG_RRRRR)
2008-03-22 06:05:05 +00:00
Zsolt Vasvari
f8a993ed80 Uses timer device 2008-03-22 05:24:14 +00:00
Zsolt Vasvari
4135f9b296 Changed from RGB15 to RGB32. RGB15 is not enough bits to hold the 5-6-5 colorspace.
By the way, this was the first time I checked out the games in this driver.  Especially, The Crystal of Kings is very nice.
2008-03-22 04:19:02 +00:00
R. Belmont
f169da9d4c Fixed crash running "kviper" BIOS. 2008-03-22 04:13:39 +00:00
R. Belmont
1d366a0789 Got most of the Konami PPC games running again. 2008-03-22 04:10:07 +00:00
R. Belmont
20e3fa7eb1 [SCSI] Fixed case when no device exists (e.g. running the sys573 BIOS directly). 2008-03-22 03:55:23 +00:00
R. Belmont
3e246847b5 [GTICLUB] Fixed crash. 2008-03-22 03:51:06 +00:00
Zsolt Vasvari
e923c02f3b Fixes crospang.c regression. Not sure why this needed to be RGB15, works fine with INDEXED16 2008-03-22 02:46:18 +00:00
Zsolt Vasvari
14053cd582 Fixes wbbc97 regression 2008-03-21 15:20:44 +00:00
Aaron Giles
509dc4c064 De-deprecat-ed ui.c.
Changed xmlfile.c to pass in memory handlers to expat so that
our memory overrides are properly managed.
2008-03-21 14:51:26 +00:00
Aaron Giles
79b88dcb90 Another assertion fix. 2008-03-21 14:01:38 +00:00
Aaron Giles
354efb2515 Fixes assertion. 2008-03-21 13:45:23 +00:00
Aaron Giles
04c0eba7b9 Centralized definitions of _WIN32_WINNT.
Removed malloc/calloc/realloc/free link-time overrides; we now
rely exclusively on compile-time overrides.

Made a few tweaks toward getting mingw-w64 working, but there
are still linker issues.
2008-03-21 05:02:18 +00:00
Zsolt Vasvari
29a352ed4a Fix 01524: btoads: Assertion 2008-03-21 00:30:09 +00:00
Zsolt Vasvari
5cd63ef3de Fix 01557: dealem: Assertion 2008-03-21 00:25:13 +00:00
Nicola Salmoria
68f4aedb2d Fixed: 00059: commsega, locomotn, tactcian: They exhibit a problem with screen area. 2008-03-20 18:03:32 +00:00
Nicola Salmoria
a41f42d88b added note about tactician display being correct 2008-03-20 17:03:22 +00:00
Aaron Giles
b28f2c2504 Explicitly fixed unmapped handler masks so that we don't report
all unmapped addresses as 0.
2008-03-20 14:16:00 +00:00
Nicola Salmoria
6e397b034c Added NVRAM to Gekisou. Fixed inputs and promoted to working. 2008-03-20 12:53:28 +00:00
Nicola Salmoria
6183e18a21 fix 00406: qadj: When playing as the ninja, there is one broekn frame in his animation loop when walking.
using the fix that had been posted to mametesters one year ago
2008-03-20 11:44:47 +00:00
Curt Coder
bc8eb54a5e Cleaned driver up to the latest spec. 2008-03-19 21:55:16 +00:00
Nicola Salmoria
72889926e1 Added Noise Output to the MSM5232 emulation
Added placeholder effects for cymbal and hihat to equites.c. These will need further work to properly emulate the discrete circuitry.
2008-03-19 09:35:57 +00:00
Zsolt Vasvari
aca4fd01ce Fixes sprite wrapping -- this is used on the gun calibration screen, at least.
For me, the game hangs on a black screen after service mode is turned off.  Even exsiting MAME and restarting doesn't fix it, so it's probably a EEPROM issue
2008-03-19 09:22:44 +00:00
Aaron Giles
4a5001927c Cleanups and version bump. 2008-03-19 08:52:53 +00:00
Aaron Giles
78c12f1b82 From: Corrado Tomaselli
Subject: nmk16 diff

Added Thunder Dragon (9th Jan 1992), corrected clock frequencies and 
verified oki pin 7
Changed some nmk16.c romset names

Note:
The revision is not a typo, it's 6 months later than the previous one.
2008-03-19 08:45:45 +00:00
Aaron Giles
6a4df142c2 From: Corrado Tomaselli
Subject: pitfall2

Added Pitfall2 (Flicky conversion)
you can see the pcb here: 
http://www.citylan.it/pitfall2flic/PCB%20component%20side.jpg

the mobo is the same as my flicky pcb.
I also renamed Wboy4 since the dump was from my pcb and it's a 4d 
warriors conversion even if sega reproduced the protection custom with a 
piggyback.
I think we should rename all the sets to the proper conversions for 
proper documentation
2008-03-19 08:44:42 +00:00
Aaron Giles
4967410073 From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: SH-4 debugger output fix

This patch fixes "garbage" (newlines) in the debugger window when 
debugging the SH-4 CPU.

It also conatins a small comment fix in video/playch10.c and the 
removal of some yet unused or just obsolete macros in emu/cpuint.h.
2008-03-19 08:38:01 +00:00
Aaron Giles
5c3f83eb1f From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: Deal 'Em phase 3

Conerted the driver to use an HD6845, as the Hitachi part was on the 
PCB, while also using it to generate the VBLANK, rather than hardcoding 
a value. Added the pulldown resistor to the network, and added all the 
conditional inputs. Please note that on the later Cabinet Types (Ready 
Steady Go-1 onwards), the 10p slot is locked out (location of the true 
register for this is unknown), but the input setting is correct - you 
have to use Coin 2 or higher to get money in.
2008-03-19 08:36:32 +00:00
Aaron Giles
41239093bf From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: Legion name change

Changed Legion to his complete title "Chouji Meikyuu Legion"
2008-03-19 08:35:26 +00:00
Aaron Giles
a9bb6bbdec From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: 40love-88games-1945kiii inputs/dips

1945kiii.c, 88games.c and 40love.c:
Made use of PORT_DIPUNKNOWN_DIPLOC

40love.c:
Made use of PORT_INCLUDE

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: 8080bw.c inputs/dips

8080bw.c:
-Added more dip locations
-Made use of PORT_INCLUDE

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: wilytowr.c dips

wilytowr.c:
-Added dip locations for atomboy/wilytowr
-Fixed coin modes
-'Fixed' bug 01520

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: battlane-battlera-battlnts-bbusters inputs/dips

battlane.c, battlera.c, battlnts.c, bbusters.c:
-added dip locations

battlnts.c:
-made use of PORT_INCLUDE
-fixed unknown dip switch

bbusters.c:
-added note regarding correct gun calibration, 'fix' for bug 00014 
(bbusters0101u1yel) 

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: bionicc-bladestl-blockade-beezer-bfm_sc2 inputs/dips

bionicc.c: Added dip locations
bladestl.c: Added dip locations, made use of PORT_INCLUDE
blockade.c: made use of PORT_INCLUDE
beezer.c: Added dip locations

bfm_sc2.c: dip switch improvements, made use of PORT_INCLUDE
2008-03-19 08:34:25 +00:00
Aaron Giles
a99fd9575a From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: pit and run

diff to fix my typo on the main frequency of the z80
2008-03-19 08:25:20 +00:00
Aaron Giles
5807e98052 Removed excessive assertions in the device_list code -- it is ok to pass
a NULL list head (in which case you have an empty device list). All the
code works fine with a NULL head and returns appropriate values. Removed
changes to video_screen_count() and video_screen_first() which were added
to work around this behavior.
2008-03-19 08:15:37 +00:00
Zsolt Vasvari
109441c041 And one more pedantic change... 2008-03-19 08:08:43 +00:00
Zsolt Vasvari
8eb8cf9c11 Spelling... 2008-03-19 08:06:48 +00:00
Zsolt Vasvari
a9de40c914 Fix 01236: psurge: Power Surge isn't coining up. 2008-03-19 08:03:56 +00:00
Aaron Giles
d75b3d1dff Added return value to video_screen_update_partial() indicating whether
or not the VIDEO_UPDATE was called as a result.

Modified amiga.c to use this information so that we guarantee a call
to amiga_render_scanline() regardless of the video state.

Fixes 01521: ar_sdwr: Game hangs on title screen
2008-03-19 07:58:51 +00:00
Aaron Giles
c44017b4fd Fixed chdman -extract to a physical drive on Windows. 2008-03-19 07:16:57 +00:00
Nicola Salmoria
e4d1474415 added percussions to the equites.c games using samples.
Hopefully the samples can be replaced with discrete emulation in the future.

Sound board emulation is still not complete. Cymbal hit and hi-hat are missing; bassline is incorrect, and DAC output should be filtered.
2008-03-18 15:40:31 +00:00
Zsolt Vasvari
3335ef02e2 Fix: 01477: metamrph, metamrpj, metamrpu: Game doesn't start 2008-03-18 09:48:57 +00:00
Zsolt Vasvari
2e9b9ad653 Fix: 01452: boobhack: Crashes 2008-03-18 09:37:43 +00:00
Nicola Salmoria
a096d73ba4 fix ninjakd2 PCM sample rate to match pcb measurement 2008-03-18 08:57:13 +00:00
Zsolt Vasvari
ad9f4a0baa Removes TRANSPARENCY_PEN_RAW hack from Raiga and Super Pinball Action 2008-03-18 08:39:33 +00:00
Zsolt Vasvari
772311642a Removed unneeded pen lookups.
Some code formatting clean-up.
2008-03-18 08:34:01 +00:00
Roberto Fresca
dc4065e1b2 Added Pot Game (italian), recent dumped in Intel hex format ;-) by f205v.
Updated technical notes.
2008-03-18 06:53:24 +00:00
Aaron Giles
9c74429866 01440: mazingar, agallet: Terrible slow down in some scenes.
Removed weird use of color table in favor of a direct palette
map. It is still a weird abuse of color, but at least it is
done internally and doesn't have the terrible slowdown behavior.
2008-03-18 04:55:46 +00:00
Zsolt Vasvari
59300d2fd3 Fixes crash 2008-03-18 04:31:18 +00:00
Nicola Salmoria
23a0601055 Alpha Denshi major update
This is still WIP bug I've been working on it for sveral weeks and I want to get it out before leaving for holidays.

- Fixed Alpha 8201/830x MCU simulation.
  - all hacks from the equites driver removed
  - fixed equites restart position after going underground
  - fixed hvolume, splndrbt 2 players
  - removed hacks from exctsccr2
  - fixed CPU gameplay in shougi

- Gekisou promoted to working

- added dump of Alpha 8201 MCU to games that use it (the ROM isn't used yet, HMCS44 CPU core needs to be written first)

- major cleanup of the mess in equites.c:
  - many thanks to Corrado Tomaselli for precious hardware info.
  - implemented bg perspective scrolling using PROMs
  - fixed sprite flip & disable
  - fixed bg color
  - converted bg to tilemaps
  - fixed fg banking
  - fixed screen flip
  - removed meaningless banking of player inputs
  - added UI adjuster for MSM5232 frequency
  - MSM5232 volume control

- fixed MSM5232 noise LFSR formula (done by Jarek Burczynski; thanks to Corrado Tomaselli for samples)

- changed MSM5232 emulator to output channels separately

- added output of SOLO channels to MSM5232 emulator.

- mametesters bugs fixed:
  - 00217 splndrbt: On boot the pcb displays a clean light blu screen while in mame there is a black road. 
  - 00220 splndrbt: Concerning the gfx, on the pcb the background is not linear as shown in mame.
  - 00223 splndrbt: On the first level when you pass the asteroid belt the star road should be light blue instead of black like mam 

- fixed champbas inputs

- merged talbot with champbas, some driver clenaup

- fixed shougi inputs

- switched exctsccb to use the correct gfx ROMs (matches screenshot found in 01058 exctsccb: Exciting soccer bootleg should be placed in champbas.c.)

- fixed sprite bpp in exctscrr, removed the horrible hacks that were used to fix colors and transparency.

- fixed sound clipping in exctsccr
2008-03-17 19:07:23 +00:00
Aaron Giles
1e3c411a46 Fix 01531: polygon-based drivers: winwork.c memory leak 2008-03-17 17:04:24 +00:00
Aaron Giles
e4e17a4fcd Fix 00150: alpinr2b, alpinesa : Assertion with -debug 2008-03-17 16:51:19 +00:00
Aaron Giles
e499ad86e7 Fix 01462: [Save/Restore] atarimo_render-based drivers:
Crash when loading an autosave save state.

Removed excessive dirty tracking. This creates a bit more
work on each update, but gets rid of some dodgy logic.

Added typedefs for 'struct xxxx' to simply 'xxxx'.
2008-03-17 16:39:18 +00:00
Aaron Giles
91bc82c487 Better multisession fix. Reverted previous change (1002) and simply
initialize the digital joystick state in input_port_init().
2008-03-17 16:36:26 +00:00
Aaron Giles
ec550fa07b Fixed pick_best_mode in both d3d and ddraw cases to manually extract
refresh information from the device's inline_config, since this is
done before the screen devices are start. Fixes 01491: switchres 
causes Exception at EIP=009413BF: ACCESS VIOLATION.

Also, fixed render_target_get_minimum_size() to return nominal values
if no screens are found.
2008-03-17 15:50:12 +00:00
Aaron Giles
75056eb1b5 Moved per-screen initialization into DEVICE_START and per-screen cleanup
into DEVICE_STOP.
2008-03-17 15:38:18 +00:00
Aaron Giles
7a0931f08d Fix chicken and egg problem with device_start callbacks.
Added DEVINFO_INT_TOKEN_BYTES, which is queried before device
startup. It should return the size of the structure that will
be hung off of device->token. It must not return 0.

Changed the core device interface to allocate and zero a block
of memory the size of DEVINFO_INT_TOKEN_BYTES before calling
device_start. The pointer to this memory is already attached
to device->token at the time device_start is called.

The primary motivation for this is to allow the device_start
function to make internal calls and pass the device_config *
around as if the object were fully constructed. Since the token
is used to indicate whether or not a device is live, this makes
the device "live" at the time device_start is called rather
than after it completes.
2008-03-17 15:23:07 +00:00
Zsolt Vasvari
c7b072564c Restores the previous verifyroms() code. Left verifysamples() untocuhed for now. 2008-03-17 15:21:07 +00:00
Aaron Giles
ce011916b4 Made it a fatalerror to registr save state callbacks at the wrong time
if the current driver claims to support save states.
2008-03-17 14:45:27 +00:00
Nathan Woods
6a7c3d1589 Added a crosshair_set_screen() to allow drivers to control which screen(s) on
which crosshairs are displayed.
2008-03-17 12:47:22 +00:00
Nathan Woods
e7508371ed Fix for screenless (and deviceless) systems - this fix assumes that it is
illegal to pass a NULL listhead to device_list_first() and that the assert there
should stand.  Please review and correct if appropriate.
2008-03-17 10:52:16 +00:00
Zsolt Vasvari
c031746599 Fix: 01538: -verifysamples: Inconsistent handling of missing sample sets
I applied the same fix to verifyroms.  Now a status message is printed for every sample/ROM set regardless if an individual or all the sets are audited.
2008-03-17 09:19:11 +00:00
Zsolt Vasvari
9eb278b911 Fixed memory leak 2008-03-17 08:56:10 +00:00
Zsolt Vasvari
650f7af6be Corrects some game titles:
Sea Wolf II -> Seawolf II  (original is still Sea Wolf, as per the flyer)
Professor PacMan -> Professor Pac-Man
Demons and Dragons -> Demons & Dragons
2008-03-17 05:27:07 +00:00
Zsolt Vasvari
12546a8559 From Mr.Do: Adds Gorf internal artwork 2008-03-17 05:15:37 +00:00
Zsolt Vasvari
255698f927 Fixes the top screen 2008-03-17 05:03:31 +00:00
Zsolt Vasvari
b78ff83cd0 Fix: 01529: AICA memory leak 2008-03-17 00:58:24 +00:00
Couriersud
8bb4a10f0b Fix: 01511: batman: Fails to load autosave state
* fixes late creation of timer which caused 0-length save states
2008-03-17 00:50:48 +00:00
Zsolt Vasvari
c230321cdc The on-screen "Reset by watchdog" message only appears in debug builds 2008-03-17 00:44:00 +00:00
Zsolt Vasvari
36d69f3b61 Fix: 01535: usclssic: Access Violation with -debug
Fix: 01536: uballoon: Access Violation with -debug
2008-03-17 00:40:09 +00:00
Zsolt Vasvari
14761df1e4 Fixes Air Buster bootleg from reseting because of the watchdog 2008-03-17 00:15:30 +00:00
Zsolt Vasvari
7fb7afb780 - Changes exidy440_sound_command back to "UINT8." Since it's used by both 8-bit and 16-bit system,
the automatic allocation is not worth it if you need an ugly UINT16 ** cast.
- Removed deprecat.h from some of the files here
2008-03-17 00:09:16 +00:00
Nathan Woods
00f4374501 Added running_machine* parameter to MESS-specific calls 2008-03-16 22:46:56 +00:00
Couriersud
6dd3c4ae7c Fix: 01465: topgunnr: Crashes
* exidy440_sound_command had been changed from UINT8 to UINT8 * 
  and was consequently pointing to NULL / Nirwana land.
2008-03-16 17:31:14 +00:00
Zsolt Vasvari
b17efbc93b Removes no longer needed code 2008-03-16 15:36:06 +00:00
Zsolt Vasvari
0b4e370a73 Fix: 01534: ajax, ajaxj, typhoon: Access Violation with -debug 2008-03-16 15:34:30 +00:00
Zsolt Vasvari
5cd9ca723a Fix: 01019: Various Drivers: List of drivers with sound clipping 2008-03-16 11:05:31 +00:00
Pierpaolo Prazzoli
0895d395a9 Added missing prototype for get_info function. It didn't compile. 2008-03-16 10:43:36 +00:00
Curt Coder
23624eb5b0 Added Guru-readme. 2008-03-16 09:38:48 +00:00
Zsolt Vasvari
cb3fffef61 Missing semicolon -- how did it even compile? 2008-03-16 04:34:19 +00:00
Zsolt Vasvari
c64886cc69 Fix: 01499: Various Drivers: Launching games from in-game [TAB] menu 2-3 times in a row throws access violation.
My fix is a bit heavy handed.  The real access violation happens in update_digital_joysticks() after the comment "read all the associated ports" and before the next comment
2008-03-16 04:31:40 +00:00
Zsolt Vasvari
c39f072404 Fix: 01453: troangel, newtangl: Crashes 2008-03-16 03:55:23 +00:00
Roberto Fresca
caf9dbdef3 - Added proper inputs to jolyc980.
- Added temporary patch to allow bypass the "code" screen in jolyc980.
 - Updated technical notes.
2008-03-15 15:30:03 +00:00
Zsolt Vasvari
c66bb0adc5 Fix: 01530: Various Drivers: bitmap memory leaks 2008-03-15 14:14:03 +00:00
Zsolt Vasvari
16e18f24af Fixed: 01508: most vector-based drivers: Assertions 2008-03-15 09:32:24 +00:00
Zsolt Vasvari
f61e037749 Fix 01526: futflash, laserbas, laserbsa: Assertion
Fix 01524: btoads: Assertion 
Fix 01523: nkdodge, nkdodgeb, spdodgeb: Assertion 
Fix 01522: all ddragon.c drivers: Assertion 
Fix 01528: pzlestar, sexyboom: Assertion 
Fix 01527: all meritm.c drivers: Assertion
2008-03-15 03:54:44 +00:00
Zsolt Vasvari
3512bc695d Changes MDRV_TIMER_DURATION to MDRV_TIMER_START_DELAY
Renames duration to start_delay in timer_adjust_periodic() as well
Moves MDRV_ macros into proper header files
2008-03-15 03:13:57 +00:00
Nathan Woods
81fcbd9a2c MESS-specific changes 2008-03-15 00:14:32 +00:00
smf-
5d52f08b7e fixed collision of TIMER define 2008-03-14 21:53:19 +00:00
smf-
a0afb4c516 fixed collision of TIMER define 2008-03-14 21:50:22 +00:00
smf-
b4418ff847 fixed unused variable warnings when assert is not enabled. 2008-03-14 21:35:36 +00:00
Zsolt Vasvari
d4893e2535 Makes suggested changes to MDRV_TIMER macros. Hasn't moved them yet. 2008-03-14 15:13:46 +00:00
Zsolt Vasvari
0d06d94153 Fix 01500: all astrocde.c drivers: assertion
Fix 01506: all ataxx.c drivers: Assertion 
Fix 01504: all leland.c drivers: Assertion 
Fix 01501: all m107.c drivers: assertion 
Fix 01509: backfire, backfira: Assertion 
Fix 01503: sidearjp, sidearmr, sidearms: Assertion 
Fix 01507: all naomi.c drivers: Assertion
2008-03-14 14:39:32 +00:00
Aaron Giles
716d0a4f2a Fixes:
01517: all atarigt.c drivers: Assertion 
01516: all atarigx2.c drivers: Assertion 
01515: all atarig42.c drivers: Assertion 
01514: all cyberbal.c drivers: Assertion
2008-03-14 13:41:44 +00:00
Zsolt Vasvari
725d2646fd Fix: 01512: beathead: Assertion
Fix: 01505: all vicdual.c drivers: Assertion
2008-03-14 12:46:13 +00:00
Zsolt Vasvari
e4a07ea688 Implements scanline based timer devices.
Converted Centipede, as an example.

To define a scanline timer, use something like this:

MDRV_TIMER_ADD("32V", SCANLINE, generate_interrupt)
MDRV_TIMER_SCANLINE("main", 0, 16)

The first number is the first scanline the timer will fire on, the 2nd number is the increment.
So in this case, the timer will fire on 0, 16, 32, ..., 224, 240, then wrap around
because the screen is defined as 256 lines high.
The current scanline is passed to the callback in its 'param' argument
2008-03-14 11:15:31 +00:00
Zsolt Vasvari
e42b02f565 Implements the periodic timer device functionality 2008-03-14 09:52:28 +00:00
Roberto Fresca
a7cf2c0493 - Completed the component list & PCB layout.
- Added technical references to register $63 (magicfly).
 - Switched crystal to new predefined format.
2008-03-14 06:44:51 +00:00
Aaron Giles
8fcd45cab1 Renamed *_vbl_cb to *_vblank_callback.
Fixed 01475: Screenless systems are broken because of a vblank callback.
We now create an artificial update mechanism when there are no screens.
2008-03-14 05:19:53 +00:00
Zsolt Vasvari
13f82f7331 Fix: 01496: all segae.c drivers: Crashing with Access Violation
This driver is creating bitmaps in DRIVER_INIT, which is not the best practice, and in fact, it broke as machine->primary_bitmap is not initalized yet.
2008-03-14 03:11:25 +00:00
Zsolt Vasvari
2f37f76c57 Fix: 01498: otwalls: Hangs before the game starts.
Caused by RansAckeR input port "simplifications."  I put it in quotes, because I think it makes the input port definitions completely unreadable.
2008-03-14 02:48:25 +00:00
Zsolt Vasvari
c0ca716e62 Added skeletion device interface for timers. Just wanted to get feedback.
- Where applicable, added a parallel set of timer functions that take a device_config instead of emu_timer:
	void timer_device_adjust_oneshot(const device_config *timer, attotime duration, INT32 param);
	void timer_device_adjust_periodic(const device_config *timer, attotime duration, INT32 param, attotime period);
	void timer_device_reset(const device_config *timer, attotime duration);
	int timer_device_enable(const device_config *timer, int enable);
	int timer_device_enabled(const device_config *timer);
	int timer_device_get_param(const device_config *timer);
	void *timer_device_get_param_ptr(const device_config *timer);
	attotime timer_device_timeelapsed(const device_config *timer);
	attotime timer_device_timeleft(const device_config *timer);
	attotime timer_device_starttime(const device_config *timer);
	attotime timer_device_firetime(const device_config *timer);

- Added MACHINE_CONFIG macros:
	MDRV_TIMER_ADD(_tag, _type, _callback)	/* type can only be PERIODIC right now (can scanline based later, or even NE555) */
	MDRV_TIMER_REMOVE(_tag)
	MDRV_TIMER_MODIFY(_tag)
	MDRV_TIMER_TYPE(_type)
	MDRV_TIMER_CALLBACK(_callback) 
	MDRV_TIMER_DURATION(_duration)
	MDRV_TIMER_PERIOD(_period)
	MDRV_TIMER_PARAM(_param)
	MDRV_TIMER_PTR(_ptr)

- Modified Space Encounters to create two timers and use those:

	MDRV_TIMER_ADD("STROBE_ON", PERIODIC, spcenctr_strobe_timer_callback)
	MDRV_TIMER_PARAM(TRUE)	/* indicates strobe ON */
	MDRV_TIMER_PERIOD(UINT64_ATTOTIME_IN_HZ(SPCENCTR_STROBE_FREQ))

	MDRV_TIMER_ADD("STROBE_OFF", PERIODIC, spcenctr_strobe_timer_callback)
	MDRV_TIMER_PARAM(FALSE)	/* indicates strobe OFF */
	MDRV_TIMER_DURATION(UINT64_ATTOTIME_IN_HZ(SPCENCTR_STROBE_FREQ * 100 / SPCENCTR_DUTY_CYCLE))
	MDRV_TIMER_PERIOD(UINT64_ATTOTIME_IN_HZ(SPCENCTR_STROBE_FREQ))
2008-03-14 00:27:07 +00:00
Aaron Giles
a6b4a6ad50 Cleanups and version bump to 0.123u5. 2008-03-13 16:21:46 +00:00