Commit Graph

1603 Commits

Author SHA1 Message Date
R. Belmont
0678d0dd22 Fix World Rally MCU comms on big-endian. 2008-05-21 04:39:08 +00:00
Andrew Gardner
7f626074a1 Reverts the Readme addition to dgpix.c
Didn't notice it was already down there by the ROM_START macros.
2008-05-21 04:25:18 +00:00
Couriersud
e3ad59550d 01814: YM2608 games (tail2nos, sformula, wc90, mechatt): Only basic music, no more samples
* added AY8910_SINGLE_OUTPUT to enable *all* channels - ouch
2008-05-20 23:51:22 +00:00
Jonathan Gevaryahu
009fcb7b7c Added proper interpolation sub-cycles ('PC' cycles and A/B subcycles of each) to tms5110 and updated comments. Also added code to update lfsr 20 times instead of once per sample, so it matches the real chip. Updated tms5110 to use shifts instead of divides during interpolation. 2008-05-20 04:38:56 +00:00
Andrew Gardner
acb49a19dc Adds Guru Readme to DGPix driver.
I was able to clean up 24 meg of already-emulated ROMs from /roms/unemulated/Misc.  Only one of the sets had a readme that wasn't in MAME.

I have a local copy of discoboy.zip, FishingManiac3.zip, PashaPasha2.zip, and PashaPasha2_redump.zip, and will continue to keep these around in case anyone needs them.
2008-05-20 04:30:04 +00:00
Jonathan Gevaryahu
ae6bf98511 Added proper interpolation sub-cycles ('PC' cycles and A/B subcycles of each) and updated comments 2008-05-20 01:53:25 +00:00
Aaron Giles
3c6278aef8 Fix crasher in drcfe.c. 2008-05-20 00:59:20 +00:00
Aaron Giles
fdf128e2d7 Implemented IDT instructions. All invalid instruction asserts are now runtime-only. 2008-05-20 00:22:50 +00:00
Wilbert Pol
50ec9b1076 Fixed 80286 databus widths. 2008-05-19 19:43:17 +00:00
R. Belmont
071164f3a7 64-bit GCC compile fix. 2008-05-19 17:10:32 +00:00
Aaron Giles
d411c2c74c Numerous MIPS3 DRC updates:
* Fixed front-end so that virtual no-op instructions are still targeted
as branch targets.

* Fixed front-end to mark the beginning of each sequence as needing TLB
validation, since any sequence can be jumped to from anywhere.

* Redid the MIPS3 TLB implementation. Fixed the exception vector and
type handling. Changed the bitfields to directly map from the MIPS TLB
format. Added distinction between TLB fill and TLB valid/modified
exceptions.

* Added separate modes for user, supervisor, and kernel modes. Each mode
does proper verification of addresses now and generates address errors
for invalid accesses.

* Fixed several bugs in the TLB implementation; not everything works
yet but it's a lot closer.

* Made COP0 access checking mandatory in non-kernel modes.

* Fixed several crashes when recompiling virtual no-ops.

* Fixed TLB bug where entries for virtual address 0 were present by 
default.

* Fixed bug in the map variable implementation that would sometimes
result in incorrectly recovered values.
2008-05-19 16:58:42 +00:00
Curt Coder
d41a31dd12 Fixed CDP1869 character memory access, and Cidelsa sprite flashing. 2008-05-19 15:38:19 +00:00
R. Belmont
ef6d13be04 Fix N64 rendering on big-endian targets. 2008-05-19 02:37:09 +00:00
R. Belmont
8d210c82b5 Fixed compiler warning for Apple GCC. 2008-05-19 02:03:59 +00:00
Aaron Giles
969a705508 Added back-end validation mechanism, and a handful of tests as examples.
This will be expanded in the future.

Added two new opcodes: SAVE and RESTORE to save and restore the entire
virtual machine state for examination/setup.

Added new back-end function get_info() which returns information from
the back-end about how many actual registers will be mapped.

