Commit Graph

803 Commits

Author SHA1 Message Date
R. Belmont
753b8dbf32 [DC/NAOMI] Use defines instead of magic numbers for IRQ sources, add VBL-out. 2008-03-01 03:27:21 +00:00
Zsolt Vasvari
875ece67f6 - Implemented VSYNC height computation difference between the Motorola and the Rockwell devices
- Since the Commodore 40xx computers program an HSYNC width that extends past the end of
  the scanline, I am clamping it in lack of anything better to do.
2008-03-01 02:40:27 +00:00
Zsolt Vasvari
09bf1cb3e4 Added mc6845->has_valid_parameters in mc6845_assert_light_pen_input, so that processing only happens
if the chip was correctly configured
2008-03-01 01:58:51 +00:00
Zsolt Vasvari
fe74a22163 - Uses a timer for latching the light pen address. Not that there was anything really wrong
with the previous way, but this is a bit more accurate.  I actually tested this.
- Added reset device function
- Better variable names
- More asserts
2008-03-01 01:56:35 +00:00
Couriersud
16547714e4 Fix compile issues introduced with r844 2008-03-01 01:47:47 +00:00
Couriersud
76847517a4 Identified code not used and marked with "#ifdef UNUSED_FUNCTION" 2008-03-01 01:34:43 +00:00
Couriersud
c5a4ffe291 memory.c: removed some code never to be executed
* removed "return 0" from READBYTE & READBYTE8 since it is unreachable
* removed comparisons of type FPTR < 0 and FPTR >= 0
2008-03-01 01:03:54 +00:00
Couriersud
7e15b2ff6f * MACHINE_DRIVER_EXTERN now requires a semicolon
* removed a number of extra semicolons
2008-03-01 00:17:58 +00:00
Couriersud
b0cf015703 Two discrete structs were not used:
* dkong walk using a jump struct 
* radarscp using a dkong 555 struct
2008-02-29 23:10:46 +00:00
R. Belmont
8bd8e97051 [SH4] Fixed refresh ticks value of 0, makes awbios not blow up the timer system. 2008-02-29 20:40:24 +00:00
Zsolt Vasvari
f126c9fc26 Most of this descriptions taken directly from an e-mail by Aaron:
- Define a new MDRV_CPU_VBLANK_INT_HACK() (ZV: defined in deprecat.h) which is a copy of the current MDRV_CPU_VBLANK_INT()
- Find all the places where VBLANK_INT is used with something other than 1 interrupt per frame and change it to the new macro
- Remove the "# per frame" parameter from the MDRV_SCREEN_VBLANK_INT() and add a screen tag in its place; updated all callers appropriately.
- ZV: Added some validation of the interrupt setup to validate.c 

The idea behind this is that using a VBLANK interrupt with more than one interrupt per frame in conceptually wrong.
The screen tag will allow us to move the interrupt timing code from cpuexec.c to video.c, where it really belongs.
2008-02-29 15:09:04 +00:00
Zsolt Vasvari
51a3a9eb01 Fixed taitoic regression
(Note to Haze: a little less crying and instead spending 2 minutes with a diff program would have been a lot more productive)
2008-02-29 04:23:37 +00:00
Zsolt Vasvari
f8cbcafd5e Replaces mame_bitmap with bitmap_t
Removes mame_bitmap
2008-02-29 04:01:09 +00:00
Zsolt Vasvari
a3aef48df5 - Converted Amiga based games to partial updating and proper scanline based timers
- Beginning of the clean-up of Space Guerilla - fixed rotation, some other stuff
- Removed tmpbitmap from some drivers
2008-02-29 01:42:25 +00:00
stephh
9d6f8060d6 "Input (this Game)" menu now handles conditional inputs.
See 'qcrayon2' in taito_f2.c driver (play with the last Dip Switch and look how inputs change).
2008-02-28 18:23:37 +00:00
Zsolt Vasvari
c1eddd0763 Adds mc6845_assert_light_pen_input. This latches the next character display address into the light pen latch. 2008-02-28 13:25:19 +00:00
Zsolt Vasvari
8cf42a706d Fixed incorrect comments 2008-02-28 10:05:12 +00:00
Zsolt Vasvari
22f1803388 Signals both the 0->1 and 1->0 transitions of the synching pins 2008-02-28 09:30:14 +00:00
Zsolt Vasvari
0516bab238 - MC6845 - Added HSYNC and VSYNC callbacks -- I actually tested this :)
- Added macros and typedefs for callback function types
- Updated all users for the new macros
2008-02-28 06:34:58 +00:00
Aaron Giles
b96aa2fb5c Spacing and version bump. 2008-02-28 06:20:19 +00:00
Aaron Giles
4741ad3a7e From: Robert [mailto:pac0446@bigpond.net.au]
Subject: A fix for the z80pio

Hi there,

Here is a one-line fix for the z80pio.

At the moment when the interrupt control word is sent (with interrupts
enabled), an interrupt occurs. In reality, interrupts are disabled until
the interrupt mask byte is sent.
2008-02-28 05:48:21 +00:00
Aaron Giles
061ea91358 From: RansAckeR
Subject: astinvad.c & astrocde.c dips

