summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
Commit message (Collapse)AuthorAgeFilesLines
* From Oliver Stoeneberg [oliverst@online.de] Aaron Giles2008-09-0477-181/+242
| | | | | | | | | | | | | | | | | | | | | | | This contains three different patches: 20080829.patch Introducing the running_machine* parameter in a few more places. Next step would be to make the execute_* function aware of it, if that's OK. Also used the machine parameter in memory.c were it's available. 20080829_1.patch The already discussed and probably being rejected removal of dreprecat.h from debugger.h. I think this is a low-risk patch (we had worse cleanups) and it lowers the risk of new code using deprecated function beign introduced in MAME/MESS, because there is no invisible inclusion of deprecat.h anymore (I think one driver - kofball.c - got it with deprecated code). 20080829_2.patch The last Machine -> machine conversion I had sitting in my local tree. I know the proper way is to turn them into devices, but I still haven't looked into that.
* Split core laserdisc functionality into separate file ldcore.c. Aaron Giles2008-09-046-4/+3290
| | | | | | | | | | Each player now gets its own source file, along with new hooks which enable more precise control over the behavior. Updated the PR-8210 and LD-V1000 implementations to the new spec. Other players will come online shortly. Changed scan behavior so that it requires a constant stream of signals to continue scanning. Updated ldplayer accordingly.
* Changed refreshspeed target to 0.25Hz below rate provided, in order to ↵ Aaron Giles2008-09-031-2/+4
| | | | | | guarantee that inexact timings do not lead to sound stuttering.
* [COP410] Enabled internal program map. Curt Coder2008-09-011-2/+2
|
* Changed all MCS-48 chips to have a 12-bit address space, regardless Aaron Giles2008-09-011-12/+1
| | | | of internal ROM size.
* commented out debug code that mingw didn't like because it was wrong. smf-2008-09-011-2/+2
|
* converted timekeeper to a device, all default contents are loaded from disk. ↵ smf-2008-09-012-164/+301
| | | | slapshot & opwolf3 read/write memory map have been merged.
* update TMS5100 LPC tables based on mathematical analysis of 1st and 2nd ↵ Jonathan Gevaryahu2008-09-011-16/+16
| | | | derivatives of the values and comparison to the best quality patent image, which nearly always showed which values were in error. Some off-by-one issues may remain, but it is now nearly perfect. Further perfection will require PROMOUT dumping, which is planned.
* [ARM7] Remove unnecessary hooks so MRC and MCR disassemble properly. R. Belmont2008-08-312-36/+3
|
* [M377xx] - Fixed: 8-bit I/O port reads no longer cause bogus reads of ↵ R. Belmont2008-08-311-1/+14
| | | | neighboring ports.
* mcs48.c: Use banking to handle ea line. Couriersud2008-08-302-22/+51
| | | | | | * Adds MCS48_INTERNAL_ROMBANK define to header * Drivers which need to control the ea line have to initialize banking for internal/external rom This is not yet optimal but works as expected with existing drivers and modified mario.c
* New working driver for older InterFlip gambling games. [Grull Osgo, Roberto ↵ Roberto Fresca2008-08-301-0/+1
| | | | Fresca]
* mcs48: EA line / MB8884 Couriersud2008-08-301-4/+13
| | | | | | | | * MB8884 is a I8035 ==> 12 addr, no internal rom map * EA line high: external access - this is "default" The whole EA implementation is as Aaron named it, cheeky. EA=1 external rom access, EA=0 internal rom access. But all variants are treated the same, i.e. for i8035, MB8884, I8039, the external rom is used in the same way as the internal.
* mcs48.c: Write p1 and p2 on reset Couriersud2008-08-291-0/+2
| | | These ports are actually ports which sink current on logical 0. With a logical 1, they are in high impedance mode and may be read. The high impedance is treated as logical 1 by TTL gates connected to them.
* Started removing extraneous enable lines from the discrete modules. Most ↵ Derrick Renaud2008-08-293-241/+208
| | | | modules are always enabled anyways.
* Optimized DISCRETE_555_CC Derrick Renaud2008-08-292-58/+184
| | | | | Fixed bug in my recent DISCRETE_MIXER update. Note: the DISCRETE_MIXER bug caused most of the speed increase of its optimization and caused some games to crash. Donkey Kong is now at 14% faster on my machine then when I started. Better then nothing.
* 02174: dkongjr and clones + mario and clones + pestplce: Music speed regression Aaron Giles2008-08-291-1/+2
|
* Optimized DISCRETE_555_ASTABLE_CV and DISCRETE_MIXER. Derrick Renaud2008-08-294-163/+181
| | | For those keeping score dkong was at 268% on my computer before I started optimizing. It now runs at 342%. The 555 and mixer changes also speed up just about every current discrete game.
* Optimized DISCRETE_RCINTEGRATE and DISCRETE_555_ASTABLE. Derrick Renaud2008-08-283-51/+105
|
* Optimized DISCRETE_RCDISC_MODULATED. Derrick Renaud2008-08-284-253/+324
| | | | | | Added X_TALs to circus. Donkey Kong now runs 10% quicker on my machine.
* Cleanups and version bump.mame0127u1 Aaron Giles2008-08-2814-105/+105
|
* From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-08-284-3/+5
| | | | | | | | | | | | | | | | Sent: Monday, August 25, 2008 8:16 AM Subject: [patch] Remove useless backslashes Hi mamedev, I've been using pmd 4.2.2 to analyze the MAME codebase for duplicate code, and it's C parser complains about useless backslashes and dangling defines in #if...#endif sections. Here's a patch that fixes this, and additionally fixes one real bug, a string in djmain.c was malformed, it's curious it compiled. ~aa
* From: Christophe Jaillet [mailto:christophe.jaillet@wanadoo.fr] Aaron Giles2008-08-281-2/+2
| | | | | | | | | | | | | Subject: Profiler related #2 (v2) Hi, this a revised version of a patch I sent yesterday. This one is much more cleaner, and the speed improvement is now significant enough to come out of the profiling noise. More over, this one compiles correctly... ;-) Best regards, Christophe Jaillet
* Changed slider controls into a menu. For now, removed the old direct access Aaron Giles2008-08-287-426/+584
| | | | | | mechanism; instead, you must access the sliders via the main menu. While in the menu, you can use the ~ key to turn off the menu display and leave only the bar display, in order to see more of the screen.
* SH4, Naomi, and Hikaru updates [Samuele Zannoli] R. Belmont2008-08-273-46/+48
| | | | | | | | | - Fixed SH-4 core to support multiple SH-4s - Fixed LDCSR instruction - Fixed SH-4 I/O ports - Skeleton Hikaru driver with memory maps and both SH-4s - Fixed JVS/Maple translation so Naomi 2 BIOS runs
* Significant cleanup/rewrite of the MCS-48 CPU core: Aaron Giles2008-08-264-1072/+994
| | | | | | | | | | | | * removed redundant and unused definitions from header file * renamed constants and functions to be MCS48* prefixed * re-verified all opcode behaviors and timing * changed illegal opcodes to count 1 cycle to avoid infinite loops * changed EA behavior so that it is a push from the driver instead of a pull on each opcode fetch (this may change further in the future). * reimplemented IRQ generation and timer behavior according to documentation * updated all drivers accordingly * fixed several uses of PULSE_LINE, which no longer works
* Added new function tilemap_set_pen_data_offset(). Nicola Salmoria2008-08-262-2/+27
| | | | | While this isn't 'free' as tilemap_set_palette_offset() is (when the offset changes, the pixmap cache needs to be invalidated), it helps removing some redundant code from drivers. Updated snk.c and snk68.c to take advantage of the new function.
* 02147: Annoying behaviour of highlighted entries in minimal UI Aaron Giles2008-08-261-8/+3
|
* i8039 -> mcs48 Aaron Giles2008-08-264-9/+9
|
* rendersw.c: Added more comments Couriersud2008-08-251-7/+25
| | | * fix clamping bug introduced by my last update
* fix TSY instruction in M4510 cpu (used in MESS) Roberto Zandona2008-08-252-3/+2
|
* Changed i8039 core to use the data address space for internal RAM. Aaron Giles2008-08-255-116/+256
| | | | | | | | | | | | | | | | | | Register access is still performed using direct memory accesses, but the pointers are fetched through the memory system. Now you can see i8039 RAM in the debugger. Added internal memory maps of the appropriate size so that drivers don't need to declare this RAM. Added a number of variants from the MCS-48 family as it was not clear which variants had what capabilities. All documented variants now have internal memory maps for internal ROM and RAM. Removed memory maps from drivers using embedded ROM/EPROM/OTPROM since they are defined by the core now. Added some initial logic to boot and run the PR-8210 ROM (i8049) in ldplayer.c. Currently this is disabled behind a compile-time switch. Once this is working, the plan is to incorporate this into the existing PR-8210 emulation, but we're not there yet.
* MSVC fixes. MSVC cannot handle offsetof(struct, member[index]); once an Aaron Giles2008-08-252-32/+58
| | | | | | | | | | | | | array is involved, it seems to think it is not a constant expression. Added MDRV_DEVICE_CONFIG_DATA32_EXPLICIT() macro which takes an explicit size and offset. Changed MDRV_DEVICE_CONFIG_DATA32() to be built off of this macro. Added MDRV_DEVICE_CONFIG_DATA32_ARRAY() and MDRV_DEVICE_CONFIG_DATA32_ARRAY_MEMBER() which do explicit computations of the offset to work around MSVC's problems. Replicated these changes for DATA64 and DATAPTR macros. Updated latch8.h to use the new macros.
* Improved dip switch emulation in zn.c, ram hacks to get games booting are no ↵ smf-2008-08-255-112/+247
| | | | | | | | | | | | | | | | | | | | longer required. Added gun emulation for judge dredd. Fixed judge dredd ide emulation when building with visual studio. Mapped primal rage 2 inputs Mapped player 3 & 4 inputs for 1 on 1 government, these are now the default with the 6 button inputs only mapped for games that need them. Converted AT28C16 to a device. Added preliminary support for devices to load/save nvram. New games added or promoted from NOT_WORKING status Super Football Champ (Ver 2.5O) Super Football Champ (Ver 2.4J) Magical Date / Magical Date - dokidoki kokuhaku daisakusen (Ver 2.02J) Fighters' Impact (Ver 2.02O) Judge Dredd (Rev C Dec. 17 1997) Judge Dredd (Rev B Nov. 26 1997)
* Slight optimization of ycc_to_rgb Couriersud2008-08-241-13/+10
|
* latch8: Renamed MDRV_LATCH8_MASK and added MDRV_LATCH8_INVERT Couriersud2008-08-242-13/+32
| | | | | | | | | * renamed MDRV_LATCH8_MASK to MDRV_LATCH8_MASKOUT to clarify meaning * Added MDRV_LATCH8_NOSYNC to specify which lines do not reed a cpu sync * Updated drivers The MDRV_LATCH8_NOSYNC is not used in dkong.c. All latches need synchronization because at least one line does need a cpu synchronization.
* some fix for m4510 core Roberto Zandona2008-08-244-43/+39
|
* some fix for m4510 core: Roberto Zandona2008-08-232-4/+4
| | | | | - banking in read and write operations - jsr and jsrx instruction
* Adds new generic latch device Couriersud2008-08-223-0/+398
| | | | | | | | | | | 8 bit latch interface and emulation Generic emulation of 74LS174/175, 74LS259 and other latches. Apart from providing synched latch operation, these latches can be configured to read their input bitwise from other devices as well and individual bits can be connected to discrete nodes. Please see audio/dkong.c for examples.
* discrete.c: Added save state for node->output Couriersud2008-08-221-0/+4
| | | * Ensures that input nodes survive save states
* added Discrete Sound for Starship 1. I still need to properly emulate the ↵ Derrick Renaud2008-08-223-56/+114
| | | | MC3340.
* Added PR-8210 support to the ldplayer. Fixed step forward command on the ↵ Aaron Giles2008-08-224-15/+36
| | | | | | | | | | | | PR-8210. 02136: cubeqst: from minimal UI cubeqst requires the optional CHD 02127: xymg: The game name should be Xing Yun Man Guan and "Pin Yin:"should be omitted 02138: flamegun: Debugger/Cheat System upper case cpu tag of MAIN doesn't work 02139: In audio/system16.c, there is a reference to REGION_SOUND1 02133: chindrah: The title of Zhong Guo Long?(Hong Kong,V011H) is Dong Fang Zhi Zhu(Hong Kong, V011H) 02126: corrupt CHDs are reported as missing
* Fixed problem that would cause the "Return To Prior Menu" menu item to not stick Nathan Woods2008-08-211-0/+2
| | | | | | if one is calling ui_menu_reset() with UI_MENU_RESET_REMEMBER_POSITION, and that menu item is selected
* devintrf.c: add devtag_get_device(machine, type, tag) to retrieve the ↵ Couriersud2008-08-202-0/+23
| | | | | | device_config for (type, tag) * This is needed, if you need to read a device or device status outside a AM_DEVREAD context.
* added 8303 ROM to the games using it and updated MCU simulation to match the ↵ Nicola Salmoria2008-08-202-11/+40
| | | | new findings
* MESS-specific fixes Nathan Woods2008-08-202-2/+5
|
* Fix m68k irq line support. Aaron Giles2008-08-205-45/+72
| | | | | | | | | | | | | | | | | Before this patch a: cpunum_set_input_line(5, ASSERT_LINE); cpunum_set_input_line(3, ASSERT_LINE); cpunum_set_input_line(3, CLEAR_LINE); loses the state of line 5. This patch fixes it by adding an explicit but optional "virtual irq line" support to the 68k interface. Fix m68k interrupt handling by some drivers. Clearing the NMI line to clear all the IRQ lines worked, but it just doesn't make sense. Now that the irq lines are really independant, the handling can be simplified.
* Discrete cleanups and fixed discrete logging. Derrick Renaud2008-08-207-1281/+1398
|
* Some MESS specific fixes. Wilbert Pol2008-08-192-2/+4
|
* Readded generic calls to install memory handlers that were in long before Nathan Woods2008-08-192-0/+38
| | | | | 0.126u5 - these are useful on the MESS side for things like the PC driver