Commit Graph

2834 Commits

Author SHA1 Message Date
Aaron Giles
951ab24aaa From: Christophe Jaillet [mailto:christophe.jaillet@wanadoo.fr]
Subject: Profiler related #2 (v2)
Hi, this a revised version of a patch I sent yesterday.

This one is much more cleaner, and the speed improvement is now significant
enough to come out of the profiling noise.
More over, this one compiles correctly... ;-)

Best regards,
Christophe Jaillet
2008-08-28 08:41:56 +00:00
Aaron Giles
a27dbe428a Namco NB 1/2 work.
Shares the memory with the c75.
    Renames the c75 region to c7x from user4.
    Implements the c75 reset/halt control.
    Implements the irqs more correctly.

[From OG]
2008-08-28 08:38:42 +00:00
Aaron Giles
727c8323df From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: fix for MT 2135
This bug dates back to the introduction of the world parent set of rtype. 
Finally spotted and (easily) fixed in the attached patch. 

Regards,

    Fabio
2008-08-28 08:37:18 +00:00
Aaron Giles
8959f89d1a Revert change 2597 2008-08-28 08:29:56 +00:00
Aaron Giles
c71fbfc625 Changed slider controls into a menu. For now, removed the old direct access
mechanism; instead, you must access the sliders via the main menu. While in
the menu, you can use the ~ key to turn off the menu display and leave only
the bar display, in order to see more of the screen.
2008-08-28 08:25:06 +00:00
stephh
375ccafb6c Fixed Dip Switches and Inputs for 'jcross' and 'sgladiat'.
There's a remaining unknown Dip Switch in 'sgladiat' though (DSW2:7).
2008-08-28 00:36:59 +00:00
R. Belmont
dfdc8efc09 Fixed missing / causing major non-compiling. 2008-08-27 20:35:09 +00:00
Nicola Salmoria
f03d10d335 merged jcross.c into snk.c
fixed fg layer and visible area
the game seems to be ok now? is there still something wrong?
2008-08-27 13:39:09 +00:00
Nicola Salmoria
36c88b32dd merged sgladiat.c into snk.c
fixed shadows, visible area, tilemaps, inputs, etc.
00228: sgladiat: Emulation is missing some enemy sprites that are present on the pcb.
2008-08-27 08:57:20 +00:00
R. Belmont
dae4b631d7 SH4, Naomi, and Hikaru updates [Samuele Zannoli]
- Fixed SH-4 core to support multiple SH-4s
- Fixed LDCSR instruction
- Fixed SH-4 I/O ports
- Skeleton Hikaru driver with memory maps and both SH-4s
- Fixed JVS/Maple translation so Naomi 2 BIOS runs
2008-08-27 02:22:58 +00:00
R. Belmont
bfd0b53638 Fixed 64-bit GCC compile error. 2008-08-27 02:16:38 +00:00
Aaron Giles
cd299d9f8e Significant cleanup/rewrite of the MCS-48 CPU core:
* removed redundant and unused definitions from header file
 * renamed constants and functions to be MCS48* prefixed
 * re-verified all opcode behaviors and timing
 * changed illegal opcodes to count 1 cycle to avoid infinite loops
 * changed EA behavior so that it is a push from the driver instead of a pull on each opcode fetch 
    (this may change further in the future). 
 * reimplemented IRQ generation and timer behavior according to documentation
 * updated all drivers accordingly
 * fixed several uses of PULSE_LINE, which no longer works
2008-08-26 22:58:45 +00:00
Nicola Salmoria
8f409d6809 removed unused range from memory map 2008-08-26 19:23:12 +00:00
Nicola Salmoria
4ecbf842e9 Added new function tilemap_set_pen_data_offset().
While this isn't 'free' as tilemap_set_palette_offset() is (when the offset changes, the pixmap cache needs to be invalidated), it helps removing some redundant code from drivers.

