Commit Graph

2011 Commits

Author SHA1 Message Date
Fabio Priuli
3a12078160 Converted NEC uPD4701 to be a MAME device and hopefully fixed ACD083x device implementation. 2009-06-01 15:04:34 +00:00
Fabio Priuli
f1765e578b Converted Fujitsu MB3773 to be a MAME device 2009-06-01 12:45:22 +00:00
Fabio Priuli
1bcf4e7b9e Converted ADC083x converters to be MAME devices 2009-06-01 10:44:07 +00:00
Fabio Priuli
b5c8272ad8 Converted DS1302 to use devtemplate 2009-06-01 10:39:47 +00:00
Aaron Giles
03061c0142 Changed voodoo to use devtempl.h. 2009-05-31 23:41:10 +00:00
Aaron Giles
c061fc36c8 Added DT_HAS_START to devtempl.h to explicitly specify the presence
of a start routine (so that derived devices can say whether or not
they are overriding the parent). Also converted 6821pia to use 
devtempl.h.
2009-05-31 22:25:55 +00:00
Fabio Priuli
da25d13961 Added configuration settings and analog adjusters to xml output (see e.g. mario or crbaloon). Also, added port categories for MESS. 2009-05-31 22:07:16 +00:00
Aaron Giles
a9d29f2d78 Cleaned up Namco 5xxx docs, listing both MB88xx pin IDs and
Namco custom IDs where appropriate.

Added clocks to the Namco 06xx in anticipation of improved
device interconnection.

Added new file devtempl.h which can be used to generate the
DEVICE_GET_INFO function. Updated all the Namco I/O devices
to use this.

Updated galaga driver to use computed video timing.
2009-05-31 22:04:15 +00:00
Fabio Priuli
818b17bc13 Converted Dallas DS1302 RTC to a device 2009-05-30 04:35:40 +00:00
Ryan Holtz
99c2a35186 Reverting my addition of AM_READONLY, because man, I am just dumber than hell. No whatsnew.txt entry, please, for dignity's sake. 2009-05-29 04:45:38 +00:00
Aaron Giles
ab7d486957 Cleanups and version bump. 2009-05-28 15:59:16 +00:00
Aaron Giles
25895015b2 Made a pass at shuffling/improving the system 16 and 18 bootlegs.
Some games are probably more broken now, but they are better
structured for future improvements. [David Haywood]
2009-05-28 15:17:13 +00:00
Aaron Giles
fc14ac39cc From: William Krick [mailto:bill@3feetunder.com]
Sent: Monday, May 25, 2009 9:31 PM
To: submit@mamedev.org
Subject: DIFF: vertical.ini & horizont.ini

This simple 4 line change (5 if you count the comment) to mame.c adds the
ability to parse vertical.ini and/or horizont.ini files.

I wanted this functionality so that I could specify different resolution
and artwork options for all vertical games in one shot.

I had a MAMEUI user ask that I submit this code to baseline MAME so that
it could be included in MAMEUI GUI without making changes to the core
codebase.

I chose to shorten "horizontal" to "horizont" to make sure that the
ini file falls within 8.3 filename guidelines.

thanks for your consideration
...
Krick
2009-05-28 15:13:53 +00:00
Aaron Giles
57deed92e8 From: Oliver Stoeneberg [oliverst@online.de]
Sent: Sunday, May 24, 2009 4:11 AM
To: submit@mamedev.org
Subject: Compilation fix for ARM7 core

This fixes the compilation with ARM7_DEBUG_CORE. It was actually
found by Reijo Tomperi from the cppcheck team after I issued a bug
report.
2009-05-28 15:12:42 +00:00
Aaron Giles
0c0affd00e Replaced Namco 52xx sound simulation with emulation of the MCU.
Updated polepos and bosco drivers to use the new 52xx sound
emulation, wiring up the output through the discrete mixer that
Derrick had already plumbed but left disabled.

This required several MB88xx changes/fixes:
 - internal timer support now works; prescaler is guessed based
    on Pole Position sample playback frequency
 - external counter support works
 - a basic mechanism for reading serial input has been added; it
    is not sufficient for a full implementation, but good enough
    to sample the SI pin at startup
 - fixed TSTS/TSTV to clear their respective flags
 - fixed CI and CYI to compute imm-reg instead of reg-imm
 - added masking of the PA register upon RTI/RTS to prevent bogus
    PC values
2009-05-28 09:15:09 +00:00
smf-
c96c490060 preliminary work on beatmania iidx, still lots to do but I didn't want to waste anyones time. 2009-05-28 07:13:38 +00:00
Aaron Giles
27e2aac0fe Added internal memory maps and internal clock divider to the MB88xx
CPUs. Removed now-redundant memory maps from drivers and removed
explicitly-specified clock dividers.
2009-05-27 14:18:44 +00:00
Yasuhiro Ogawa
47112c063b many DIPSW fixes [kanikani]
- added DIPLOCATION to scontra and thunderx
- added some DEF_STRs (Difficult, Very Difficult, etc.) and modified drivers using them
2009-05-27 08:15:29 +00:00
Aaron Giles
adffaf795b Split out Namco 51xx and 53xx into separate modules.
Converted Namco 51xx and 53xx into proper devices. The MB84xx is not
yet emulated, but is now present.

Converted 51xx and 53xx interfaces to use the devcb system for 
port I/O callbacks.

Dig Dug is known to be somewhat broken at the moment.
2009-05-26 15:16:58 +00:00
Aaron Giles
ca0bee02b5 Converted Namco 54xx to a device. The interface now specifies the name
of the target discrete sound object and the base node, rather than
making assumptions.
2009-05-26 05:43:32 +00:00
Aaron Giles
44eb499a4a Converted Namco 52xx to a device. Note the MB8842 for this is still
not emulated yet, but it is now present and disabled, and the ROMs
centrally loaded via the device.
2009-05-26 05:11:46 +00:00
Aaron Giles
996de3e466 Converted the Namco 50xx into a proper device.
Extended the Namco 60xx and namcoio_init() interfaces to accept 
a device name string in addition to an interface struct, until 
all the interfaces are replaced with devices.

Added DERIVED_CLOCK() macro which can be used by sub-devices to
derive their clock from the parent device.

