Commit Graph

1699 Commits

Author SHA1 Message Date
davidhay
663bc8a8cd fatalerror if the SH4 mmu is turned on.
looks like quite a few NaomiGDs need it.. Ikaruga, Border Down, Senko etc. etc.
2009-03-21 19:33:39 +00:00
Aaron Giles
bbcad98b5a Last-minute fix. 2009-03-19 07:44:48 +00:00
Aaron Giles
3b302a8bae Cleanups and version bump. 2009-03-19 07:28:58 +00:00
Aaron Giles
c8585dd236 In addition to this change I added inline functions to define the
various cheat types and a table at the top to hopefully alleviate
confusion.


From: Pugsy [mailto:pugsy@gmx.net] 
Sent: Sunday, March 15, 2009 11:01 AM
To: submit@mamedev.org
Subject: Cheat.c changes

I've been having a look at cheat.c, the issue with one-shot 
list and one-shot select value cheats being indisguishable 
from perm cheats. I decided to have a look to see if I get 
it closer to the old way. I think I've managed it. I've 
attached a diff file..

It changes the One-Shot List or Selectable value cheats to display 
"Set" instead of "Off"
It stops the cheat options being activated in order when you are 
going through the possibilities These cheats are now activated by 
pressing ENTER after you have chosen an option This also pops up 
a message (examples):

		Activated
	Select Starting Stage  = 16 (0x10)

or
			Activated
	Select Temp. Current Shape PL1 = Yellow

Some simple examples to look at:
theroes "Select Starting Stage"
and
tetrist "Select Temp. Current Shape PL1"



Martin 'Pugsy' Pugh
2009-03-19 06:54:44 +00:00
Aaron Giles
52a8ab6014 From: Robert [mailto:pac0446@bigpond.net.au]
Sent: Sunday, March 15, 2009 5:23 AM
To: Mamedev submit
Subject: Fx to z80pio

When outputting from a port to the hardware in pio mode 3, only those bits defined 
by the mask should be output. Mame currently outputs everything.

New source code (z80pio.c) attached.

Regards,
Robbbert
2009-03-19 06:16:34 +00:00
Aaron Giles
58d832602b Having decided to look at the MAME source again, I have a fairly minor patch:
* Fix build of ldplayer on OS X.  Since the CUSTOM sound module no longer exists, I 
arbitrarily changed it to WAVE, as ar gets upset if it has no input files.  I also 
removed the -all_load flag for ldplayer from the main makefile as it upsets the linker 
on OS X.

* Fix build for PPC64 Linux.  (This slightly messes up static branch prediction hints 
on OS X and AIX, but OS X for PPC64 is dead, and no- one builds MAME for AIX, and 
it will still build, anyway.)

* Paramaterise the arguments to check for NULL in the ATTR_NONNULL macro rather than 
just checking the first argument.  This requires compiler support for C99 variadic 
macros (MSVC2005 and GCC4 have this AFAIK).

Vas
2009-03-19 06:15:14 +00:00
Aaron Giles
5caef9210c From: Pugsy [pugsy@gmx.net]
Sent: Friday, March 13, 2009 8:59 AM
To: submit@mamedev.org
Subject: Fix for Mametesters Bug 2981

Hi

Some minor fixes (in attached diff file):-

1. Fixes this http://mametesters.org/mantis/view.php?id=2981 bug, Note I've NOT touched "#define MAX_ARGUMENTS                  32" - that
change is not required I've changed the cheat for the next beta xml cheat file release.

2. Minor typo in cidelsa.h, TAG starts with cpd rather than cdp, perhaps this should be maincpu though?

-#define CDP1802_TAG    "cpd1802"
+#define CDP1802_TAG    "cdp1802"




All the Best

Martin 'Pugsy' Pugh
2009-03-19 05:59:17 +00:00
R. Belmont
5c8f9fb570 MIPS III: Update RA before executing the delay slot. 2009-03-19 02:34:15 +00:00
Couriersud
6733cec11f AY-3-8910:
* Fixed Gyruss audio regression
* Measured RU and RD on AY-3-8910
* Modelled ZX Spectrum audio circuit in SwitcherCAD and derived resistor values for AY-3-8910
2009-03-19 00:59:05 +00:00
Phil Bennett
2b093656cf Fixed regression in djmain games. 2009-03-19 00:00:43 +00:00
davidhay
3f637f632e adds guilty gear xx slash set. 2009-03-17 09:02:02 +00:00
Aaron Giles
19a6f4d51b Compile fix. 2009-03-15 22:33:06 +00:00
Aaron Giles
46494694d1 CPU cores now compile cleanly. 2009-03-15 17:12:40 +00:00
R. Belmont
e2df23829c Add specific support for NEC VR4300/4310 CPUs
The 4300 was used on the N64 and Aleck64, and the 4310 on the IT Eagle boards.  COP0 is slightly non-standard on these chips.
2009-03-14 14:44:22 +00:00
R. Belmont
0a10be2fc6 Fixed typo that caused a compile error on 64-bit. 2009-03-14 14:37:23 +00:00
Aaron Giles
32bc986ec0 Moved some of the CPU cores over to use get_safe_token like other devices.
Also cleaned them so they compile.
2009-03-12 16:54:49 +00:00
Aaron Giles
475762a3fd Sound cores compile cleanly. 2009-03-12 15:25:58 +00:00
Aaron Giles
d98a6ba381 Taito G-NET support
New games added:
Chaos Heat [Olivier Galibert]
Super Puzzle Bobble [Olivier Galibert]
2009-03-12 08:22:50 +00:00
Aaron Giles
eb539cce9d Many casts added to the core files, and various other tweaks
to make them compile as either C or C++.
2009-03-12 07:43:03 +00:00
Aaron Giles
d2d22a19af Redid metadata hashing. A digest of tags and hashes for each
piece of metadata along with the hash for the raw data is then 
hashed to produce the final SHA1.

