Commit Graph

3498 Commits

Author SHA1 Message Date
Aaron Giles
e1aca15f22 More 68000 cleanup. 2008-11-07 14:46:20 +00:00
Aaron Giles
127f85b517 Fixed 68020+ 2008-11-07 14:30:45 +00:00
Yasuhiro Ogawa
7ec608af23 fixed background color of srmp1/srmp2 (by EdxGROfS0) 2008-11-07 07:31:54 +00:00
Aaron Giles
c9d4c8dad4 Minor fixes. 2008-11-07 06:17:58 +00:00
Couriersud
e6b9dd6ef7 Fix a reg-ex replace issue - Thx Andrew Gardner! 2008-11-07 00:37:41 +00:00
Couriersud
e4550f0b66 "Pointer"-ified the 6502
* a perfect candidate for a code merge. Replication all over the place.
2008-11-07 00:07:57 +00:00
davidhay
42c486632b i386 seems to already be defined by the compiler? changed to _i386 2008-11-06 22:59:43 +00:00
Couriersud
bc35b2d9e9 Some more gcc 64bit tranquilizers 2008-11-06 22:53:42 +00:00
Couriersud
552fc58ce5 Fix 64 bit compile
* Aaron, please review my change.
2008-11-06 20:44:41 +00:00
Aaron Giles
b44da3b748 WARNING: This is a significant change. If you are risk-averse and
working on something, hold off syncing.

Defined macros for core CPU functions: CPU_INIT, CPU_RESET, CPU_EXIT,
CPU_EXECUTE, along with macros for the name and for calling, in the
spirit of the devintrf.h macros. More will come later.

Changed init, reset, exit, and execute interfaces to be passed a
const device_config * object. This is a fake object for the moment,
but encapsulates the machine pointer and token. Eventually this will
be a real device.

Changed the CPU IRQ callbacks to a proper type, and added a device
parameter to them.

Updated all CPU cores to the new macros and parameters.