Updated snk.c and snk68.c to take advantage of the new function.
2008-08-26 18:40:12 +00:00
Nicola Salmoria
dba36cfa30 moved ASO from hal21.c to snk.c
removed hacks, fixed bg color
2008-08-26 15:48:48 +00:00
Pierpaolo Prazzoli
aa70fd956a Changed Trivia Quest clocks based on some really old information 2008-08-26 13:45:26 +00:00
Nicola Salmoria
69d2176d95 snk.c rewrite (finished)
TouchDown Fever / Fighting Soccer
00870: tdfever: The siren sound keeps going off. I've got the pcb on the way to Guru if that helps any.
2008-08-26 10:49:42 +00:00
Aaron Giles
7f8e52388e 02147: Annoying behaviour of highlighted entries in minimal UI 2008-08-26 04:43:47 +00:00
Aaron Giles
ba60161f97 i8039 -> mcs48 2008-08-26 04:38:50 +00:00
Aaron Giles
6ccd121185 02159: cubeqst: Cubequest asserts on ATI hardware w/ prescale > 1
Added 1:1 fallback if surface creation fails at prescale values. Changed
prescale logic to create prescale target surfaces as ARGB for YUY2 
sources. Forced the use of render-to-texture over StretchRect for YUY2
sources.
2008-08-26 04:38:29 +00:00
Pierpaolo Prazzoli
dd914fb758 Decrypted Mahjong Shuang Long Qiang Zhu 2 and Mahjong Super Da Man Guan 2 2008-08-25 20:13:21 +00:00
Couriersud
96d622b677 rendersw.c: Added more comments
* fix clamping bug introduced by my last update
2008-08-25 20:10:08 +00:00
Roberto Zandona
58be08f089 fix TSY instruction in M4510 cpu (used in MESS) 2008-08-25 19:32:46 +00:00
Aaron Giles
3d339e51f7 Changed i8039 core to use the data address space for internal RAM.
Register access is still performed using direct memory accesses,
but the pointers are fetched through the memory system. Now you can
see i8039 RAM in the debugger. Added internal memory maps of the
appropriate size so that drivers don't need to declare this RAM.

Added a number of variants from the MCS-48 family as it was not
clear which variants had what capabilities. All documented variants
now have internal memory maps for internal ROM and RAM. Removed
memory maps from drivers using embedded ROM/EPROM/OTPROM since
they are defined by the core now.

Added some initial logic to boot and run the PR-8210 ROM (i8049)
in ldplayer.c. Currently this is disabled behind a compile-time
switch. Once this is working, the plan is to incorporate this into
the existing PR-8210 emulation, but we're not there yet.
2008-08-25 15:32:14 +00:00
Aaron Giles
4db67471be MSVC fixes. MSVC cannot handle offsetof(struct, member[index]); once an
array is involved, it seems to think it is not a constant expression.

Added MDRV_DEVICE_CONFIG_DATA32_EXPLICIT() macro which takes an explicit
size and offset. Changed MDRV_DEVICE_CONFIG_DATA32() to be built off of
this macro. Added MDRV_DEVICE_CONFIG_DATA32_ARRAY() and
MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER() which do explicit computations
of the offset to work around MSVC's problems.

Replicated these changes for DATA64 and DATAPTR macros. Updated latch8.h
to use the new macros.
2008-08-25 15:13:48 +00:00
Pierpaolo Prazzoli
8e44428b07 Used Nicola simplified formulas for Mahjong Man Guan Cai Shen decryption
Decrypted Mahjong Long Hu Zheng Ba 2 (set 1) and (set 2)
2008-08-25 15:05:01 +00:00
Andrew Gardner
4868576d3c Typo fixed in Simpsons readme. 2008-08-25 14:18:00 +00:00
smf-
8fc5baaaab Improved dip switch emulation in zn.c, ram hacks to get games booting are no longer required.
Added gun emulation for judge dredd.
Fixed judge dredd ide emulation when building with visual studio.
Mapped primal rage 2 inputs
Mapped player 3 & 4 inputs for 1 on 1 government, these are now the default with the 6 button inputs only mapped for games that need them.
Converted AT28C16 to a device.
Added preliminary support for devices to load/save nvram.

New games added or promoted from NOT_WORKING status

Super Football Champ (Ver 2.5O)
Super Football Champ (Ver 2.4J)
Magical Date / Magical Date - dokidoki kokuhaku daisakusen (Ver 2.02J)
Fighters' Impact (Ver 2.02O)
Judge Dredd (Rev C Dec. 17 1997)
Judge Dredd (Rev B Nov. 26 1997)
2008-08-25 09:52:26 +00:00
Andrew Gardner
aa4d5b369e Adds readme for The Simpsons.
Please credit Guru.
2008-08-25 05:38:36 +00:00
Couriersud
5e6fdaec16 Slight optimization of ycc_to_rgb 2008-08-24 23:41:46 +00:00
Couriersud
4d444b5b4a latch8: Renamed MDRV_LATCH8_MASK and added MDRV_LATCH8_INVERT
* renamed MDRV_LATCH8_MASK to MDRV_LATCH8_MASKOUT to clarify meaning
* Added MDRV_LATCH8_NOSYNC to specify which lines do not reed a cpu sync
* Updated drivers