Tweaked some of the laserdisc interfaces to use ROM_NAME() and
MACHINE_DRIVER_NAME() macros.
2009-05-26 04:35:01 +00:00
Ryan Holtz
1fa3febc6b Eliminated SMH_* usage in all memory maps in drivers beginning with A and B. [MooglyGuy] 2009-05-25 23:16:26 +00:00
Aaron Giles
8581fc7b28 CPUs actually take some time to reset. Changed the 68000/68010 to
eat an appropriate number of cycles after a reset.
2009-05-25 23:13:36 +00:00
Aaron Giles
64b527f6ec 2009/5/16 Mike Green <mikedx@gmail.com>:
> Here is a small patch for the touchmaster driver
>
> This removes the pulse input on the touchscreen for the touchmaster
> drivers, making centipede returns (tm4k), breakout3k (tm3k),
> wordsearch (tm8k) and possibly other games playable do to the need for
> "dragging" the screen. An example of this is the word search game
> where it is necessary to drag from the start letter to the end to
> highlight the selection, which is not possible with a pulse input.
>
> Best regards
>
> Mike
2009-05-25 01:07:07 +00:00
Aaron Giles
446c154bb1 From: Oliver Stoeneberg [oliverst@online.de]
Sent: Friday, May 15, 2009 9:13 AM
To: submit@mamedev.org
Subject: Unused Variables - second try

This is a new version of the patch, that disables some unused
variables. It fixes some warnings, that came up in an optimized build
and adds a few more things.
2009-05-25 01:03:10 +00:00
Brian Troha
90d2e8e705 Corrected the 202 entry in the LFO Frequency Table (and comments for it) for the YMF271 based on a formula by Olivier Galibert. (Brian Troha, Roman Scherzer) 2009-05-19 01:37:45 +00:00
R. Belmont
a59e2337ea H8 series MCU updates
- Implemented 8-bit timers and free-running counter for H8/3334
- Added bld #imm, @Rd instruction
- Improvements to interrupts and the serial ports
2009-05-18 03:55:28 +00:00
Wilbert Pol
bc5d8587c4 Moved the configuration of m6502-family callbacks to the cpu configuration. 2009-05-15 19:28:52 +00:00
Aaron Giles
3fd14bb4f9 Fix CPS3 regression. 2009-05-15 06:02:23 +00:00
Aaron Giles
de269aeb45 Sent: Monday, May 11, 2009 10:32 PM
To: submit@mamedev.org
Subject: LSHIFT/<< expression diff fix

Tafoid pointed out that it's currently impossible to use '<<' in a 
cheat xml file, this fix adds an alternate LSHIFT to cheat.c and
express.c and also adds the working '>>' as an alternate RSHIFT to 
express.c (not needed in cheat.c as >> parses fine)

diff file attached
2009-05-15 05:29:09 +00:00
Aaron Giles
4063eeeaca From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Sunday, May 10, 2009 5:41 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Static qualifier update

Hi mamedev,

Here's my periodic static qualifier patch for MAME, mostly adding
static to new code introduced over the past couple of months.

~aa
2009-05-15 05:24:32 +00:00
Aaron Giles
d9f4734cfa From: Xander Xander [mailto:xander85@operamail.com]
Sent: Sunday, May 10, 2009 1:28 AM
To: submit@mamedev.org
Subject: Save state for artmagic.c and runaway.c

I have added the save state to artmagic.c and runaway.c

Xander
2009-05-15 05:14:52 +00:00
Aaron Giles
a5699e8513 > From: atari_ace@verizon.net
> To: submit@mamedev.org
> CC: atariace@hotmail.com
> Subject: [patch] Search all rom sources for merges
> Date: Sat, 18 Apr 2009 20:32:15 -0700
> 
> Hi mamedev,
> 
> The logic for detecting merged roms does not check all the rom sources
> in the parent, leading to cases where roms from devices aren't
> detected as merged (e.g. ldv1000 in superdqs). This fixes it.
> 
> ~aa
2009-05-15 05:13:28 +00:00
Wilbert Pol
7dc342691f fix typo 2009-05-14 16:28:09 +00:00
Aaron Giles
a909ca4b4a Fixed MCS-51 to not access RAM in wraparound fashion.
Hooked up Noboranka MCU (very different from the others).

New games working: Noboranka
2009-05-13 15:53:11 +00:00
Aaron Giles
8125878cfa Fixed misaligned table. 2009-05-13 02:58:21 +00:00
Nathan Woods
4b092a9122 Readded read_vector callback 2009-05-13 02:53:12 +00:00
Jonathan Gevaryahu
2a8f2a9b69 add two crystal values needed for MESS 2009-05-12 19:10:25 +00:00
Aaron Giles
00c5f34211 MCS-51 fixes:
* jb int0,<self> loops are now broken out of if int0 comes and is taken
 * externally-clocked counters only count when enabled

System 1 changes:
 * hooked up 8751 properly
 * removed old 8751 hacks
 * shuffled Shooting Master sets

New Games Marked Working
------------------------
Choplifter (8751 315-5151)
Shooting Master (EVG, 8751 315-5159a)
2009-05-11 09:14:26 +00:00
Angelo Salese
9216688bb1 Added a work-around for the UART FIFO read only status register on the SH-4 to make Tetris Kiwamemichi happy to boot.
It crashes shortly after that like La Keyboard though (jumps to an unmapped address).
2009-05-09 19:18:36 +00:00
Aaron Giles
09d58a6c7f Removed address_map2 items from the CPU config, etc. 2009-05-09 05:30:43 +00:00
Aaron Giles
0f1e0cc8e5 Removed second parameter from MDRV_CPU_PROGRAM_MAP, MDRV_CPU_DATA_MAP,
and MDRV_CPU_IO_MAP. For the remaining drivers that used multiple
address maps, converted them to use AM_IMPORT_FROM to import the base
map.
2009-05-09 04:11:55 +00:00
smf-
1443386e33 fixed visual studio 64 bit compile 2009-05-07 19:43:17 +00:00
Aaron Giles
673ca66750 Cleanups and version bump. 2009-05-07 15:46:14 +00:00
Aaron Giles
d72f98cb3c Fix MCS51 disassembler to work properly when there are two
memory arguments (the second would overwrite the first).
2009-05-07 13:59:46 +00:00
Ryan Holtz
29f46d4576 - Fixed display of the i8085's SP register when in the debugger. [MooglyGuy] 2009-05-06 15:19:41 +00:00
Jonathan Gevaryahu
c713b0ba1a minor update to sn76496.c to make the cycles to ready change made more sane (still not completely right), and document why. 2009-05-05 17:06:28 +00:00
Curt Coder
91a7d9908b Converted the WAVE sound device to stereo (for MESS). 2009-05-04 13:18:58 +00:00
Nathan Woods
298cf8348d Sync with MESS 2009-05-04 11:27:27 +00:00
R. Belmont
4c4564753a H8: Better interrupt handling for the 8/16 bit H8s. 2009-05-03 14:53:17 +00:00
R. Belmont
9ca33c5a1d Second verse, less "cargo cult" than the first. 2009-05-03 00:26:13 +00:00
mariuszw1
b0b9441aa1 New games added or promoted from NOT_WORKING status
---------------------------------------------------
Pit Boss Supertouch 30 [Mariusz Wojcieszek]
2009-04-29 21:15:50 +00:00
Curt Coder
1c86da07ed Fixed READY cycle count. 2009-04-29 11:29:14 +00:00
Jonathan Gevaryahu
efd44dee47 Add READY line readback, cleaned up struct a bit, cleaned up comments, added more TODOs, Fixed some unsaved savestate related stuff. 2009-04-29 04:31:25 +00:00
Angelo Salese
7fd66deda9 Memory maps merges for the following drivers:
* senjyo.c
* seta2.c
* sfkick.c
* shangha3.c

