Commit Graph

7781 Commits

Author SHA1 Message Date
Couriersud
f6c832ea90 - testkeys now builds again
- for unix targets, added a depend rule to sdl.mak which builds a .depend file.
2010-01-16 02:20:45 +00:00
Aaron Giles
d35a800134 Added casting operators to the region_info class so you can assign
a region to a generic type pointer and have it automatically convert.
Also added a bytes() method which is safe if the region is NULL
(useful for saying machine->region("foo")->bytes() and not crashing
if foo doesn't exist).

Changed the region field in the device_config to be a region_info *,
and removed the regionbytes field. Updated all users of these fields
to use the new casting operators and bytes() methods instead.

Added subdevice and subregion methods to the device_config class, so
you can easily query for devices and regions that are device-specific.
The device prefix ("devicename:") is automatically prepended.
2010-01-16 00:53:57 +00:00
R. Belmont
51fd1fa822 More PPC GCC warning fixes. 2010-01-15 23:48:40 +00:00
Aaron Giles
971151c8d7 Cheesy autodetect for PTR64 on Windows using standard build tools. 2010-01-15 23:42:49 +00:00
Couriersud
2a0dcc679e Cosmetic changes, no credit 2010-01-15 23:28:30 +00:00
R. Belmont
64c285cf17 More PPC GCC warning fixes. 2010-01-15 23:18:08 +00:00
R. Belmont
c874aa7c85 More fixes for PowerPC GCC (the konamiic ones are actual errors!) 2010-01-15 22:53:58 +00:00
R. Belmont
e4094a6d34 Fix for PowerPC OS X targets. 2010-01-15 22:38:39 +00:00
Couriersud
25b0e97ca1 - Fix TARGETOS detection on OS X.
- Do not try to check TARGETOS when cross-compiling
- For non-windows targets, try to auto-detect PTR64
2010-01-15 22:05:00 +00:00
Jonathan Gevaryahu
4b257e2c66 Fixed period for both sn76489 and sn76489A periodic noise; fixes pitch in 'smooth criminal' demo for colecovision and fixes pitch (but not the waveform, which will require more work) of music in dorunrun; More work is required before the code will be bit accurate due to the way the real LFSR and periodic generator work. [Lord Nightmare, Kold666, PlgDavid] 2010-01-15 21:31:39 +00:00
Couriersud
b998026736 SDLMAME: add BGRA support to -video soft 2010-01-15 21:13:12 +00:00
R. Belmont
9ba62e6bce SDLMAME: improved OS X and SDL 1.3 SVN support, try to autodetect SDLMAME targets [Couriersud] 2010-01-15 21:05:29 +00:00
Dirk Best
3997330a94 i386: Improved accuracy of the various emulated models, makes CPU detection programs detect the correct CPU (in MESS).
- eflags mask added
- Initial values for the EAX and EDX registers fixed
- cpuid values improved
- feature flags improved
- initial value for the cr0 register improved
- changed 486 to not support the cpuid instruction by default
- take a trap on invalid instructions instead of throwing a fatalerror
- emulated the undefined flag behavior for the DIV/IDIV instructions on Intel CPUs
2010-01-15 18:54:23 +00:00
Andrew Gardner
43ce0bbbd1 hng64 : Unified dynamic & explicit palette code. Buriki door is correct now. [Andrew Gardner]
(This seems to work in all cases so far.  It's amazing what a night of sleep will do for ya!)
2010-01-15 16:01:18 +00:00
Andrew Gardner
6351185bd8 hng64 : Makes a palette similarity explicit (no whatsnew needed) 2010-01-15 01:26:25 +00:00
Andrew Gardner
2a5eb70da3 hng64 : Found the 'explicit palette' word in bbust2. Colors are now correct.
Implemented what looks like a 'dynamic palette' bit.  Fixes the colors in sams64 games, 
        but not roadedge or buriki.  [Andrew Gardner]
2010-01-15 00:52:06 +00:00
Angelo Salese
87f6881308 Yet more improvements 2010-01-15 00:02:26 +00:00
Angelo Salese
51b6d19088 More improvements 2010-01-14 23:18:06 +00:00
Couriersud
997a17cc2d Changed all CFLAGS to CCOMFLAGS to be consistent to what windows.mak does 2010-01-14 22:53:04 +00:00
Angelo Salese
3fb01925f6 Added video boundary checks for the blitter 2010-01-14 22:20:19 +00:00
Angelo Salese
1ceb85b680 More improvements, probably needs references ... 2010-01-14 22:08:27 +00:00
Angelo Salese
1e3b9f4bc8 Improved the blitter in Cyber Tank 2010-01-14 20:43:37 +00:00
Phil Bennett
d75d626a43 00660: zoar: The cabinet UPRIGHT dipswitch is not working. [stephh] 2010-01-14 17:31:48 +00:00
Phil Bennett
70c05ee5b2 Verified clocks on Poker Ladies and changed Z80 clock of Mahjong Gakuen from 6Mhz to 8MHz to match the other
Mitchell hardware games [Corrado Tomaselli]
2010-01-14 17:29:50 +00:00
Paul Priest
d8e4571161 Add lots of comments relating to 56-pin Mahjong interface and Psikyo SK-G001 interface pcb based on discussion with alien_mame and documents from other Mahjong PCBs. 2010-01-14 13:52:01 +00:00
Ryan Holtz
8d183da738 Added a mostly-complete SunPlus u'nSP core based on the one in Segher's "Unununium". [Harmony] 2010-01-14 05:35:34 +00:00
Angelo Salese
8c013355f7 Written bare-bones video emulation for the Cyber Tank sprite chip / blitter 2010-01-14 00:02:55 +00:00
Brian Troha
1cac84bddf verified more rom names for the merit.c driver 2010-01-13 22:03:44 +00:00
Aaron Giles
4169b811db Makefile changes:
1. If OSD is not defined, we look for the built-in Windows
environment variable 'OS' and if it is set to 'Windows_NT',
we assume OSD=windows; otherwise we assume OSD=sdl.

2. If TARGETOS is not defined, we look for the same variable
and set TARGETOS=win32 if it is set to 'Windows_NT'.

3. Windows SDL builds have an 'sdl' prefix on the executable
so they can live side-by-side.

The upshot of this is that on Windows systems:

make -> standard Windows build producing mame.exe
make OSD=sdl -> SDL Windows builds producing sdlmame.exe

On non-Windows systems:

make -> SDL build by default (don't need to say OSD=sdl)
2010-01-13 16:27:27 +00:00
R. Belmont
b53bb2c6ac SDLMAME initial import [R. Belmont, Couriersud] 2010-01-13 04:01:20 +00:00
R. Belmont
f8b28bd2f1 Merge makefile with outstanding SDLMAME changes (no whatsnew)
This turns off -Werror on a few OSes and fixes multithreaded version.c building.
2010-01-13 03:49:37 +00:00
Paul Priest
84352b22f3 MT03233: Fix multisession crash in SE3208 affecting crystal.c [anonymous] 2010-01-12 21:26:20 +00:00
Angelo Salese
0b9568ad1c redumped sprite roms [Antonio Gonzalez Jr, The Dumping Union] 2010-01-12 20:59:50 +00:00
Angelo Salese
e46b431fbf Hooked up the two bg tilemaps 2010-01-12 20:17:59 +00:00
Scott Stone
541a6687a0 Fix for agallet fatalerror message: "memory_set_bank called for bank 'bank1' with invalid bank entry 0" (no whatsnew needed) [Fabio Priuli] 2010-01-12 19:25:36 +00:00
Angelo Salese
33f186c1b8 Redumped program roms in Cyber Tank [Antonio Gonzalez Jr.] 2010-01-12 19:21:11 +00:00
Scott Stone
68f092321f Fix assert for prmrsocr + clones - no whatsnew needed [Fabio Priuli] 2010-01-12 17:37:11 +00:00
Angelo Salese
f3d1842bcb Fixed a bogus protection check in Victor 21 [Angelo Salese] 2010-01-12 15:30:52 +00:00
Paul Priest
945a98f0bd Typo, no whatsnew. Thanks Fabio. 2010-01-12 14:40:27 +00:00
Paul Priest
a9baa7b23d Fix for MT00111 - rom region overrun in YMF278B core on loop j=0 of SAMPLE_UPDATE(). Fixes sporadic crashes in many psikyosh games which had been worked around with the exception of gunbird2 which is now also fixed [PsikyoFan]
RB: Feel free to help me correct it if you believe this isn't correct.
2010-01-12 14:31:13 +00:00
Curt Coder
5cdcb8ab63 Added xtal for MESS. 2010-01-12 14:11:14 +00:00
Aaron Giles
1f1672d6cc Enforce that numbers are all the same exact width when loading fonts. 2010-01-12 07:03:11 +00:00
Aaron Giles
470f843262 Within src/emu, basic conversions:
devtag_get_device ... machine->device()
  memory_find_address_space ... device->space()
2010-01-12 06:54:57 +00:00
Aaron Giles
46b81c390e Explicitly allow PAIR and PAIR64 in save states. 2010-01-12 03:32:07 +00:00
Angelo Salese
92db7e71a9 Converted Gunpey to use RGB pens instead of hardcoded palette table 2010-01-11 22:33:01 +00:00
Angelo Salese
30d7972c6a Implemented basic blitter support in Gunpey [Tomasz Slanina] 2010-01-11 21:09:55 +00:00
Aaron Giles
a9c5a5a27e Fixed memory freeing so that is it released in the opposite order
it was originally allocated.

Changed machine->region() to return a pointer to the now-public
region_info class.

Added new member function space() to the device_config, along with
shorter constants to be used (AS_PROGRAM, AS_DATA, AS_IO). With no 
parameters, space() returns the first address space, which is 
commonly the only space present. Updated a few devices that referenced 
the old space[] array to call the new function instead.

Added #define to emualloc to ensure delete can't be freely used.
2010-01-11 18:02:38 +00:00
Angelo Salese
2441940e7a Implemented inputs and sound in Gunpey [Luca Elia] 2010-01-11 17:45:36 +00:00
Angelo Salese
968ef7b835 03649: gekisha: Unknown DIP 4-2 toggles Auto Tsumo after Reach. If it is enabled and declare Reach, MAME crashes. 2010-01-11 13:33:43 +00:00
Phil Bennett
d51770b70f Added the mameconfig version to the -listxml output [Oliver Stoneberg]
---------- Forwarded message ----------
From: Oliver Stöneberg <oliverst@online.de>
Date: Thu, Dec 31, 2009 at 2:45 PM
Subject: mameconfig version in -listxml
To: submit@mamedev.org


This patch adds the mameconfig version to the -listxml output
2010-01-11 12:55:43 +00:00