Commit Graph

3498 Commits

Author SHA1 Message Date
R. Belmont
54ac5adba7 Compile fix for 80808bw. 2008-11-15 03:39:57 +00:00
R. Belmont
89a2502400 Konami compile fixups. 2008-11-15 03:35:43 +00:00
Aaron Giles
fd5b836964 Const-ified the return from cpu_get_address_space.
Fixed a few errors.
2008-11-15 03:29:32 +00:00
R. Belmont
84f62ff4bf Another batch of compile fixes. 2008-11-15 03:23:21 +00:00
R. Belmont
3ada625d3b Missed one. 2008-11-15 03:09:34 +00:00
R. Belmont
9e5ad97df1 Fix compile errors in Capcom drivers 2008-11-15 03:08:59 +00:00
R. Belmont
fb3b4622d9 A few more compile fixups. 2008-11-15 02:58:27 +00:00
Couriersud
20ffe03685 More warning fixes for mame/audio 2008-11-15 01:58:22 +00:00
Couriersud
cdd245a3a6 More warning fixes for mame/machine 2008-11-15 01:39:42 +00:00
R. Belmont
c40879b61f More compile fixes. 2008-11-15 01:21:19 +00:00
Couriersud
a62a727e52 Fix more warnings drivers[s-z]* 2008-11-15 00:29:23 +00:00
Couriersud
1527ec9b1e Fix more warnings drivers[l-r]* 2008-11-14 23:22:04 +00:00
davidhay
bb7d965b89 new clone from Ross Myers
---------
Puzzle Bobble 2 (Ver 2.3O 1995/07/31) [Ross Myers]

---- note
At the moment the Taito F3 driver is pretty broken, it has been since the 68000 core changes in the last u update.

For this clone to boot I've had to add a patch, it's checking something, can somebody find out what? Seems odd.

I've also removed all speedups in the driver, the 68020 games are fast enough on modern hardware that the speedups aren't really worthwhile.
2008-11-14 22:30:05 +00:00
Couriersud
1b81e58b3c Fix more compile warnings drivers/[e-k]* 2008-11-14 22:12:41 +00:00
Couriersud
db679cd882 Some drivers/d* warning fixes 2008-11-14 21:15:09 +00:00
Couriersud
96bec61eba Some drivers/c* warning fixes 2008-11-14 21:08:42 +00:00
Couriersud
830b793ad5 Fix warnings for some c* drivers 2008-11-14 21:02:47 +00:00
Couriersud
39c1409ac6 Fix some drivers/a* warnings 2008-11-14 20:44:31 +00:00
davidhay
89258aca9d continued progress with Gals Panic 3, starting to understand the video side of things. 3 bitmap layers + RLE blitter + priority layer. 2008-11-14 20:40:28 +00:00
Couriersud
050b0d8cf2 Fix 8042kbdc.c and pci.c warnings 2008-11-14 20:31:42 +00:00
Couriersud
838a729328 Fix mc146818 warnings 2008-11-14 20:28:36 +00:00
Couriersud
1f14213be2 Fix mario.c compile errors 2008-11-14 20:24:04 +00:00
Couriersud
606b1c958d Fix dkong compile warning 2008-11-14 20:01:52 +00:00
Couriersud
4f71d0aa98 Fix compile error #2 2008-11-14 19:59:04 +00:00
Couriersud
7749448b1f Fix compile error 2008-11-14 19:54:03 +00:00
Aaron Giles
537c9becf6 WARNING: this compiles, but not fully cleanly, and a number of drivers
are broken.

Changed READ/WRITE handlers to accept an address_space * instead of a
machine *. The address_space object was enhanced to contain a machine
and a pointer to the relevant CPU object.

Fixed a number of errors found by the compiler, mostly in the core and
CPU/sound handlers, but there is a lot remaining to fix.