Fixed a bug that mapped the high a low parts of registers to the same
address. This should help the C back-end run better on big-endian
architectures.
2008-05-19 00:58:16 +00:00
davidhay
383c7daf62 adds Beauty Block, non-working. I had it displaying something at one point, but nothing correct. Maybe there is some kind of protection? I haven't been able to figure it out. 2008-05-18 21:49:07 +00:00
davidhay
b08d2e9947 undo accidental change, we can't enable the full bios on suprnova yet, it's still broken. 2008-05-18 20:11:58 +00:00
davidhay
9b467f4e1c spikes91 sprite colours.. without resorting to hacks. 2008-05-18 20:11:16 +00:00
davidhay
00e72579a8 adds Gals Panic SU (Korea) (credit The Guru) 2008-05-18 19:54:52 +00:00
Aaron Giles
1c33c2f29b Fixed crash when reading ports by tag, when some ports don't have tags. 2008-05-18 14:21:28 +00:00
Nathan Woods
d2123b2803 Passing running_machine* parameter 2008-05-17 22:42:22 +00:00
Aaron Giles
28855e088a Fixed a couple of obvious errors in the TLB implementation. 2008-05-17 19:48:17 +00:00
Aaron Giles
0c1aaf1526 Added some instrumentation for the MMU. To enable it, turn on PRINTF_MMU at the top
of the file. Currently it is left on because none of the MAME games rely on it.
2008-05-17 17:11:12 +00:00
Manuel Abadia
8f9d964411 Mirko Mattioli input changes have been verified.
He has the Atari manual that clearly says that the game has one pedal (accel) and the gear shift.

He has done some tests between the PCB and driver and now both behave the same.

Sorry if I caused some confusion...
2008-05-17 13:42:28 +00:00
Manuel Abadia
62cfcc09be fixed copy paste error in the latest commit 2008-05-17 08:55:47 +00:00
Manuel Abadia
976ceb9113 Added wheel support by Mirko Mattioli. However what he calls shift gear is the brake. AFAIK world rally in non joystick version has:
- a wheel
- 2 analog pedals (acceleration, brake)
- gear shift

Currently if you use the analog controls, it takes a lot of time to accelerate and there is no gear shift mapped. I have sent an email to Mirko so probably he will figure out the missing bits of non joystick mode.
2008-05-17 08:49:24 +00:00
Aaron Giles
5c0e902901 Cleaned up operand sizing in the C core. Should be closer to working
on big-endian systems.
2008-05-17 06:47:25 +00:00
Brian Troha
953604172e New clones added
----------------
Miss Puzzle (Clone of Gumbo) [The Guru]
2008-05-17 05:57:45 +00:00
Brian Troha
32d0e73099 use parent rom names as clone had no labels as per the Guru 2008-05-17 05:02:46 +00:00
Aaron Giles
9abf2c3efa Added support for ROUNDSS and ROUNDSD on Penryn architectures. 2008-05-17 02:11:48 +00:00
Brian Troha
d197133829 New clones added
----------------
Last Fortress - Toride (Korea) [The Guru]
2008-05-16 22:36:13 +00:00
Phil Bennett
ab6cada0af Fixed black pixel patches present in the TC0100SCN fg layer of undrfire and groundfx. 2008-05-16 18:49:10 +00:00
Aaron Giles
b2ad4af505 As if Intel didn't already have enough opcodes. Added defines for new
Penryn opcodes.
2008-05-16 14:36:54 +00:00
Phil Stroffolino
c8e3dcfc5e Adjusted alternate palette handling weights to more accurately match real hardware - text anti-aliasing is much more noticable.
Adjustment to roz layer priority - prevents roz layer from incorrectly being displayed over backgrounds in some games (i.e. numanathj)

Added a mask when processing the roz tilemap to avoid defects in emeraldj
2008-05-16 13:22:04 +00:00
Aaron Giles
271ac2a7a2 Added a quick & dirty attempt at implementing tlb_mismatch. It's likely wrong,
but it's better than nothing. Also added an assertion if you jump to unmapped
code and added handling for compile-time page faults.
2008-05-16 05:21:25 +00:00
Aaron Giles
be680b1346 Oops forgot to save EBX. 2008-05-16 05:20:41 +00:00
Aaron Giles
0d249058cf Fix bug 1804. Now checking for SSE3 before using truncation functions.
Also fixed incorrect floating point assertion in x86 back-end.
2008-05-16 05:08:32 +00:00
Couriersud
eb59ae219e Fix 64bit build on linux
* Changed (void *) <some int32> to (void *)(FPTR)<some int32>
2008-05-15 21:29:09 +00:00
mariuszw1
7ee04a5081 Reverting of changes made with revision 1578 (tmaster.c input fixes)
The problem is that original submission was sent with reversed diff, I applied it (after Aaron request to commit external submissions), and then Aaron applied it again (with original reversed diff), effectively reverting to old version of code.
2008-05-15 21:04:37 +00:00
Aaron Giles
096331c856 Restructured input port internals and cleaned up inptport.c:
* Input ports are now maintained hierarchically. At the top
level are input ports, which contain a list of fields. Each
field represents one or more bits of the port. Certain fields
such as DIP switches and configuration switches contain a
list of settings, which can be selected. DIP switch fields
can also contain a list of DIP switch locations.

* Normalized behavior of port overrides (via PORT_INCLUDE or
by defining multiple overlapping bits). All fields within a
port are kept in strict increasing bit order, so altered DIP
switches are now kept in the appropriate order. This addresses
MAMETesters bug 01671.