Note that this changes the way we "pointer"-ify cores. I'll send an
update shortly.
2008-11-06 18:42:37 +00:00
Aaron Giles
1228d0ad9e Fixed a few issues caught by an MSVC compile (why doesn't gcc complain??) 2008-11-06 15:44:58 +00:00
davidhay
3d15bc42d0 32x changes which benefit tempo 2008-11-06 11:02:52 +00:00
Aaron Giles
bf2501e3b7 Removed a bunch of useless macros. Consolidated several others.
Standardized on MAME types. Defined uint/sint to be 32-bits
rather than all this target platform guessing about how many
bits are in an int.
2008-11-06 10:38:54 +00:00
Aaron Giles
67db279bb2 Fixed compilation issues with 68000 changes.
Began the process of pruning options from the 68000 core, hard-coding it
for MAME's needs. We've hacked on it sufficiently that it is no longer
generic, so this is a good opportunity to simplify the code so that it
can actually be followed.
2008-11-06 10:17:31 +00:00
Aaron Giles
31ae2af798 "Pointer"-ified the 68000. What a mess!
There are a few remaining globals; we'll get them later.
2008-11-06 09:32:27 +00:00
Aaron Giles
cfad1bef05 Re-added suspend/resume synchronization to fix a few games. 2008-11-06 07:08:18 +00:00
Aaron Giles
2e8af3ea7e "Pointer"-ified the ADSP-21xx core. 2008-11-06 07:01:14 +00:00
Aaron Giles
28d48b383c Fixed bug in new quantum code that could result in an invalid
interleave of 0 being used. Fixes problems with stv games.
2008-11-06 06:05:44 +00:00
Aaron Giles
c0770e14ce Changed core cycle computations to use div_64x32 instead of full 64-bit
divides. This involves tossing a few bits of resolution at divide time,
but should make no real difference in practice.
2008-11-05 16:52:52 +00:00
Aaron Giles
49452d9473 Oops, didn't mean to check in the digdug hack for perfect interleave. 2008-11-05 16:50:52 +00:00
Aaron Giles
94233e688d Fix bad bug in scheduler quantum code. 2008-11-05 16:37:40 +00:00
Aaron Giles
a33640f46d Added concept of scheduling quanta to the timer system. Also added
means of setting the minimum useful scheduling quantum, and clamping
all quanta to that value.

Changed interleave/boost handling to use scheduling quanta instead
of timers.

Added machine parameter to cpu_boost_interleave.

Updated cpuexec to compute the "perfect" interleave value taking into
account the minimum number of cycles per instruction specified by the
CPU core. Updated Z80 core to indicate that the minimum cpi is 2. Fixed
incorrect minimum cpi in the 68020+ cores.

Simplified a bit of logic in cpuexec_timeslice.
2008-11-05 16:04:56 +00:00
Couriersud
82c3ffc153 "Pointer-ified" the mcs51 core 2008-11-05 00:10:21 +00:00
Couriersud
94e16603c5 "Pointer-ified" the mcs48 core 2008-11-04 23:19:16 +00:00
Angelo Salese
62195dc9a0 Fixed coinage in Speed Attack! and cleaned-up the driver to current standards.
(And added a re-write note to Speed Attack and Yumefuda drivers)
2008-11-04 20:41:25 +00:00
Aaron Giles
62d7168295 Pointer-ified the R3000 core. 2008-11-04 15:24:49 +00:00
Aaron Giles
d060c4694b "Pointer-ified" the Z80 core as an example for testing. 2008-11-04 14:57:03 +00:00
Curt Coder
7d4023e2c4 [MC6845] Reverted all changes. 2008-11-04 11:52:42 +00:00
davidhay
6fb55dfbf7 added 32x rendering 'mode 2' (15bpp) 2008-11-04 08:40:41 +00:00
Aaron Giles
79f8cc1cf8 From: Micko [mailto:mmicko@gmail.com]
Sent: Sunday, November 02, 2008 1:04 AM
To: Aaron Giles
Subject: Z80 CPU change

Hello Aaron,
 
For a long time there was undiscovered internal register (MEMPTR) inside Z80 CPU which was visible by using BIT n,(HL) instruction in undocumented bits of flag, in
last few months lot of things have been discovered by team of Russian programmers. There was a test on real machine which showed status of flags after each instruction.
I am sending you now patch for Z80 with MEMPTR implemented, there is also one more bug fixed (BIT 6,(XY+o) was not implemented good it used BIT 4,(XY+o) code).
 
As a proof that things are now valid, I am sending screens before patch on Z80 cpu core, and after with compare of results on real machine.
I am also sending you a TZX file (for ZX Spectrum) since tests are done inside that driver.
 
Please inform me about status. Hope this could fix some issues in drivers using Z80, since some games used this flags.
 
Regards,
Miodrag Milanovic
2008-11-04 06:10:20 +00:00
Aaron Giles
7d291c792f Re-inlined core attotime functions. This makes a significant difference
when running with high interleaves (~2x speed running Dig Dug at perfect
interleave).
2008-11-04 05:45:54 +00:00
Couriersud
807a9b1014 Hooked up 6845
* Hooked up 6845 in a daisy chain way into existing "6845 emulation"
* Clocks from schematics
* Video size issues - 6845 code related, discussion started on list
2008-11-03 23:49:51 +00:00
Couriersud
bf4bfe8b86 Removed some printf debugging and added some more DS5002FP code 2008-11-03 23:08:38 +00:00
stephh
ac727bcca6 Added Dip locations for 'exprraid' and clones.
Added Dip locations for 'gyruss' and clones.
2008-11-03 18:27:28 +00:00
Pierpaolo Prazzoli
ac65d98ddb Fixed bug 02618: samuraia and clones: No SFX sound 2008-11-03 18:20:57 +00:00
Aaron Giles
c6a7299b4e 02544: Dip Condition / Port Include limitation 2008-11-03 10:01:43 +00:00
Curt Coder
086cc0d047 [MC6845] Fixed display enable. 2008-11-03 09:56:09 +00:00
Aaron Giles
7038a72e76 Converted toobin to RGB32 to allow for mid-screen palette updates.
Also added correct video timing and full memory map, and connected
watchdog.
2008-11-03 09:41:03 +00:00
Aaron Giles
abf8eafc47 02607: frogs: Taking a screenshot in Frogs (Gremlin) exits the game with an error. 2008-11-03 08:31:39 +00:00
Yasuhiro Ogawa
bf4f376e9b allows YM2203C to be heard by default.
Credit Jim H.
2008-11-03 03:08:08 +00:00
R. Belmont
8d3e0e1ba2 Small Naomi update
AICA: fix missing instruments in DTPK driver games [R. Belmont, Deunan Knute, kingshriek]

Naomi: unmapped words in the AICA address range must read as zero [R. Belmont]

With these changes Toy Fighter's music is much better.
2008-11-03 02:58:59 +00:00
Couriersud
f9029d88a5 Irem M10: first results from schematics
* Updated video timing and cpu/pixel clocks
* Rewrote irq for m10/m11 to use two 74LS123
2008-11-03 01:19:51 +00:00
Couriersud
17b6c56de9 74123 Fixes:
* Clear behaviour to follow datasheet.
* Avoid recursive calls when setting a/b/clear lines from callback
2008-11-03 01:16:39 +00:00
davidhay
b29e06704b added 32x DRAM clear, needed by 32x tempo, pitfall, primal rage 2008-11-03 00:50:46 +00:00
davidhay
45a29c2c22 added RLE mode to 32x renderer, needed by brutal intro 2008-11-02 23:06:53 +00:00
stephh
4f157ee1b4 Fixed Dip Switches for all games in halleys.c driver.
Added Dip locations for 'halleys' and clones.
2008-11-02 22:33:19 +00:00
Couriersud
ec60d29846 Changed 74123 into a device 2008-11-02 21:55:06 +00:00
davidhay
b11d133ccc current 32x code 2008-11-02 21:21:46 +00:00
Aaron Giles
a769919540 Missed file from AtariAce. 2008-11-02 03:15:38 +00:00
Aaron Giles
0c35694668 Oops, not ready for these yet. 2008-11-02 03:15:03 +00:00