Updated romload to skip the obsolete MD5 field.
2009-03-10 00:27:30 +00:00
Aaron Giles
54498e58ed Add muting just before saving the NVRAM, and de-mute just after
loading the NVRAM. Should cure the stuck sound issue for games
with large NVRAM.
2009-03-09 04:43:02 +00:00
Nathan Woods
3cb1b0b087 Sync with MESS 2009-03-08 19:37:11 +00:00
Olivier Galibert
3f12ffd1d1 Allow chds to be directly in the rom directory without a subdirectory 2009-03-08 12:49:01 +00:00
smf-
8e2173e06e fixed disassembly of -$8000, it was showing up as -$0 2009-03-08 09:19:49 +00:00
Derrick Renaud
dc0c24d0fa Fixed Analog settings so Digital and Autocenter Speeds are applied properly in real time.
Fixed Digital Speed = 0 so it increments in single steps per button press.
2009-03-08 03:09:32 +00:00
Aaron Giles
43730cc591 Fixed bug that caused 64-bit PowerPC systems to fetch opcodes in the wrong order. 2009-03-07 23:18:36 +00:00
Aaron Giles
a97f308b83 Converted PowerPC SET_INFOs to direct calls. 2009-03-07 22:59:34 +00:00
Olivier Galibert
27fbe59291 tms57002: Add two missing instructions and hack up the coef update.
The real way coefficient updates are handled is a little too complex
for now, but the hack throttles the update speed to the real rate
given the way konami uses it (once per sync).  It's near impossible to
use it in a different way anyway.

Fixes mantis 2941 (at least for puzldama) and maybe 2953 (needs to
find the roms and test).
2009-03-07 19:41:14 +00:00
Aaron Giles
75f0ff10d1 Added function calls to replace the MIPS3 DRC's various CPU_SET_INFO
bits.

Fixed DCS2 speedup handler so it doesn't get lost during a memory
remap.
2009-03-07 08:54:03 +00:00
Aaron Giles
25b126291e 03001: "Working clones" display problem
Also tweaked the "not working" message.
2009-03-07 07:58:27 +00:00
Aaron Giles
99d297a6fd Cleanups and version bump. 2009-03-05 09:38:53 +00:00
Aaron Giles
3b34b6b8b4 From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Saturday, February 28, 2009 3:53 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] More static/const qualifiers

Hi mamedev,

Another round of static/const qualifier additions, plus a rename of 
has_addon_chip to snes_has_addon_chip.  Notably a number of z80ctc_interface 
are now const (devicification must have removed the cases where it was 
dynamically modified).  Notice that the READWRITExTOy macros declare two 
functions, so you can't make the 2nd function static.  Those macros should 
probably be reworked or removed.

~aa
2009-03-05 08:24:08 +00:00
Aaron Giles
328aa85a24 From: R. Reucher [rene.reucher@batcom-it.net]
Sent: Friday, February 27, 2009 10:17 AM
To: submit@mamedev.org
Cc: qmc2-devel@lists.sourceforge.net
Subject: Proposed patch for src/emu/audit.c

Dear MAME developers,

I've created the attached diff to src/emu/audit.c (0.129u5) to allow for 
reporting a ROM state of "correct" when a game/machine doesn't require any 
ROM files at all (currently it will be reported as "not found", which is 
wrong IMHO).

I know that this isn't really relevant for MAME, but it is for MESS -- so 
I hope you'll accept the patch.

Thanks, Rene
--
Rene Reucher
rene.reucher@batcom-it.net
http://www.batcom-it.net/

It is only people of small moral stature who have to stand on their dignity.
2009-03-05 08:22:45 +00:00
Aaron Giles
e8c09b35f6 Added flags to the metadata entries, encoded in the top bit. Right now
it is a no-op, but eventually will be used to indicate which bits of
metadata are included in the overall checksum.
2009-03-05 07:35:24 +00:00
Couriersud
8d92bff0b7 02180: Corrupt archives are read without problems
* corrupt files in archives now generate an error
* archive files ending in "/" will not be tested for crc - skip path entries
* add new flag FILE_OPEN_NO_PRELOAD to skip decompressing on open
  This is used in audit.c, which only tests whether files exist