Properly hooked-up player 2 mahjong panel in mj4simai
Moved paletteram_IIBBGGRR_w() from senjyo.c to emu/video/generic.c

===================================

I'm not sure if sfkick.c memory map is 100% correct, needs double checking (it's the same on MSX MESS driver)
Also anybody is interested in rewrite senjyo.c driver from scratch? ;P
2009-04-28 20:37:37 +00:00
Aaron Giles
9eb86548bb Added missing casts and made other tweaks. The entire project
can now be optionally compiled with the C++ compiler (mingw g++
only for the moment; MSVC still has issues).
2009-04-27 09:18:17 +00:00
Aaron Giles
ad4910a8a8 Bulk change alert.
This update changes the way we handle memory allocation. Rather
than allocating in terms of bytes, allocations are now done in
terms of objects. This is done via new set of macros that replace
the malloc_or_die() macro:

  alloc_or_die(t) - allocate memory for an object of type 't'
  alloc_array_or_die(t,c) - allocate memory for an array of 'c' objects of type 't'
  alloc_clear_or_die(t) - same as alloc_or_die but memset's the memory to 0
  alloc_array_clear_or_die(t,c) - same as alloc_array_or_die but memset's the memory to 0

All original callers of malloc_or_die have been updated to call these
new macros. If you just need an array of bytes, you can use
alloc_array_or_die(UINT8, numbytes).

Made a similar change to the auto_* allocation macros. In addition,
added 'machine' as a required parameter to the auto-allocation macros,
as the resource pools will eventually be owned by the machine object.
The new macros are:

  auto_alloc(m,t) - allocate memory for an object of type 't'
  auto_alloc_array(m,t,c) - allocate memory for an array of 'c' objects of type 't'
  auto_alloc_clear(m,t) - allocate and memset
  auto_alloc_array_clear(m,t,c) - allocate and memset

All original calls or auto_malloc have been updated to use the new
macros. In addition, auto_realloc(), auto_strdup(), auto_astring_alloc(),
and auto_bitmap_alloc() have been updated to take a machine parameter.

Changed validity check allocations to not rely on auto_alloc* anymore
because they are not done in the context of a machine.

One final change that is included is the removal of SMH_BANKn macros.
Just use SMH_BANK(n) instead, which is what the previous macros mapped
to anyhow.
2009-04-26 23:54:37 +00:00
Wilbert Pol
3e9927b878 TLCS-900/H cpu core fixes:
- Reimplemented hdma
- Fixed bugs in the EX (mem), R instructions.
2009-04-25 16:47:22 +00:00
davidhay
962fede4c5 added a large gfx decode using macros to allow the textures on hng64 to be viewed, handy for verifying the dumps. 2009-04-24 19:28:54 +00:00
Derrick Renaud
b61e06613b Changed UI to ignore selection from lightguns when off screen. This stops selection of Gun X Gun Y if you move the gun out of range. 2009-04-24 01:56:45 +00:00
Aaron Giles
7b90e01659 Deprecated device_set_info. Almost all devices had a NULL or empty
function here. Remaining devices have been converted to have 
device-specific functions to do the same thing with proper type 
checking.

CPUs still have a set_info function but it is CPU-specific now and 
no longer piggybacks on the general device function.
2009-04-23 16:33:28 +00:00
Aaron Giles
4b7dd3cd0d Cleanups and version bump for 0.131. 2009-04-23 05:44:35 +00:00
Aaron Giles
83f91c7bf6 From: Luigi30 [mailto:luigi30@gmail.com]
Sent: Monday, April 20, 2009 4:22 PM
To: submit@mamedev.org
Subject: 4/20 diff

Crystallized 1945kiii.c, maygay1b.c, maygayv1.c, mwarr.c, n8080.c
(20.16MHz crystal confirmed with schematics), pacman.c, panicr.c,
rallyx.c

[2399] Changed qmhayaku's sound CPU back to 4MHz, sounds work now
2009-04-23 05:08:30 +00:00
Aaron Giles
d7f2bb25be From: Duke [mailto:startaq@gmail.com]
Sent: Monday, April 20, 2009 2:04 AM
To: submit@mamedev.org
Subject: small fix to debug screenless systems

Hello,

this small fix is needed to enable debugging screenless systems again:
2009-04-23 05:04:11 +00:00
Aaron Giles
85a870ca07 Added cursor info to the TMS9927, and also the CRT50x7 device variants.
Added Tripple Draw and Casino Strip to the Status driver, both non-
working.
2009-04-23 04:58:41 +00:00
Derrick Renaud
b3b2a83f05 Fixed bug where repeating axis values were being selected for button input in UI. 2009-04-23 03:28:15 +00:00
Wilbert Pol
9d13bdc37a More fixes for the CPD and CPI instructions in the TLCS-900/H core. 2009-04-21 18:30:48 +00:00
Wilbert Pol
f99e4666b9 Fixed operation of TLCS-900/H CPD and CPI instructions. 2009-04-21 17:55:35 +00:00
Wilbert Pol
2ef8ba4347 Added T6W28 sound core (SNK(?) custom sn76489a clone). 2009-04-20 20:40:47 +00:00
Wilbert Pol
4f2a65da42 Added Toshiba TLCS-900/H cpu core. 2009-04-20 16:49:10 +00:00
Fabio Priuli
f5729243c3 clifront.c fixed length messages now leave enough space for clone longer names 2009-04-20 10:49:54 +00:00
Aaron Giles
7a0f34cb33 Added basic TMS9927 implementation. Hooked it up to the statriv2
and thief drivers.

Bunch of improvements to the Status system emulation. Correct
video timing, hooked up TMS9927, corrected colors, etc. Still
some work to do.