Added dip location: astinvad.
Added dip locations and improved dip switches: seawolf2, wow, gorf, robby, 
profpac. 

--

From: RansAckeR
Subject: asuka.c dips

Added dip locations for: bonzeadv, cadash, asuka, mofflott, galmedes.

--

From: RansAckeR
Subject: atarifb.c dips

Added dip locations to: atarifb, atarifb4, abaseb, soccer.
2008-02-28 05:46:00 +00:00
Aaron Giles
a06cdea7db From: roberto zandona
Subject: risky challenge 

another opcode to fix a sprite bug and a general clean up of the remarks in the driver
2008-02-28 05:42:20 +00:00
Aaron Giles
ef3562b02b From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: MPU4 Changes part 2

Right, I've added a bit of CTS pin checking logic, so that the status
flag is actually set when the pin changes state.

I've also simplified the MPU4 ACIA clock logic, but it's still not ideal
(Ideally, the ACIA should only run one transmit or receive event each
time the PTM O1 pin goes high, but that's not possible right now, so I
just set the clocks as close to off as I can when the pin is low, and to
something that approximates the distance between output state changes
when it's on). There's also a few more little cleanups based on
schematics and flyers from TAFA, and an emulation of the master reset
behaviour. Incidentally, if anyone wants to see just why this isn't
kicking into life now, by all means do, since there's nothing left that
I can see that it can get hung up on, other than the video chip, and the
aforementioned ACIA logic.
2008-02-28 04:19:39 +00:00
Aaron Giles
0104d6ff63 From: Wilbert Pol [mailto:wilbert@jdg.info]
Subject: uPD7801, uPD78C05, and uPD78C06 cpu cores added to the uPD7810
cpu core

This patch adds basic support for the NEC uPD7801, uPD78C05, and  
uPD78C06 cpus to the uPD7810 cpu core.
2008-02-28 03:22:38 +00:00
Zsolt Vasvari
34781e5f4c - Better variable name for the cursor counter
- Pedantic clean-up of comments
- R6545 is still in the "MC6845 CRTC" family, therefore removed DEVINFO_STR_FAMILY
2008-02-28 03:16:36 +00:00
Nathan Woods
ee187c0bf6 Added a stub implementation of the Rockwell 6545 2008-02-28 02:22:10 +00:00
Zsolt Vasvari
7d092ece83 Adds support for cursors. All 4 blinking modes are supported (always on, always off, fast, slow) 2008-02-28 02:01:37 +00:00
Mathis Rosenhauer
b0735fe318 BITSWAP macro used. 2008-02-27 19:58:53 +00:00
Mathis Rosenhauer
210af56aa8 Support for original Omega Race state PROM 2008-02-27 15:51:37 +00:00
Aaron Giles
e65c8bd5c6 From: Lei Wu
To: submit@mamedev.org
Subject: added PGM.c EEPROM/hiscore saving [Creamymami]
2008-02-27 15:05:50 +00:00
Aaron Giles
2702453660 Couple more address map merges, plus an MSVC compile fix. 2008-02-27 15:01:08 +00:00
Zsolt Vasvari
f78611cfd3 - Clean-up of the Crazy Climber video driver, mainly via tilemap conversion.
This fixes the ape sprite positioning in Crazy Kong -- no more gap between feet and platform
- Merged Yamato driver with Crazy Climber
- XX Mission tilemap conversion
- Removes VIDEO_START(generic) -- no longer used
2008-02-27 13:51:06 +00:00
Roberto Fresca
e362c9301e Added Cal Omega - Game 10.7 (Big Game).
This one has a keyboard interfase with 1 ROM (dumped).
Game is not working.
2008-02-27 06:25:17 +00:00
Brian Troha
035863f8a6 correction to the color code 2008-02-26 23:20:52 +00:00
Aaron Giles
b61bc6d703 Turned on use of designated initializers for tokenized structures in gcc,
since it appears to support them with std=gnu89. Fixed several places
where drivers were violating the rules.
2008-02-26 11:16:37 +00:00
Aaron Giles
3fbf56dc0f Merged memory maps. 2008-02-26 10:56:21 +00:00
Aaron Giles
e8d437422c Fixed typo. 2008-02-26 10:55:38 +00:00
Aaron Giles
41d2a2d8c1 Change priority_bitmap accesses back to UINT8s, now that we are
again allocating an 8bpp bitmap. Fixes crashes in several games.
2008-02-26 10:48:45 +00:00
Roberto Fresca
b28523cabe Big changes to Cal Omega driver to support systems 903/904/905/906.
A lot of sets were added. Also System 903/905 diag ROMs.
Submitted the driver at this point because it's growing as a monster.
Parent/clone relationship for official games is not defined yet.

Changes:
- Renamed the driver to calomega.c.
- Extended the driver to support all the other Cal Omega systems.
- Switched to XTAL def.
- Fixed CPU & sound clocks based on official diagrams.
- Replaced the AY-8910 with AY-8912 to match the real hardware.
- Unified some memory maps.
- Splitted machine in sys903 and sys905.
- Fixed memory map offsets for sys905.
- Added support to the following games:

    Game 7.6 (Arcade Poker)
    Game 7.9 (Arcade Poker)
    Game 9.4 (Keno)
    Game 12.5 (Bingo)
    Game 12.7 (Keno)
    Game 12.8 (Arcade Game)
    Game 13.4 (Nudge Bingo)
    Game 14.5 (Pixels)
    Game 15.7 (Double-Draw Poker)
    Game 15.9 (Wild Double-Up)
    Game 16.4 (Keno)
    Game 16.8 (Keno)
    Game 17.2 (Double Double Poker)
    Game 17.51 (Gaming Draw Poker)
    Game 17.6 (Nudge Bingo)
    Game 18.1 (Nudge Bingo)
    Game 18.3 (Pixels)
    Game 18.5 (Pixels)
    Game 18.6 (Pixels)
    Game 20.4 (Super Blackjack)
    Game 20.8 (Winner's Choice)
    Game 22.7 (Amusement Poker, d/d)
    Game 23.6 (Hotline)
    Game 23.9 (Gaming Draw Poker) --> EX gdrawpkr.
    Game 24.6 (Hotline)
    Game 27.2 (Keno, amusement)
    Game 27.2 (Keno, gaming)
    System 903 Diag.PROM 
    System 905 Diag.PROM
    Jackpot Joker Poker (set 1)
    Jackpot Joker Poker (set 2)
    SSI Poker (v2.4)
    SSI Poker (v3.0)
    SSI Poker (v4.0)

- Added a list of official/unofficial games, and their states.
- Fixed a bug introduced when extended the color PROM region to eliminate colortable lenght.
- Other changes/fixes.
- Updated technical notes.
2008-02-26 09:41:11 +00:00
Aaron Giles
adcdfd3e5b Converted MACHINE_DRIVER definitions from function
constructors to tokenized lists. For the most part
this is a non-invasive change, except for those drivers
using MDRV_WATCHDOG_TIME_INIT. In order to allow for
tokenization of attotimes, a set of new macros is
provided called UINT64_ATTOTIME_IN_x() which follows the
same pattern as ATTOTIME_IN_x() but packs the attotime
down into a single 64-bit value for easier tokenization.

Separated MDRV_DEVICE_CONFIG_DATA into 32-bit and 64-bit
versions. Added floating-point versions with configurable
resolutions.

Fixed several errors in the machine drivers which were
caught by the additional checks now done in the machine
config detokenization code.

Converted speakers into devices. Machine->config no
longer houses an array of speakers; instead they are
iterated through using the new macros (defined in sound.h)
speaker_output_first() and speaker_output_next(). Updated
all relevant code to do this.

Improved game info display with multiple screens. Fixed
bug which caused all screens to display equally.

Added typedefs for all the machine config callback 
functions at the top of driver.h.
2008-02-26 06:31:28 +00:00
Brian Troha
d94da47366 credit Razz
adds the two new Neogeo clones
2008-02-26 00:15:32 +00:00
Brian Troha
4f417ac50a reverted back as my commit clobbered recent additions.
Readded the new clone properly
2008-02-25 23:05:33 +00:00
Couriersud
3bd4143eb6 * remove flip_screen macro
* flip_screen_x and flip_screen_y made static
* add flip_screen_x_get() and flip_screen_y_get()
* change writes to flip_screen_x from last commit to flip_screen_set_no_update()
* added save state calls for flip_screen_x and flip_screen_y
2008-02-25 23:01:59 +00:00
Brian Troha
32713a7e9e Credit Razz
Adds Dungeons and Dragons Tower of Doom (Japan 940412)
2008-02-25 22:43:36 +00:00
Couriersud
8e96884cc6 * Fix issues related to flip_screen being a define
* add "int flip_screen_get(void)"
* define flip_screen flip_screen_get()
* clean up drivers with collisions 
* mark write accesses to flip_screen_x with FIXME
2008-02-25 21:15:59 +00:00
Couriersud
df962f9ec4 dkong.c:
* added a comment from Mike about power up sounds
2008-02-25 20:18:59 +00:00
R. Belmont
205a261dbd [NSS] Removed bogus DIPs. 2008-02-25 17:47:05 +00:00
Roberto Fresca
06e7623033 - Added new game: Royal Vegas Joker Card (fast deal, english gfx).
- Added new game: Jolly Joker.
- Added new game: Jolly Joker (50bet).
- Added new game: Jolly Card (croatian, set 2).
- Added new game: Jolly Card (Evona Electronic)
- Added new game: Super Joly 2000 - 3x
- Fixed some inputs.
- Masked inputs to allow jolyjkra to boot.
- Added minor corrections.
- Updated technical notes.
2008-02-25 06:05:28 +00:00
Brian Troha
deb1f35af6 Adds a little bit of docs for American Horse Shoe
minor white space clean up and addition of IC location
2008-02-25 02:22:57 +00:00