Commit Graph

3229 Commits

Author SHA1 Message Date
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
Couriersud
00ac825a67 Fix state save in discrete sound
* sndindex now considered as well in state save
* expose discrete_sound_n_r(void *chip, ...) to enable accessing multiple discrete sound cores

Curt Coder, is this sufficient?
2008-11-12 22:12:44 +00:00
stephh
7745124dc6 Fixed Dip Switches for 'joyfulr' and clone. 2008-11-12 22:11:57 +00:00
stephh
0e4d375955 Fixed Dip Switches for 'momoko'. 2008-11-12 18:09:55 +00:00
Couriersud
6fae8bbbfa abc_step and abc_reset now declared as DISCRETE_STEP( abc ) and DISCRETE_RESET( abc ) 2008-11-12 00:27:42 +00:00
Couriersud
6d2d7b9290 Remove ds5002fp folder 2008-11-11 23:19:07 +00:00
Couriersud
7368532498 peplus.c updates
* changed the 6845 type to R6545_1 (Rockwell as mentioned in the driver).
* use transparent addressing
* lightpen code now generates a "lightpen_assert" at the right screen position. 
* Completely hooked up 6545 without wrappers.
2008-11-11 22:26:39 +00:00
Couriersud
08f0fa3f6c Transparent mc6545 phi1/pi2 addressing
* implemented support for phi1/phi2 transparent addressing
* added callback to communicate address back to driver

Implementation is not and can not be "clock" accurate since the timing is totally up to the hardware implementation. It is the main cpu and hardware which determines phi clocking and when data is written to video ram. The only support in the 6545 is that the update address is latched out to the ma lines during phi2.
2008-11-11 22:23:08 +00:00
Angelo Salese
5612216269 Added the Vs. Skate Kids set.
(program roms are identical to Vs. Super Mario Bros. (alt),just the graphical roms are completely reworked,I don't know if it is worth supporting...)

(PS: do not credit me on this)
2008-11-11 16:42:26 +00:00
stephh
954efd1fba Fixed Dip Switches for all games in mermaid.c driver. 2008-11-11 04:07:48 +00:00
Nathan Woods
2f64840531 Sync with MESS 2008-11-11 03:58:52 +00:00
stephh
5590dc71fe Oops ... I checked the old version instead of the new one :( Sorry again ... 2008-11-10 22:26:51 +00:00
stephh
9f7d6fddec Fixed Dip Switches for 'magmax'. 2008-11-10 22:16:08 +00:00
stephh
37a9c85f4d Fixed Dip Switches for 'lkage' and clones.
Fixed bootlegs visible area to match original sets.
2008-11-10 18:41:18 +00:00
Aaron Giles
c3d385fddd Converted TMS340x0 cores to be pointer-based. 2008-11-10 16:49:10 +00:00
Aaron Giles
5b96808e6d Fix compile error. 2008-11-10 16:01:18 +00:00
Aaron Giles
b5f1e96c98 Removed save_device pattern if favor of just accepting the
device from the reset.
2008-11-10 08:56:38 +00:00
Aaron Giles
6f4ee44948 Added CPU device parameters to all CPU callbacks except for the
context ones (which are going away), the disassembler (which should
have no dependencies on the live CPU), and the validity check.

Removed global token from all pointer-ified CPU cores that don't
have internal read/write callbacks (which still need to reference it).
2008-11-10 08:51:06 +00:00
Aaron Giles
92f3053105 Major cpuintrf changes:
* added a set of cpu_* calls which accept a CPU device object;
  these are now the preferred means of manipulating a CPU

* removed the cpunum_* calls; added an array of cpu[] to the
  running_machine object; converted all existing cpunum_* calls
  to cpu_* calls, pulling the CPU device object from the new
  array in the running_machine

* removed the activecpu_* calls; added an activecpu member to
  the running_machine object; converted all existing activecpu_*
  calls to cpu_* calls, pulling the active CPU device object
  from the running_machine

* changed cpuintrf_push_context() to cpu_push_context(), taking
  a CPU object pointer; changed cpuintrf_pop_context() to
  cpu_pop_context(); eventually these will go away

* many other similar changes moving toward a model where all CPU
  references are done by the CPU object and not by index
2008-11-10 07:42:09 +00:00
Angelo Salese
7c2bd582be small bugfix for the Tetris sub-game in Filetto 2008-11-10 00:31:12 +00:00