New games
=========
Status Blackjack
Status Fun Casino
2009-04-20 09:31:18 +00:00
Aaron Giles
3ad403ee61 Fixed XF flag. 2009-04-20 05:39:05 +00:00
Yasuhiro Ogawa
41454bc57e fixed MAMETesters bug #02948 [OWcsayJ20] 2009-04-19 14:57:57 +00:00
Aaron Giles
bb029346e8 Changed generic NVRAM behavior so that all the variants look
for a memory region named "nvram". If it is found and is of
the same length as the generic_nvram_size, data is copied
from there instead of filling the RAM with the fallback
pattern.
2009-04-18 22:44:25 +00:00
smf-
545285d8fa ignores optional and no dump roms when checking whether all roms exist in the parent. 2009-04-13 15:17:00 +00:00
Derrick Renaud
ecac25b281 Changed Player Input menu to be based off of sortorder instead of item->ref.
Currently an analog control creates the axis;inc;dec menu items all under the same ref.  This means the UI still thinks it is adding items when you move between any of the three for the same control.  You have to move to a different control before sequences are no longer added to that control.

Harder to describe then to try.  Try the current code.  Map an INC button, move to DEC and map a button.  Go back to INC and the old value is not cleared first.
2009-04-13 03:42:53 +00:00
Derrick Renaud
7242193ea0 Fixed an auto-center bug on analog joysticks that I added during a cleanup. 2009-04-13 02:32:38 +00:00
Aaron Giles
a97a3f416f Reverted to older behavior for how modified input port fields are handled.
The originally intended behavior is that a new field that intersected a
previous field would completely wipe out the original field. Recently a
change was made that changed the behavior to only remove a portion of the
bits from the original field. This is actually problematic behavior, so
the original behavior was restored.

Currently I put this behind a compile-time define until we see that we
haven't come to rely on the newer behavior.
2009-04-13 00:48:00 +00:00
Aaron Giles
712833f970 Added display of frame number to the beamx/y info in the register view. 2009-04-11 16:39:16 +00:00
Aaron Giles
c0e9a1a10c Fix MT 3065/3069 2009-04-11 16:36:21 +00:00
Fabio Priuli
a47d3f01fa Fixed CPU_GET_INFO issues spotted by -validate in MESS debug build 2009-04-11 14:06:24 +00:00
smf-
fc9457f5d6 refactored the audit code to make it more consistent with the original. 2009-04-11 11:55:12 +00:00
smf-
3a1f328e50 applies same rules to chds as roms. 2009-04-11 09:18:56 +00:00
smf-
9c8da09e53 change to last patch to only treat a file as found if it's not from a parent. 2009-04-11 09:05:12 +00:00
smf-
55bb21fcbc audit still passes for romsets with no dumped/required roms, but returns NOT FOUND if everything else is not found. 2009-04-11 08:46:54 +00:00
smf-
cd0992c812 changed audit to report best available if the romset contains no dumped or required roms. 2009-04-11 08:22:20 +00:00
Derrick Renaud
1125eb211c Fixed Analog Settings to return to default when IPT_UI_SELECT (enter) pressed.
Fixed misplaced brackets, allowing upper/lower case extensions for crosshair graphics and ldplayer chd files.
2009-04-10 05:41:41 +00:00
Aaron Giles
7e5b973c25 Missed a file. 2009-04-09 17:09:47 +00:00
Aaron Giles
c28f3ee396 Cleanups and version bump. 2009-04-09 16:57:44 +00:00
Aaron Giles
91f3cbf7ec Hi,
I have another minor patch to MAME which does the following:

* Put tables used for RGB utilities in a single object file rather  
than compiling them as statics in every object that uses them.

Vas Crabb
2009-04-09 15:59:23 +00:00
Aaron Giles
4d749e0597 From: Kevin Eshbach [mailto:keshbach@comcast.net]
Sent: Sunday, March 08, 2009 5:58 PM
To: submit@mamedev.org
Subject: Patch with minor documentation changes

Attached is a patch file with the following minor documentation changes:
 
* Added placeholders for the two PAL's on Atari's version of Pole 
   Position 1 and 2 (I could not read the last digit of the PAL at 5c.)
* Added board numbers to SEGA's Quartet 2 documentation
* Corrected the rom names for Tutankham (A guess was made on the names 
   for Konami's version of the roms at 3h and 6h.)
 
Kevin Eshbach
2009-04-08 14:35:30 +00:00
Aaron Giles
09aefa1379 Changed Z80 cycle table definitions to be per-device. Removed
old set_info constants for the tables; they are now set up via
the z80_set_cycle_tables function.
2009-04-04 22:43:56 +00:00
davidhay
10f7d87f23 Eeprom and i2c implemeted as devices [Samuele Zannoli]
The eepromdev.* files are the device impementation for the serial eeproms
The i2cmemdev.* files are the device impementation for the i2c memory
These aren't currently hooked up

I'm committing this so that the Naomi changes don't accidentally get applied.  The idea seems good, but they conflict with the current driver and I'd rather not have them accidentally slipping in and breaking things just yet.
2009-04-02 20:48:28 +00:00
Curt Coder
97f52a02ed Build the IDE features table only when there is a CHD available. 2009-04-02 12:06:40 +00:00
davidhay
6272d646f9 looks like there was a bug in the original code here actually, loop goes to 32, max channels was set to 24, could potentially read/write out of bounds. 2009-04-01 22:09:34 +00:00
davidhay
e763f88ea4 Simulate 'keyoff' in the SPU.
The envelopes aren't actually emulated, but the sound is silenced after a key-off (by placing the sound in a 'release' state)  This prevents audiable sound from looping forever.

Not extensively tested, but good for my sanity when running some of the gnet additions, and the tgmj siren looping.

I may consider doing a better implementation if I can manage to get my head around all the envelope stuff.
2009-04-01 21:55:34 +00:00
Derrick Renaud
b92192af0f Tweaked crosshair auto formula.
Not worth mentioning.
2009-04-01 00:13:24 +00:00
Derrick Renaud
9e34870dcf Changed Crosshairs to default to new Auto mode. They will now default to staying visible for approximately 3s after last movement.
---------
Note: crsshair.0 and uimenu.o need to be rebuilt to see change.
2009-03-30 23:45:23 +00:00
Curt Coder
f336a88493 Removed invalid email address. 2009-03-30 13:23:13 +00:00
Olivier Galibert
8901b0bd95 tms32025: Fix timings, hopefully 2009-03-30 12:13:34 +00:00
Derrick Renaud
01962d4fc5 Crosshair update
* Added Crosshair Options menu
  - ability to individually enable/disable crosshairs
  - ability for them to automatically disappear after a set amount of time
  - ability to select crosshair graphic
  - all settings are saved in the cfg file
 * Removed F1 toggle for crosshairs
 * Added new command option -crsshairpath
  - store all selectable graphics here
  - see config.txt for further info

OSD NOTE: render_load_png() has been changed to no longer force usage of the artwork directory.
Do a search for "render_load_png(" and replace with "render_load_png(OPTION_ARTPATH, " if needed.

----------------------------
F1 is now free to use for something new.  I was thinking it would be perfect for a context sensitive help file.  Each menu item could have a help tag, that it would look up and display info from an HTML file.
2009-03-28 22:55:34 +00:00
Aaron Giles
9c63c95043 Cleanups and version bump. 2009-03-28 22:10:55 +00:00
Couriersud
f10746f4fa Added comment where to find a list of games using envelope functionality (mametesters). 2009-03-28 00:24:21 +00:00
Aaron Giles
631779146e From: Luis Faria [luis.faria@gmail.com]
Sent: Tuesday, March 24, 2009 2:02 PM
To: submit@mamedev.org
Subject: Sound banking fix for galpani2

Hi, I'm submitting a fix for the current sound banking in galpani2 driver.
I still wasn't able to correctly place the extra sound rom in galpan2g,
but I moved it to oki1, as its pages size is similar.

I've also separated the inputs for gp2se, as it's service mode clearly
shows there are some diferences, mainly with the card dispenser dip.

From all of these, it's clear that this driver incuded 3 different types of
board: galpani2/galpan2t/galpan2g, galpan2j/gp2quiz and gp2se,
the code also reflects these grouping.

Some memory accesses were still not mapped, I've also added them.

It would be very useful to have a video recording of the original, there
are several graphic effects that clearly aren't correct.

And finally, a little something for the okim6295 source, getting rid of that
"magic" value for the sake of readability. ;-)