* Live port state is now fully separate from configured 
state. This is manifested in a similar way to devices, where
a const list of ports can be managed either offline or live.
Each port has a pointer to an opaque set of live state which
is NULL when offline or valid when live. Each port also has
a running_machine * which is also NULL when offline.

* Because of this new arrangement, the conversion from tokens
to a list of ports now requires reasonably complex memory
allocation, so these port lists must be explicitly allocated
and freed (they are not mantained by automatic resource
allocation).

* Custom and changed callbacks now take a pointer to a field
config instead of a running machine. This provides more
information about what field triggered the change notification.
The machine can be found by referenced field->port->machine.

* The inptport.c module has been cleaned up and many 
ambiguities resolved. Most of this is internal, though it did
result in osd_customize_inputport_list() being changed to
osd_customize_input_type_list(). The parameter to this function
is now a linked list instead of an array, and the structures
referenced have been reorganized somewhat.

* Updated config.c to pass machine parameters to its callbacks.

* Updated validity checks, XML output, and UI system to handle
the new structures.

* Moved large table of default input settings to a separate
include file inpttype.h.

* Removed gross hacks in trackfld and hyperspt NVRAM. These
may be broken as a result.
2008-05-15 16:25:03 +00:00
Phil Stroffolino
bc4b470ebb fixed long-standing bug with Emeralda text colors. A sprite attribute exists which signals an alternate interpretation of palette ram.
fixed priority for the bitmap layer used in Numan Athletics
2008-05-15 12:43:54 +00:00
Aaron Giles
21a686cf7d Cleanups and version bump. 2008-05-15 08:56:29 +00:00
Aaron Giles
934fbd9fc2 Removed unused functions. 2008-05-15 08:53:58 +00:00
Aaron Giles
18934c8c53 From: abcd efgh [mailto:cix_999@yahoo.it]
Subject: lwings bootleg

Added a Legendary Wings' bootleg, it have some little difference on character's gfx and colours.
Here are attached also the  rom taken from f205v web.
Bye Sonikos .

New clones added:
Legendary Wings (bootleg) [Sonikos]
2008-05-15 08:25:15 +00:00
Aaron Giles
c2672d8948 From: Luigi30 [mailto:luigi30@gmail.com]
Subject: More tmaster.c fixes

Coin inputs fixed, validator input added, notes on inputs added
2008-05-15 08:24:08 +00:00
Aaron Giles
44fbeff9bf From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Remove opbase globals from the public interface

Hi mamedev,

There are several variables associated with opbase handling which are
global and documented in memory.h and thus their use is not well
controlled.  This patch attempts to remedy this.  Because they are
used in various inline memory functions, they can't yet be made local
to memory.c, but by rescoping their declaration they can be hidden,
much like we hide totalcpu.

Most of the uses are in OPBASE_HANDLER() macros, so by encapsulating
the opbase state into a struct and adding that to the handler
interface those can be converted to local variable manipulation. There
is one use in missile.c in a MACHINE_START that I simply removed, it
shouldn't be needed.

One side effect of this patch is that the various unsafe memory macros
can't be used directly, they will be a compiler error now.  That is
probably for the best.

~aa
2008-05-15 08:22:17 +00:00
Aaron Giles
1caf8deb7e From: Fabio Priuli [mailto:priuli@math.ntnu.no]
Subject: fix to bug 01791

Hi,

enclosed please find a small patch to fix the issues in asterock 
(asteroid.c) mentioned in bug 01791

the regression happened in 123u2, when asterock was updated to use 
asteroid inputs. Unfortunately, 3 inputs went from ACTIVE_LOW to 
ACTIVE_HIGH, among them INPUT_TILT. This was causing the cabinet to be 
tilted with a twofold effect:

* to produce the continuous sound and
* to stop any coinage

Modifying back those 3 inputs fixes both issues
2008-05-15 08:09:32 +00:00
Aaron Giles
c2625e8ef1 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: black tiger clocks

Changed main z80 clock to 6mhz and sound z80 clock to 3,579545mhz as
verified on pcb
2008-05-15 08:08:25 +00:00
Aaron Giles
fa2a10c6b8 From: Duke [mailto:startaq@gmail.com]
Subject: MSM6242 fixes

Sorry, seems I forgot to add the device to all machine drivers that
need it - here's an update that fixes that.

Details here: http://mess.toseciso.org/mame:regtest

--Dirk
2008-05-15 08:08:12 +00:00
Brian Troha
4c4523ff28 New clones added
----------------
Ghox (set 2) [Tormod Tjaberg]
Demon's World / Horror Story (early edition) [Brian Troha]
2008-05-15 02:47:25 +00:00