Added new function cpu_get_address_space() to fetch the address space
for calling in manually to these functions. In some instances, code
which should eventually be converted to a device is hard-coding fetching
the program space of CPU #0 in order to have something valid to pass.
2008-11-14 16:43:46 +00:00
Angelo Salese
9c085ae0fa Pre-irq rewrite submission in ST-V driver:
* Better management of hblank/vblank bits;
* Makes dynamic resolutions to be called with a timer instead of run-time;
* Makes dynamic resolutions to not be changed at every frame but only when there's an actual change;
This fixes Golden Axe: the Duel gameplay speed at the cost of breaking up Groove on Fight coin counter at start-up.
2008-11-14 15:53:19 +00:00
Couriersud
e759767ce0 Renamed M6802_IRQ_LINE to M6800_IRQ_LINE
* this fixes compile error
2008-11-14 08:02:44 +00:00
Couriersud
9ad6fe0049 Pointer-ified the 6800, 6809 and hd6309 cpu cores
* temporarily named the state var m68_state in the 68xx cores
* reorganized some code for simpler comparison of 68xx cores
2008-11-14 07:49:20 +00:00
Angelo Salese
1463838fdc Removed a vblank/hblank hack in Filetto and emulated it properly. 2008-11-14 00:46:34 +00:00
davidhay
a65d0450f6 more gals panic 3 work 2008-11-13 23:29:56 +00:00
davidhay
f56e314295 rearrange memory map in galpani3 a bit, to make things clearer 2008-11-13 22:59:07 +00:00
davidhay
737c060089 let gals panic 3 run more of it's attract mode 2008-11-13 22:43:00 +00:00
davidhay
52e6f0c7d0 new clone
----------
Beast Busters (US, Version 2) [Brian Hargrove]
(he hasn't confirmed if he's OK being credited with his real name yet, so if the situation changes I'll mail the list)

I've also DEMOTED Beast Busters to non-working.  As soon as you calibrate the guns the game fails, and without calibrated guns you can't really play.  The gun reading is hacked, as are the gun interrupts.  This needs fixing *properly*, at which poin I imagine it will actually work, and no just hang after calibration.  From what I can tell it's never worked after calibration hence the demotion.
2008-11-13 22:21:50 +00:00
stephh
d3046b899f "Fix" Mantis bug ID 02648 (BTNAB explanations). 2008-11-13 22:20:46 +00:00
Couriersud
a036befa08 Remove a #if 1 2008-11-13 21:52:38 +00:00
davidhay
a3686b9816 demo sound dip was inverted in jchan/jchan2 2008-11-13 21:20:05 +00:00
davidhay
17eea2a952 Fixed sound loading in jchan / jchan2 [Angelo Salese]
original dump was fine, there just needed to be a gap in the rom loading.. there are still some 'nasty' sounds, but this seems typical of our ymz280b emulation, I'm still pretty sure the ADPCM decode is broken, it must be 'special'.

I've also promoted them to playable.. so

New Playable Games
------------------

Jackie Chan - The Kung-Fu Master [David Haywood, Andreas Naive, stephh, Angelo Salese]
Jackie Chan in Fists of Fire [David Haywood, Andreas Naive, stephh, Angelo Salese]
2008-11-13 21:17:42 +00:00
davidhay
c13cd25c67 from MAMEPlus
this documents the CPS2 Phoenix sets, and what happens to a dead CPS2 board.

I think it's important we start keeping track of these now as they're finding their way onto bootleg boards, with further hacks and modifications made along the way.

Far from an ideal situation, but, our job is to document the facts, not discriminate by ignoring them.
2008-11-13 20:51:38 +00:00
stephh
3dccbb1adc Fixed Dip Switches and Inputs for 'jchan' and clone. 2008-11-13 20:12:09 +00:00
davidhay
392f4365c9 made sample area bigger in jchan (prevent out of bounds crashes) 2008-11-13 08:25:17 +00:00
Aaron Giles
62a2f2fba0 This patch:
- removed unnecessary deprecat.h includes
- replaces Machine with existing running_machine* instances
- re-adds a peroid I accidentally removed when changed a message to
use defines
- adds a running_machine* to win_window_info and debugwin_info to get
rid of most Machine occurances and clean up the running_machine*
parameters I added in the past

[Oliver Stoeneberg]
2008-11-13 07:33:00 +00:00
Aaron Giles
cbd240d0de This patch replaces the Machine parameter where an running_machine *
is available and removes the deprecat.h where unnecessary.

[Oliver Stoeneberg]
2008-11-13 07:23:50 +00:00
Aaron Giles
4af530d9e8 Hooked up disconnected reset functions. 2008-11-13 07:11:52 +00:00
Aaron Giles
eb08400613 From AtariAce:
With Aaron's change to macroize the cpu apis, the cpu/sound interfaces
are now using different idioms.  This patch fixes that.  It uses the
prefix SND_ instead of SOUND_, to avoid changing SOUND_START,
SOUND_RESET in driver.h.  While working on it, I noticed that the
reset routines for k053260, msm5205, upd7759 and vlm5030 aren't hooked
up, but I decided this was an oversight and macroized the functions
anyways (but left them unhooked).
2008-11-13 07:07:54 +00:00
Aaron Giles
63d10ee9bf Massive API cleanup/change. The primary goal is that all CPU-
related APIs now take a device pointer instead of an index.
All functions that take a CPU device are prefixed with cpu_*
All functions that are globally related to cpu execution
are prefixed with cpuexec_*. Below is a list of some of the 
mappings:

  cpu_boost_interleave     -> cpuexec_boost_interleave
  cpunum_suspend           -> cpu_suspend
  cpunum_resume            -> cpu_resume
  cpunum_is_suspended      -> cpu_is_suspended
  cpunum_get_clock         -> cpu_get_clock
  cpunum_set_clock         -> cpu_set_clock
  cpunum_get_clockscale    -> cpu_get_clockscale
  cpunum_set_clockscale    -> cpu_set_clockscale
  cpunum_get_localtime     -> cpu_get_local_time
  cpunum_gettotalcycles    -> cpu_get_total_cycles
  activecpu_eat_cycles     -> cpu_eat_cycles
  activecpu_adjust_icount  -> cpu_adjust_icount
  cpu_trigger              -> cpuexec_trigger
  cpu_triggertime          -> cpuexec_triggertime
  cpunum_set_input_line    -> cpu_set_input_line
  cpunum_set_irq_callback  -> cpu_set_irq_callback

In addition, a number of functions retain the same name but
now require a specific CPU parameter to be passed in:

  cpu_yield
  cpu_spin
  cpu_spinuntil_time
  cpu_spinuntil_int
  cpu_spinuntil_trigger
  cpu_triggerint

Merged cpuint.c into cpuexec.c. One side-effect of this
change is that driver reset callbacks are called AFTER the
CPUs and devices are reset. This means that if you make
changes to the CPU state and expect the reset vectors to
recognize the changes in your reset routine, you will need
to manually reset the CPU after making the change (since it
has already been reset).

Added a number of inline helper functions to cpuintrf.h for
managing addresses

Removed cpu_gettotalcpu(). This information is rarely needed
outside of the core and can be obtained by looking at the
machine->cpu[] array.

Changed CPU interrupt acknowledge callbacks to pass a CPU 
device instead of machine/cpunum pair.

Changed VBLANK and periodic timer callbacks to pass a CPU
device instead of machine/cpunum pair.

Renamed all information getters from cpu_* to cpu_get_* and
from cputype_* to cputype_get_*.
2008-11-13 06:59:57 +00:00
davidhay
451a03ff70 Kaneko update part 4:
gals panic 3 video improvements
2008-11-13 02:17:16 +00:00
davidhay
d567059cc7 Kaneko update part 3:
more Jackie Chan video improvements (view2 tilemaps)
2008-11-13 02:11:49 +00:00
davidhay
61a50d7642 Kaneko changes part 2
- some improvements to Jackie Chan video
2008-11-13 02:04:06 +00:00
davidhay
9d48421e71 Kaneko changes part 1
Added Simulation of Toybox external data rom decryption from Andreas
Converted Blood Warrior, Bonk's Adventure, Great 1000 Miles Rally 1+2 to use the new code.

Updated suprnova rendering to allow 2 sprite chips.

Started work on Jackie Chan & Gals Panic 3
2008-11-13 01:50:27 +00:00