Keep on the good work.

Regards,
Luis Faria
2009-03-27 13:42:01 +00:00
Aaron Giles
9549910dbc Sent: Saturday, March 21, 2009 3:27 PM
To: submit@mamedev.org
Subject: Simple cheat fix

Attached a very simple fix for a very stupid cut and paste error in my original submission..sorry.

Martin 'Pugsy' Pugh
2009-03-27 13:35:38 +00:00
Olivier Galibert
945137c696 TMS320C25 fixes and enhancements:
- accept IRQs on IDLE
  - actually count irq processing and instruction fetching cycles
  - add support for external serial frame sync with internal
    triggering (aka TXM=1 and FSM=1).
2009-03-26 00:08:37 +00:00
davidhay
64d977ed46 crude 'good enough for naomi gd-rom' MMU implementation
save JVS eeprom settings.
2009-03-25 21:28:39 +00:00
Wilbert Pol
a35ef58b54 CPU cores are now enabled on a per cpu core family basis instead of per cpu core variant. As a result CPUDEFS is no longer needed in the makefile. 2009-03-25 19:39:41 +00:00
Angelo Salese
6b27889b99 Added a preliminary implementation for the SLEEP opcode in SH-4 cpu. This fixes Quiz Keitai Q Mode booting [Angelo Salese] 2009-03-24 14:00:22 +00:00
Luca Elia
c5da27ead9 Fixed pending IRQs handling in the TLCS-90 CPU core [Luca Elia]
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Mahjong Vegas (unprotected set) [Luca Elia, Uki]
2009-03-23 21:26:46 +00:00
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
Couriersud
fb3e6c4b52 * Changed AY8910 to use measurements done one a ZX128
* Following advice on mame testers, remove "channel off" kludge
* Added the post containing measurements to documentation
* Added some debugging stuff
2009-02-26 09:23:49 +00:00
Couriersud
24557839b1 Filter switches (used in games such as scramble) need much higher resolution.
Changed 4066 internal resistance to typical one from datasheet (~270 Ohm)
2009-02-26 09:20:14 +00:00
Aaron Giles
8f6f01f263 Cleanups and version bump. 2009-02-26 09:19:15 +00:00
Aaron Giles
26dd96003f From: Duke [mailto:startaq@gmail.com]
Sent: Wednesday, February 25, 2009 5:20 AM
To: submit@mamedev.org
Subject: CIA update

Hello,

this patch adds support for the /PC output pin to the CIA emulation.
From the datasheet "/PC will go low for one cycle following a read or write of PORT B.". 
This is needed for centronics printer emulation on the MESS side, but I imagine it would 
simplify/correct the emulation in some MAME amiga drivers as well (mquake.c for example).

--Dirk
2009-02-26 09:07:02 +00:00
Aaron Giles
864560d4af From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Monday, February 16, 2009 7:10 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Add some missing static qualifiers

Hi mamedev,

This patch mostly adds missing static qualifiers, plus a few related header/name adjustments.  In particular, I tackled m68kmake.c and tmsmake.c which exposed a fair amount of dead code.

~aa
2009-02-26 08:52:27 +00:00
Aaron Giles
d848af288d From: Christophe Jaillet [christophe.jaillet@wanadoo.fr]
Sent: Monday, February 16, 2009 1:03 PM
To: submit@mamedev.org
Subject: Speed up 'src\mame\video\mcatadv.c'

Hi,

here is a patch against 'src\mame\video\mcatadv.c'

This patch moves a call to 'memory_region' outside of a hot loop in the 'draw_sprites' function.
This gives a fiew pourcents speed up in games such as 'nost'.

Hope this helps,
Best regards,
Christophe Jaillet

--

From: Christophe Jaillet [christophe.jaillet@wanadoo.fr]
Sent: Monday, February 16, 2009 1:53 PM
To: submit@mamedev.org
Subject: Another speed up in 'src\mame\video\mcatadv.c'

Hi,

here is a patch against 'src\mame\video\mcatadv.c'

This patch , by re-arranging the code, give a +/- 5% speed up in the emulation.

Before, we :
    - fetch a pixel,
    - make some computation for lower/higher part of it
    - check if we should render it
    - test for priority
    - update destination if necessary

With this patch, we check priority first in order to avoid useless processing and testing on pixel that can't be displayed due to priority reason. So in the best case, it is faster, in the worse case execution time should be more or less the same because :
       if ((drawxpos >= cliprect->min_x) && (drawxpos <= cliprect->max_x) &&
pix)
is likely to be true (IMO). So the same tests are performed, only the order is different.


Hope this helps,
Best regards,
Christophe Jaillet

--

From: Christophe Jaillet [christophe.jaillet@wanadoo.fr]
Sent: Monday, February 16, 2009 1:09 PM
To: submit@mamedev.org
Subject: Clean up of 'src\emu\tilemap.c' (with the patch...)

Hi,

here is a patch against 'src\emu\tilemap.c'

This patch removes a variable called 'original_cliprect' from the top of 'tilemap_get_tile_flags'.
This variable is useless because all cases that need it, already make the same copy in a variable with the same name, shodawing the former one.