The MDRV_LATCH8_NOSYNC is not used in dkong.c. All latches need synchronization
because at least one line does need a cpu synchronization.
2008-08-24 17:39:06 +00:00
Pierpaolo Prazzoli
04dd24b41d Simplified Mahjong Man Guan Cai Shen decryption (maybe there were some fixes too) 2008-08-24 13:18:17 +00:00
Roberto Zandona
65a96e4f7a some fix for m4510 core 2008-08-24 11:55:22 +00:00
Roberto Zandona
bfc0c6a5b2 some fix for m4510 core:
- banking in read and write operations
- jsr and jsrx instruction
2008-08-23 10:00:59 +00:00
Roberto Zandona
73e2b28ee0 updated memory map 2008-08-22 21:43:47 +00:00
Couriersud
e972cc1644 dkong & friends: Use new latch device
* adds new latch device where appropriate
* increased accuracy since now all main/sound cpu communications are properly latched
* removed quite some code as a consequence
* minor cosmetic edits
2008-08-22 21:29:11 +00:00
Couriersud
d8d031e8d3 Adds new generic latch device
8 bit latch interface and emulation
    
    Generic emulation of 74LS174/175, 74LS259 and other latches.
    Apart from providing synched latch operation, these
    latches can be configured to read their input bitwise from other
    devices as well and individual bits can be connected to
    discrete nodes.
    
    Please see audio/dkong.c for examples.
2008-08-22 21:25:49 +00:00
Couriersud
85e674d7fb 02142: centipdb, magworm, millpac: No Sound
* adjusted output volumes
2008-08-22 20:27:42 +00:00
Nicola Salmoria
06f9e52292 02150: spacegun: Missing crosshairs 2008-08-22 19:41:55 +00:00
Nicola Salmoria
5a14b6f516 snk.c rewrite (WIP)
fixed sprite-sprite priorities
2008-08-22 18:55:28 +00:00
Roberto Zandona
c4e22005eb removed a printf 2008-08-22 18:47:28 +00:00
Roberto Zandona
2b5bea71f4 some cleanup 2008-08-22 18:45:19 +00:00
Nicola Salmoria
c45d9ff0cd snk.c rewrite (WIP)
Chopper I
2008-08-22 18:15:52 +00:00
Nicola Salmoria
ec31b1d659 snk.c rewrite (WIP)
Psycho Soldier
the usual drill, nothing special about this
2008-08-22 17:19:09 +00:00
Nicola Salmoria
a87f670330 snk.c rewrite (WIP)
Bermuda Triangle / World Wars
removed ROM patches
simulated "turbo front" check
renamed bermudao->bermudaj
clarified the relationship between the four sets
made World Wars a main set instead of a clone of Bermuda Triangle
tliemaps, proper memory maps, inputs, etc.
2008-08-22 12:32:58 +00:00
Couriersud
9ff05871dc discrete.c: Added save state for node->output
* Ensures that input nodes survive save states
2008-08-22 11:05:21 +00:00
Pierpaolo Prazzoli
2443be6c3c Changed some decryptions in igs_blit.c to use program roms loaded byteswapped
Fixed vector table decryption in Mahjong Man Guan Cai Shen
2008-08-22 10:37:34 +00:00
Derrick Renaud
8a8e197eae added Discrete Sound for Starship 1. I still need to properly emulate the MC3340. 2008-08-22 03:51:26 +00:00
Aaron Giles
c50b07d391 From: john_rieman_la@yahoo.com [john_rieman_la@yahoo.com]
First of all thank you thank you thank you for all the hard work :-)

If I find that MAME is listing the wrong joystick type for a game where 
should I report it?

Journey (journey) and Domino Man (domino) are both listed as 8-way, but 
the manuals for both games show them being 4-way (they both have the 
exact same joystick as Ms. Pac-Man).


Parts manuals:

Domino Man

http://arcarc.xmission.com/PDF_Arcade_Bally_Midway/Domino_Man_Parts_and_Operating_Manual_(Nov_1982).pdf

Journey

http://arcarc.xmission.com/PDF_Arcade_Bally_Midway/Journey_Parts_and_Operating_Manual_(May%201983).pdf
2008-08-22 02:48:19 +00:00
Aaron Giles
2861244974 Author: Olivier Galibert <galibert@pobox.com>
Date:   Thu Aug 21 11:31:19 2008 +0200

    Outrun irq fix
   
    The level 6 irq happens only when both irq2 and irq4 line are active,
    not when either is, obviously.
2008-08-22 02:46:24 +00:00