Commit Graph

3169 Commits

Author SHA1 Message Date
Aaron Giles
9407fecd2d Populated tag and static_config parts of fake CPU device. Removed 'config'
parameter from CPU_INIT. Modified CPU cores to pull config from the device
static_config.
2008-11-09 07:12:24 +00:00
Roberto Zandona
70365a3886 i8x41: fixed missing space at the end of file 2008-11-09 06:23:36 +00:00
Couriersud
a65a044779 UPI-41/42 (still I8x41.c) changes:
* cpu/i8x41 should be renamed to UPI-4x, since UPI-41/42 was an intel chip family
  postponed for now until core moved to pointers.
* removed I8041 definition from mcs48
* removed I8x41 cpu definition and config struct
* added I8041, I8741, I8042, I8242 and I8742 cpus to i8x41.c
* added internal memory maps
* internal ram now uses DATA memory space
* updated drivers
* increased interleave to 70 in decocass. This fixes decocass hanging in countdown around 13
  No idea when this bug was introduced.
2008-11-09 02:09:40 +00:00
Aaron Giles
1e16c45212 Cleanups/version bump. 2008-11-09 01:04:37 +00:00
Aaron Giles
ac7689264e Star Castle drone sound improvement from Jim Hernandez. 2008-11-08 21:12:38 +00:00
Aaron Giles
5fc6083545 From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Friday, November 07, 2008 9:47 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] More header files for mame

Hi mamedev,

Here's another set of about 20 new include files for MAME.  As before,
the only issues discovered by the migration were some dead prototypes.

~aa
2008-11-08 21:09:42 +00:00
Aaron Giles
6a979c82ff From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Wednesday, November 05, 2008 7:21 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] New include files for drivers

Hi mamedev,

Here's a patch that adjusts a few existing include files, but
principally adds new include files for about twenty existing drivers.
This found a few dead prototypes, but otherwise didn't reveal any
errors.

~aa
2008-11-08 21:08:00 +00:00
Aaron Giles
096529d2d8 From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Wednesday, November 05, 2008 8:22 AM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Add ADDRESS_MAP_NAME macro

Hi mamedev,

In theory, MAME's interface macros should completely hide the naming
conventions from the drivers and sound/cpu cores.  So as an
experiment, I renamed all the core apis and looked to see what broke.
The most common api coupling was with address maps in the CPU cores,
which this patch addresses by introducing a new macro,
ADDRESS_MAP_NAME (mimicing what is done in devintrf.h).  There were a
handful of related problems in some drivers which this patch also
fixes.  Some remaining issues I left alone (laserdisk apis reference
rom, video_update, machine_config, ksys573 use of nvram_handler,
megadriv use of ipt), in principle all the apis need _NAME variants to
encode the conventions.

~aa
2008-11-08 21:06:35 +00:00
smf-
0a22e550b3 fixed unassigned variable error. 2008-11-08 20:01:52 +00:00
Aaron Giles
226c3b5b26 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Sent: Wednesday, November 05, 2008 1:53 AM
To: submit@mamedev.org
Subject: fix for MT 2626

Hi, 

enclosed please find a patch to fix missing buttons for crime fighter 2p (Button 3 and Start)

Regards,
   Fabio
2008-11-08 19:31:46 +00:00
Aaron Giles
edb3cec01e From: <razoola@cps2shock.com>
To: "Nicola Salmoria" <nicola.salmoria@virgilio.it>
Sent: Tuesday, November 04, 2008 5:48 PM
Subject: CPS2 driver.


> Hi,
>
> I have updated the CPS2 driver to bring all ROM names back in line with
> Capcom's naming system (which they print on the stickers). The changes are
> quite minor and include bringing the SIMM dump names into one format. Also
> included is a fix to Gigawing ROM names and Street Fighter Zero 2 Alpha,
> which ROM names broke after the split from Street Fighter Zero 2 in the
> last
> MAME update.
>
> I though it would be good to do this as the same seems to be going on in
> the
> NeoGeo driver. Around ten sets are affected in total.
>
> Regards, Raz
>
2008-11-08 19:31:08 +00:00
Aaron Giles
7054e5c3f3 From: abcd efgh [mailto:cix_999@yahoo.it]
Sent: Sunday, November 02, 2008 9:56 AM
To: submit@mamedev.org
Subject: expro02 missing?

Hi!

I don't know what is happened with my last diff, but this one fixed the missing part.
Bye Sonikos
2008-11-08 19:29:53 +00:00
Aaron Giles
274be4757c From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Sent: Saturday, November 01, 2008 7:14 PM
To: submit@mamedev.org
Subject: psycho nics oscar revision change

I changed Psicho Nics Oscar (japan revision 0) to (world revision 0)
since there is no japan disclaimer
2008-11-08 19:27:50 +00:00
Aaron Giles
b67d1cd7cb Dear Aaron,
please find herewith attached a new game dumped from Russia.
The PCB has been lent by "Soviet Arcade Games Museum" www.15kop.ru
Dump and diff by "Antro" (my Italian friend living in Moskow)

Snezhnaja Koroleva [Antro]
2008-11-08 19:26:42 +00:00
Angelo Salese
2d1fbafcdf Done some work on the Forte Card driver,not yet working. 2008-11-08 16:38:51 +00:00
davidhay
8d4cad0b8c minor 32x cleanup + comment 2008-11-08 15:11:50 +00:00
davidhay
7d5f7355a4 reorganized 32x code a bit. 2008-11-08 13:49:52 +00:00
Aaron Giles
2ba1a99283 Added macros for all CPU callbacks to ease future changes.
Updated all CPU cores to use them.
2008-11-08 09:20:43 +00:00
Andrew Gardner
e8ec5637ac Rewrite of the Motorola DSP56k CPU core. (Andrew Gardner, PhilB, RBelmont)
* Added proper clock speed to plygonet.c and internal divider to dsp56k.c
* Fixed up disassembler add/sub, 05xx, and bsr ops.
* Handle mysterious uuuuF instruction found in plygonet add op.
* Partially implemented add, sub, mac, mpy, inc, cmpm, macr, asr16, jscc, lea, and movec ops.
* Added dual X memory read and data move with short displacement parallel moves.
2008-11-08 07:18:03 +00:00
Couriersud
eed3bdac15 Merged DS5002FP into MCS51
* Merged DS5002FP
* Disassembler now uses type specific memory names
* Merged DS5002FP disasm
* added 83C751 memory names to disassembler
* delete DS5002FP specific files
* removed unnecessary cpu callback in wrally
* DATA_MAP ==> IO_MAP in wrally
2008-11-07 22:44:14 +00:00
Angelo Salese
109198d018 Various improvements in the ST-V driver:
* Fixed bitmap zooming in Virtual Mahjong 2 - My Fair Lady;
* Worked around a major graphic bug in ElanDoree;
* Added some missing alpha blending effects,Pro Mahjong Kiwame S title screen needs it but it doesn't work yet due to other problems (still investigating)
* Fixed a crash bug with Astra Super Stars when the debugger is active.

(this is to sync with svn tree,ST-V will be further improved on a later stage)
2008-11-07 17:20:54 +00:00
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