Hope this helps,
Best regards,
Christophe Jaillet
2009-02-26 08:48:51 +00:00
Aaron Giles
6ad69291a8 02930: cpu.mak typo and fix 2009-02-26 08:20:18 +00:00
Aaron Giles
2e22a3a35e Fixed CPU tags in recently added drivers. Added interface to the C6280 sound
chip to let it specify the CPU. Fixed remaining duplicate device tags. Made 
validity check for duplicate devices fatal.
2009-02-26 07:54:28 +00:00
Aaron Giles
6edb0ce093 Add validity check warning to flag games with duplicate device names.
Cleaned up most instances, apart from the HuC6280 situation.
2009-02-25 17:05:09 +00:00
Aaron Giles
96b98ece4f Another batch of tagging, this time for speakers/screens:
SPEAKER/"left" -> "lspeaker"
SPEAKER/"right" -> "rspeaker"
SCREEN/"left" -> "lscreen"
SCREEN/"right" -> "rscreen"
SCREEN/"middle" -> "mscreen"
SCREEN/"center" -> "cscreen"

Added "left" and "right" to the validity check.
2009-02-25 16:19:42 +00:00
Aaron Giles
2388986295 Device tag renaming. Moving away from generic names like "main"
to names that capture the device type as well. Added validity
checks for the short-term to prevent the continuance of this
pattern (which I started :)