* added error checking to all calls to load_file_zipped
2009-03-04 21:30:52 +00:00
Pierpaolo Prazzoli
caf233e1fc Changed eeprom erase command to write 0xff values.
--------------------------------------------------
I see that eeprom_data is initialized with a memeset of 0xff so I don't think this change will break anything.
2009-03-04 21:06:57 +00:00
Olivier Galibert
e2f25afebf tms57002 - don't abort on unimplemented instructions
Pop up a message instead, hopefully they'll still find their way in
mantis without breaking the game this time.
2009-03-04 18:01:11 +00:00
Olivier Galibert
9bcbadbd0a maketms: Free strings on exit.
This patch will make happier the environments that do not know that
"still reachable" and "leaked" are not the same thing and that exit()
is a _very_ good deallocator.
2009-03-04 16:43:58 +00:00
Aaron Giles
b259386789 Moved SH2 set info functions to direct calls. 2009-03-03 16:22:18 +00:00
Aaron Giles
12a77e490c Of course, not crashing has its benefits too. 2009-03-03 15:13:38 +00:00
Aaron Giles
41af68d311 Turned off annoying assert that nobody is interested in fixing. 2009-03-03 15:08:16 +00:00
Aaron Giles
8dd5d2b953 Renamed 6821new.* -> 6821pia.*
Renamed pia_* functions to pia6821_*

Fixed a couple of compiler errors.
2009-03-03 06:58:07 +00:00
Aaron Giles
9fbb1e6d7b Delete old PIA implementation. 2009-03-03 06:34:32 +00:00
Aaron Giles
ef9e4cb805 Fix speaker/sound ambiguity that caused attempts to round sound outputs
to other sound chips to be broken.
2009-03-03 05:14:22 +00:00
Aaron Giles
1dcd75d039 Removed device types from device queries that use tags, under the
assumption that all device tags are unique. Specifically, the
following no longer need to provide a device type:

   AM_DEVREAD/WRITE
   DEVCB_DEVICE_HANDLER
   devtag_get_device
   devtag_reset
   device_list_find_by_tag

as well as several device interfaces that referenced other devices.

Also fixed assertion due to overflow in the recent sound fix.
2009-03-02 10:59:37 +00:00
Aaron Giles
4ad8ec54f8 Converted the following drivers to the new device-based 6821 PIA:
- qix
 - mcr/williams
 - coinmstr
 - funworld
 - goldnpkr
 - jokrwild
 - nyny
 - r2dtank
 - spiders
 - tugboat

Added new function memory_install_read_port_handler() to more
easily allow you to install read handlers for ports based on tag.

Removed input_port_read_handler8/16/32/64 functions, since they
were really only used for getting a memory handler for a port by
tag, and this is no longer necessary.

Moved input port handlers to internal code in the memory system.

Added port names to the taito8741 device pending its proper
devicification.

Removed all remaining uses of input_port_n_r() functions, and
purged them from src/emu/machine/generic.
2009-03-02 09:31:05 +00:00
Aaron Giles
ba374dbb0a 00015: Noticeable static in OKI 6295 audio 2009-03-02 01:33:41 +00:00
Aaron Giles
e2757c60d2 Modified the makefile to support experimental optional C++
compilation:
 - new option CPP_COMPILE to trigger this (off by default)
 - split CFLAGS into common, C-only, and C++-only flags
 - when enabled, CPP_COMPILE causes 'pp' to be appended to 
    the target name

NOTE THAT THE SYSTEM CANNOT ACTUALLY BE COMPILED THIS WAY 
YET. IT IS JUST AN EXPERIMENT.

Modified lib.mak to always build zlib/expat as C regardless 
of CPP_COMPILE.

Modified windows.mak to fix warnings with MAXOPT=1, and to 
leverage the new CFLAGs definitions.

Modified vconv.c to do appropriate conversions for new C++ 
options.

Updated sources so that libutil, libocore (Windows), and 
libosd (Windows) can be cleanly compiled as C or C++. This
was mostly adding some casts against void *.

Fixed a few more general obvious problems at random 
locations in the source:
 - device->class is now device->devclass
 - TYPES_COMPATIBLE uses typeid() when compiled for C++
 - some functions with reserved names ('xor' in particular)
    were renamed
 - nested enums and structs were pulled out into separate
    definitions (under C++ these would need to be scoped to
    be referenced)
 - TOKEN_VALUE cannot use .field=x initialization in C++ :(
2009-02-28 22:10:06 +00:00
davidhay
30584f0017 various improvements to Heavy Unit [Angelo Salese, Tomasz Slanina, David Haywood]
- Added a VERY preliminary simulation of the protection, just enough to get the game to boot, not make it playable
 - Corrected CPU communication, IRQ/NMI generation etc.
 - Fixed some video emulation issues (added tilemap scroll etc.)
 - Corrected GFX rom loading (at least for the graphics used in attract mode)
2009-02-28 18:20:40 +00:00
Couriersud
906a76dd8a Scramble now is a lot closer to reports and recordings (background sound, sound of bullets). 2009-02-26 21:15:56 +00:00