Commit Graph

3623 Commits

Author SHA1 Message Date
Aaron Giles
9ff9434146 Removed safe_cpu_get_pc() which doesn't really make sense anymore.
Moved cpu_execute() to be an inline function.
2008-12-11 10:49:25 +00:00
Aaron Giles
04ae2d8bc7 Removed get context/set context calls from the CPU interface entirely.
Pointer-ified the TMS99xx core (missed that one!)
2008-12-11 10:21:52 +00:00
Aaron Giles
d87ef8f79b Here's the big one....
Added new function cpuexec_describe_context(machine) which can be
used in logerror() and other printf-style functions to return a
description of the current CPU/PC given only the machine. Changed
several dozen sites to use this instead of directly interrogating
the activecpu.

Removed all other uses of activecpu throughout the system. Removed
activecpu from the machine structure to prevent future abuse.

Removed cpu_push_context() and cpu_pop_context(), and all call
sites.

Voodoo devices now require a CPU to be defined in the configuration
in order to know whom to steal cycles from or stall when FIFOs get
full. Updated all voodoo users to specify one.

CPD1869 devices now also require a CPU to be defined in the
configuration, in order to know which CPU's registers to fetch.
Updated all cdp1869 users to specify one.

Many other small changes to make this all work.
2008-12-11 09:40:22 +00:00
Nicola Salmoria
c8944548df relax oki 6295 command validity check 2008-12-11 08:47:15 +00:00
Quench
922ea8052f Pointer-ified the PIC16C5x core. 2008-12-11 06:52:59 +00:00
Quench
51ea0b3e29 Pointer-ified the TMS32010 core. 2008-12-11 06:29:44 +00:00
Aaron Giles
506da3c432 From: Atari Ace [atari_ace@verizon.net]
Sent: Wednesday, December 10, 2008 9:27 AM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Add machine to some emu/machine init methods

Hi mamedev,

This patch widens some machine init interfaces to pass the machine
parameter, allowing more Machine global references to be eliminated.
Eventually most of these need to be converted to devices, but this
change reduces the deprecation surface in the meantime.  I also
attached the script I used to do the initial changes to the drivers,
which handled about 90% of the cases without further editing.

~aa
2008-12-11 03:39:20 +00:00
Angelo Salese
4c0948ce00 Fixed a status bit issue with Bra$il / Fashion to let them work + various input/output fixes for Fashion (which uses different coin lockout hook-up)
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Bra$il / Fashion [Angelo Salese]
2008-12-10 21:12:15 +00:00
Roberto Fresca
ce581f3062 Added Europa 2002 Space to the italian gambling games based on H8/3048 + OKI 6295. Also added game and dumper notes.
New clones added
----------------
Europa 2002 Space (Ver 3.0) [Roberto Fresca]
2008-12-10 19:12:54 +00:00
Aaron Giles
bf7875e7ee Pointer-ified the sc61860 core. 2008-12-10 18:37:47 +00:00
Aaron Giles
dcdfd96f1a Pointer-ified the saturn core. 2008-12-10 18:24:50 +00:00
Roberto Zandona
b3d12a2258 updated adp driver: now fashiong show something 2008-12-10 18:17:18 +00:00
Angelo Salese
4581ef6000 Fixed visible area in Super Pool 99 driver. 2008-12-10 18:12:37 +00:00
Aaron Giles
864cc4513b Pointer-ified the PDP1 core. 2008-12-10 18:04:15 +00:00
Aaron Giles
ebaf684f2e Enabled all CPU cores/variants. Fixed compile issue revealed as a result. 2008-12-10 17:55:49 +00:00
Aaron Giles
540f1eefb4 Pointer-ified the lr35902 core. 2008-12-10 17:50:50 +00:00
Aaron Giles
5f39c19227 Fix compile error. 2008-12-10 17:41:30 +00:00
Aaron Giles
258b16c5d1 Pointer-ified the lh5801 core. 2008-12-10 17:40:54 +00:00
Aaron Giles
92602c58d5 Pointer-ified the cp1610 core. 2008-12-10 17:29:27 +00:00
Aaron Giles
953465543b Fatalerror in non-debug builds too. 2008-12-10 17:16:16 +00:00
Aaron Giles
b0136c9952 Pointer-ified the MC68HC11 core. 2008-12-10 17:16:04 +00:00
Aaron Giles
eadc13bd94 Pointer-ified the TMS32051 core. 2008-12-10 17:06:51 +00:00
Angelo Salese
0b35ca1c1d Wrote a driver for Super Pool 99 (versions 0.36 & 0.31),working with small problems. [David Haywood,Angelo Salese]
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Super Pool 99 [David Haywood,Angelo Salese]
2008-12-10 16:59:04 +00:00
Aaron Giles
29d3c3c033 Pointer-ified the upd7810 core. 2008-12-10 16:52:52 +00:00
Aaron Giles
9824c667e4 Pointer-ified the sh4 core. 2008-12-10 16:40:57 +00:00
Aaron Giles
b5705a5322 Pointer-ified the sh2drc. 2008-12-10 16:07:34 +00:00
Roberto Fresca
5a15a2182a Improvements to Millennium 4000 driver.
- Completed normal Inputs/Outputs.
- Added button-lamps calculation.
- Created button-lamps layout.
- Documented the PCB RAM.
- Fixed NVRAM size based on PCB picture (2x CY62256L-70PC near the battery).
- Added notes about the method to make appear the real poker cards.
- Fixed the OKI 6295 frequency (1000 kHz resonator near). Now the game has more decent sounds.
- Corrected CPU clock to 12 MHz. (main Xtal).
2008-12-10 15:32:08 +00:00
Aaron Giles
8b670ddddd Pointer-ified the tms7000 core. 2008-12-10 14:55:39 +00:00
Aaron Giles
8aea6e2b4f s/cpustate->([ch])/filename.\1/ 2008-12-10 14:37:44 +00:00
Wilbert Pol
de1c2646c2 Added missing address space lookups. 2008-12-10 09:00:14 +00:00
Aaron Giles
e2a760bcbd From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Tuesday, December 09, 2008 8:13 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Add device parameter to stream_create()