Changes:
  CPU/"main" -> "maincpu"
  CPU/"audio" -> "audiocpu"
  CPU/"sound" -> "soundcpu"
  SCREEN/main -> "screen" (since it's the only one)

Eventually, devices will be required to have unique tags within
a machine, regardless of type.
2009-02-25 06:28:42 +00:00
smf-
8135fea45e quick hack to delay installing the spu dma handler until the first write to the spu as driver init is now called after the devices are created. 2009-02-22 11:05:22 +00:00
Couriersud
603142d9a4 Added register SXFER (0x05) - Nothing more. This reg determines SCSI transfer speeds.
scud / scuda now fatalerror with writes to reg # 0x70
2009-02-22 00:15:35 +00:00
Nathan Woods
f79b04bf0f Device-ized the SID code 2009-02-20 12:55:53 +00:00
Phil Bennett
9ca1fe60c8 02931 YM-2151: Distorted or otherwise incorrect sound [Phil Bennett] 2009-02-19 15:51:59 +00:00
Phil Bennett
ee34f2467c 02929: All sets using k007232.c Sound Core: Garbled Music 2009-02-18 20:55:35 +00:00
Nathan Woods
f4ca544b4e Added ATTR_NOTNULL to DAC sound calls 2009-02-18 12:57:39 +00:00
Aaron Giles
cef6764910 Cleanups and version bump. 2009-02-17 15:31:20 +00:00
Aaron Giles
77a98627d9 Remaining regressions. 2009-02-17 15:23:49 +00:00
Nathan Woods
73e1917361 Compilation fix 2009-02-17 12:26:24 +00:00
Aaron Giles
c1c2fc33b3 Changed aborts() to fatalerror() so they don't foul up the regression test runs. 2009-02-16 18:24:48 +00:00
Aaron Giles
51b90f0e85 Added the ability for devices to have their own custom inline config management.
This was primarily added to allow for sound routes to be supported in a way that
is compatible with the current driver structure. A device can now define a
DEVICE_CUSTOM_CONFIG callback which is called whenever one of the 
MCONFIG_TOKEN_DEVICE_CONFIG_CUSTOM_* tokens is encountered. A special token
MCONFIG_TOKEN_DEVICE_CONFIG_CUSTOM_FREE is defined to clean up memory allocated
and/or reset the custom configuration, and is called when the device is torn down
to allow for memory cleanup.

Reimplemented the sound routing using this new mechanism.
2009-02-16 18:07:38 +00:00
Curt Coder
6fc10ff553 Cidelsa changes:
- Combined CDP1869 video and sound parts to one device
- Refactored CDP1852 to use devcb
2009-02-16 07:45:00 +00:00
Couriersud
804db66521 Fix 64bit compile of latch8 2009-02-11 23:02:48 +00:00
Aaron Giles
5cb6bf00e9 Ok, this is The Big One.
Please note: regression testing is in progress, but the first round 
of glaring regressions have already been taken care of. That said, 
there is likely to be a host of regressions as a result of this 
change.

Also note: There are still a few rough edges in the interfaces. I
will try to clean them up systematically once the basic system is
working.

All sound chips are now proper devices.

Merged the sound chip interface into the device interface,
removing any differences (such as the whole ALIASing concept).

Modified every sound chip in the following ways:
 * updated to match the device interface
 * reduced read/write handlers down to the minimal number
 * added the use of get_safe_token() for ensuring correctness
 * other minor cleanup

Removed the custom sound device. The additional work to just make
custom sound cases into full devices is minimal, so I just converted
them all over to be actual devices.

Vastly simplified the sound interfaces, removing the ghastly
sndti_* business and moving everyone over to using tags for
sound identity. sndintrf, like cpuintrf, is now just a header
file with no implementation.

Modified each and every driver that references a sound chip:
 * all memory maps explicitly reference the targeted device via
    AM_DEVREAD/AM_DEVWRITE/AM_DEVREADWRITE
 * 16-bit and 32-bit accesses to 8-bit chips no longer use
    trampoline functions but instead use the 8-bit AM_DEVREAD/WRITE
    macros
 * all references to sound chips are now done via tags
 * note that these changes are brute force, not optimal; in many
    cases drivers should grab pointers to devices in MACHINE_START
    and stash them away
2009-02-11 19:48:39 +00:00
Curt Coder
87ba17e145 Merged in changes from earlier commit. 2009-02-09 10:09:19 +00:00
Curt Coder
08a218dc80 Refactored the ACIA6850 to use devcb.
Trampolines were added since driver state cannot be directly accessed with devcb.
2009-02-09 09:47:11 +00:00
Couriersud
a6c83e9fff Largely a WIP update with some FIXMEs / Co-credit Smitdogg
- Created custom module for run sounds. Running the discrete sound system at 480KHz was not really optimal.
- Reviewed parts list, schematics and pcb pictures
- Brought mario run sound in line with recordings from Smitdogg
- VCO voltage needs to be 0V for this to happen. Verification outstanding
- Capacitors needed some ageing applied as well. To be removed once the VCO issue is clarified.
2009-02-08 23:48:58 +00:00
Angelo Salese
790edbb11b Small bugfix for an SH-2 logging message. 2009-02-08 02:21:02 +00:00
Phil Bennett
991f93ce76 Revert _strdup back to strdup 2009-02-07 20:29:53 +00:00
Phil Bennett
e4f2c2494c Fixed MSVC build. 2009-02-07 18:50:40 +00:00
Couriersud
9991699ed3 Fix bug #2896, #1785, #2801
- (re)implement pm reporting
- If a bit is not modified, do not throw away the whole nibble
2009-02-07 12:15:04 +00:00
davidhay
845e4900b3 TMS57002 preliminary implementation [Olivier Galibert] 2009-02-06 22:50:40 +00:00
Aaron Giles
c4126c1034 bytemask should not mask low bits. Fixes disassembler for CPUs with address
bus shifts. Hopefully doesn't impact anything else.
2009-02-06 13:26:24 +00:00
Angelo Salese
0df8d36d7c 02897: soldivid: Audio regression (David Haywood) 2009-02-04 17:08:31 +00:00
Nathan Woods
f9d6855b54 Changed 6526cia to use devcb 2009-02-04 13:37:15 +00:00
Nathan Woods
6e6e8ef5b1 Made the 6522 VIA implementation use devcb 2009-02-04 04:29:28 +00:00
davidhay
e05e9494f5 relaxed 8 letter setname limitation for clone sets - this is designed to make it easier to add simple suffixes to clone names without truncating the original set name, it isn't designed to be abused and used as an alternate description. [Olivier Galibert]
(I've also updated one or two set names as an example)
2009-02-03 22:19:09 +00:00
davidhay
ae3e5b66e6 fix #define.. stupid copy+paste errors 2009-02-02 22:55:45 +00:00
davidhay
6d0e1723e8 fix comment 2009-02-02 22:55:10 +00:00
davidhay
ed3bf17889 getting the AGEMAME ball rolling.
Moved over some of the drivers (thanks to James Wallace / ageMAME)
2009-02-02 22:52:37 +00:00
Nathan Woods
ebef239e0c MSVC fix [Atari Ace] 2009-02-02 03:04:10 +00:00
R. Belmont
1c5a8cb1bf Improve disassembly of R3000 code that uses the TLB or FPU 2009-02-02 00:48:36 +00:00
Nathan Woods
15b34bc9b5 Devintrf bug fix 2009-02-01 00:13:44 +00:00
Nathan Woods
219639f3d7 1. Added the ability to invoke CPU input lines with devcb callbacks
2.  Changed sp0256 to use devcb callbacks

3.  Updated sauro driver as per #2
2009-01-31 21:23:22 +00:00
Phil Bennett
e4aeab1a20 New games added or promoted from NOT_WORKING status
---------------------------------------------------
Monopoly [Phil Bennett]
Monopoly Classic [Phil Bennett]
Monopoly Deluxe [Phil Bennett]


6850acia: Only adjust the rx/tx bit timers on a control write if the divide ratios have changed.
2009-01-31 20:00:30 +00:00
smf-
8ac4f3cb33 Changed memory_set_direct_region to pass the address returned from the DIRECT_UPDATE_HANDLER back to the memory read function. 2009-01-31 16:57:16 +00:00
Aaron Giles
cc14b2aaa7 Opcode accesses are now marked debugger_access. This is important with the recent
changes to automatically call the read handler if the opcode base cannot be
found.

Changed logging for non-RAM opcode bases so that it does not output in the case
of debugger_access being set.

Fixed logic for deriving direct ranges so that it uses the non-watchpoint-
infected tables for its lookups.
2009-01-30 18:11:46 +00:00
Aaron Giles
8236d216f2 Cleanups and version bump. 2009-01-29 10:18:49 +00:00
Aaron Giles
4141d22d07 02862: Many sets in taitosj.c: During the scroling the lower part of the screen becomes black 2009-01-29 09:51:42 +00:00
Luca Elia
ecd97d30ce Implemented a few more H8/3xx instructions, and added funcube to seta2.c [Luca Elia]
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Funcube 2 [Luca Elia]
Funcube 4 [Luca Elia]
2009-01-28 19:44:29 +00:00
Nathan Woods
7112ab5d3e Changed CA1/CA2/CB1/CB2 device callbacks to be lines 2009-01-28 00:13:21 +00:00
Nathan Woods
a4d12e12ce Converted 6821new to use devcb 2009-01-28 00:05:39 +00:00
Couriersud
c60b81d2aa Fix energy calculation for LS624 2009-01-27 22:28:25 +00:00
Aaron Giles
2fd8c5122b Added new module devcb, which can generically handle conversions between device
read/write functions and various other types of functions. Introduced new
structures and macros to make this possible. 

To take advantage of this, a device must change its interface to replace and 
read/write callbacks with the new devcb_read/write structures. During device 
start time, the device then uses this new devcb module to resolve the information 
in the devcb_read/write structures into a more efficient form. When the device 
needs to call one of the callbacks, it uses the inline devcb_call_read/write 
functions.

Once a device has defined its callbacks as devcb_read/write structures, users
of the device must use the DEVCB_* macros to specify the type and information
about the handler to use:

   DEVCB_NULL = no handler
   DEVCB_HANDLER = a standard device read/write handler
   DEVCB_MEMORY_HANDLER = a memory address space read/write handler
   DEVCB_DEVICE_HANDLER = a device read/write handler for a different device
   DEVCB_INPUT_PORT = an input port

Converted the 8255PPI device to use this new structure, and updated all users
to use the DEVCB macros, removing some unnecessary trampoline functions along
the way.
2009-01-26 16:25:48 +00:00
Couriersud
6c653b943e Spectrum of generated sounds getting near samples.
Still issues with LS123 durations
For skip, samples are twice as short
For run, samples are twice as long
2009-01-25 16:17:31 +00:00
Couriersud
ceb0c0ac4a Resistance is given in KOhm in datasheet formula 2009-01-25 15:28:22 +00:00
Couriersud
84683a2e5b Use formula derived from figures 2 and 3 in LS624 datasheet. Coefficients
where calculated using least square approximation.
This approach gives a bit better audible results compared to the prior approach.
2009-01-25 02:10:31 +00:00
Phil Bennett
a016e312af New clones added
-----------------
Turbo Sub (prototype rev. TSC7) [Jay Gallagher]
2009-01-24 14:16:51 +00:00
smf-
22ef5e0fba fixed building with visual studio. 2009-01-24 10:29:30 +00:00
Nathan Woods
4c07fba864 Compilation fix 2009-01-23 12:03:41 +00:00
Aaron Giles
b02a507c1f Cleanups and version bump. 2009-01-22 10:40:20 +00:00
Aaron Giles
325dadfdc0 On Mon, Jan 19, 2009 at 02:48:05PM +0100, Olivier Galibert wrote:
> On Mon, Jan 19, 2009 at 05:37:35AM -0800, R. Belmont wrote:
> > My mistake.  I thought you were suggesting that we should actually
> > somehow handle malloc failures.  Given that aborting is an OK way to
> > express failure, I'd suggest the return values be changed to DEFER
> > and DONT_DEFER to eliminate the conceptual imbalance of OK/DEFER.
> 
> That's where comes the fact that we have 130 OK/DONT_DEFER and 1
> DEFER.  It makes me think that the exceptional DEFER case should be
> handled by an exceptional function call.
> 
> I know, code talks, but I'm at work right now :-)

Here we go.

  OG.
2009-01-22 10:21:52 +00:00
R. Belmont
899fc5f307 Initialize some structs to fix warnings with some GCC versions. 2009-01-22 03:15:08 +00:00
R. Belmont
51b91e9692 Fix big endian compile/link. 2009-01-22 03:13:55 +00:00
Tomasz Slanina
f05b6469ce Super Othello driver
/current/s/sothello.zip

New games added or promoted from NOT_WORKING status
---------------------------------------------------
Super Othello [Tomasz Slanina]
2009-01-21 20:02:13 +00:00
Phil Bennett
a9b9310693 Defined ROM_LOAD64_WORD/ROM_LOAD64_WORD_SWAP in emu/romload.h 2009-01-21 18:55:20 +00:00
Mirko Buffoni
771e2d4ab4 Fixed clamping to 12 bit range to Okim6376, and adjusted
volume attenuation accordingly (Mirko Buffoni)
2009-01-21 13:45:21 +00:00
Aaron Giles
170b4c2752 Sound cores no longer allocate their own tokens. Instead they return a new
integer value indicating the size of token they want, and the core allocates
it for them. This mirrors the standard device behavior.
2009-01-18 20:24:42 +00:00
Aaron Giles
68a0e2c86a Removed redundant config parameter from SND_START. 2009-01-18 18:22:46 +00:00
Aaron Giles
aad099ad00 DRC frontends must do their own opcode fetching unfortunately. Updated all
DRC cores to do this. Also tweaked a few oddities in the SH2 DRC.
2009-01-18 00:39:40 +00:00
Aaron Giles
eff9223966 Removed some stray ADDR2BYTE/BYTE2ADDR macros that have been replaced by
inline functions.
2009-01-17 23:11:07 +00:00
Aaron Giles
eb8366c740 Added new #define ENDIANNESS_NATIVE, which maps to either ENDIANNESS_LITTLE
or ENDIANNESS_BIG based on the LSB_FIRST definition. Unlink LSB_FIRST,
ENDIANNESS_NATIVE always exists and can be used in expressions without
invoking the preprocessor.

Added macro ENDIAN_VALUE_LE_BE() which selects one of two values based
on the endianness passed in. Also added NATIVE_ENDIAN_VALUE_LE_BE()
which calls ENDIAN_VALUE_LE_BE with ENDIANNESS_NATIVE.

Updated a number of drivers and call sites to use these macros in favor
of #ifdef LSB_FIRST.
2009-01-17 23:03:17 +00:00
Wilbert Pol
850b8d37ba Fixed cpu reset for upd78c06. 2009-01-17 16:36:34 +00:00
Wilbert Pol
343aa22d28 Force recalculation of screen parameters when only the input clock changes. 2009-01-17 13:55:16 +00:00
Wilbert Pol
dd4b5dbe5f Improved implementations for undocumented instructions 63, 67, 6f, 73, 77, 7b, 7f, 9c, 9e, ab, e3, e7, ef, f3, f7, fb, and ff in the n2a3 cpu core. 2009-01-17 10:13:13 +00:00
Phil Bennett
804434aa15 Stop crash/assert when trying to decrease the debugger memory window bytes per line to 0. 2009-01-16 18:21:18 +00:00
Nathan Woods
254936ce1a Fixed compilation errors if HAS_SAMPLES is 0 2009-01-15 12:35:33 +00:00
Aaron Giles
7f2e4e19be Cleanups and version bump. 2009-01-15 08:33:24 +00:00
Andrew Gardner
6ea9ca0589 Virtual Combat driver improvements. [Jason Eckhardt, Andrew Gardner]
* Graphics decoded, video improved, inputs mapped.

Intel i860 CPU core added. [Jason Eckhardt]


(The CPU core doesn't have accurate cycle counts for each opcode yet, but it'll have them soon.  I believe that is the main culprit behind the sync of the two i860s and the 68k being outta' whack.  You can still see the i860s do their thing and rasterize a voxel? groundplane and some simple polygon bad guys).
2009-01-15 04:40:57 +00:00
Phil Bennett
2d62f3a07e Updated OKIM6295 volume table to reflect actual chip behaviour. 2009-01-14 23:09:31 +00:00
Aaron Giles
9b47e0401f 00976: vaportrx: Crashes during the results section immediately after the race. 2009-01-14 16:23:52 +00:00
Aaron Giles
a5594a0a5c 02824: deadlock when using -state with -mngwrite/-aviwrite 2009-01-14 15:35:54 +00:00
Aaron Giles
d29f820164 Fix inverted function name. 2009-01-14 14:13:19 +00:00
Aaron Giles
2a780fc07d From: Oliver Stoeneberg [mailto:oliverst@online.de]
Sent: Sunday, January 11, 2009 5:52 AM
To: submit@mamedev.org
Subject: unreachable code cleanup

This patch cleans up the usage of unreachable code (mostly 
unnecessary breaks after returns in switch - case). A few case of 
really unused code were also discovered. I marked thos with FIXME 
comments.
I based this cleanup on teh output of cppcheck. It does still missing 
a few cases of unreachable code, so there might be future patches to 
address more cases.
2009-01-14 06:10:30 +00:00
Aaron Giles
62bddb4fe6 Added digitalker support to scorpion driver. [Olivier Galibert] 2009-01-14 06:07:26 +00:00
Aaron Giles
81fce8af37 From: Duke [mailto:startaq@gmail.com]
Sent: Friday, January 09, 2009 4:14 AM
To: submit@mamedev.org
Subject: Patch to remove useless INLINE defines

Hello,

this patch removes several occurrences of "#define INLINE" in CPU and
sound cores, which I assume are useless since the makefile already
defines this.

--Dirk
2009-01-14 06:00:48 +00:00
Aaron Giles
40d9394d3d From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Tuesday, January 06, 2009 7:39 PM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Remove sndindex from SND_START

Hi mamedev,

This is a baby step towards making the sound cores proper devices.  It
removes the sndindex parameter from SND_START.  Cores should use the
device pointer or tag as appropriate.  I also removed a few
address_space hacks taking advantage of the existing fake sound
device.

~aa
2009-01-14 05:59:32 +00:00