Hi mamedev,

This patch adds the sound device to the parameters passed to
stream_create so that the global Machine can be removed from
streams.c.  It assumes my previous patch which added CUSTOM_START and
SAMPLES_START has been applied.

~aa
2008-12-10 06:31:23 +00:00
Aaron Giles
b98c709380 Pointer-ified the mb86233 core. 2008-12-10 06:15:38 +00:00
Aaron Giles
0dcdc62b8d Pointer-ified the MB88 core. 2008-12-10 06:07:41 +00:00
Aaron Giles
bb8b6609b6 Pointer-ified the RSP core. 2008-12-10 06:04:18 +00:00
Aaron Giles
942a56edb9 Pointer-ified the apexc core (whatever that is :) 2008-12-10 05:51:37 +00:00
Aaron Giles
b99f7aef26 Pointer-ified the 8085 core. 2008-12-10 05:47:19 +00:00
Aaron Giles
9de8dad60d Pointer-ified the alpha-8201 2008-12-10 05:29:29 +00:00
Aaron Giles
36d63663d3 Pointer-ified the i386. 2008-12-10 05:14:09 +00:00
Roberto Fresca
129c08982e Fixed Mantis 02724.(All games using the s903mod machine display the message: Unable to locate input port 'SW2')
Removed the ACIA 6850 device from modified system 903 hardware.
2008-12-09 20:02:19 +00:00
Aaron Giles
89e14c632f Pointer-ified the i86/i286 cores.
Removed unused v20/v30 implementation.
2008-12-09 15:39:20 +00:00
Aaron Giles
12415fcdcb Pointer-ified the cubeqst CPUs. 2008-12-09 14:49:16 +00:00
Wilbert Pol
5bbd1b8e1c Added MDRV_DMA8237_ADD macro. 2008-12-09 10:13:33 +00:00
Wilbert Pol
a32c38ad02 Added MDRV_PIT8353_ADD and MDRV_PIT8254_ADD macros. 2008-12-09 09:41:24 +00:00
Wilbert Pol
e7a63caaec Added MDRV_PIC8259_ADD macro. 2008-12-09 09:21:07 +00:00
Aaron Giles
e62a46a8ee generic_pulse_line() now takes into account clock scaling and minimum cycles. 2008-12-09 07:31:46 +00:00
Aaron Giles
b319755f9e Added wrappers for ADSP21xx callbacks. Added device parameters to them.
Updated IRQ setters to use generic_pulse_irq_line().
2008-12-09 07:13:21 +00:00
Aaron Giles
13bdc84fff Compile fix. 2008-12-09 06:50:18 +00:00
Aaron Giles
35b6d98757 Oops forgot a file. 2008-12-09 06:36:41 +00:00
Aaron Giles
ec8caea251 Completed pointer-izing the 6502 cores. Removed h6280 SET_CONTEXT calls. 2008-12-09 06:36:30 +00:00
Aaron Giles
98d7204262 From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Monday, December 08, 2008 10:05 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] More Machine cleanups

Hi mamdev,

This patch picks up where my last patch left off, and tries to fix the
widely used konamiic/taitoic/deco16ic/segaic16 video cores to no
longer reference Machine.  Basically plumbing through screen or
machine as appropriate in lots of drivers.

Note: The taito_l change fixes a dumb typo in taito_chardef14_m in my
last patch that I would have caught with a proper header file, which
I've now added.

~aa
2008-12-09 06:29:18 +00:00