Commit Graph

28578 Commits

Author SHA1 Message Date
Ivan Vangelista 7f6756ef15 Updated upd1771.c to use devcb2 (nw) 2014-03-11 17:25:40 +00:00
Oliver Stöneberg c8ea1c0d04 fixed GCC/clang compilation / fixed some forward declarations (nw) 2014-03-11 17:13:40 +00:00
David Haywood e647a2b812 just some experimentation with the sound hardware on MegaPhoenix, still wrong (nw) 2014-03-11 16:45:36 +00:00
Michaël Banaan Ananas 821d24f77b documentation + small cleanup. No functional change 2014-03-11 16:44:16 +00:00
Aaron Giles b81f497a93 Fix a couple of compile errors, leftover debugging. 2014-03-11 15:58:45 +00:00
Aaron Giles 4ea9df02a1 Moved core template container classes up from emutempl.h to coretmpl.h:
[Aaron Giles]
 * these classes now no longer take a resource_pool; everything is
    managed globally -- this means that objects added to lists must be
    allocated with global_alloc
 * added new auto_pointer<> template which wraps a pointer and auto-frees
    it upon destruction; it also defaults to NULL so it doesn't need to
    be explicitly initialized
 * moved tagged_list template to tagmap.h

Redo of the low-level memory tracking system: [Aaron Giles]
 * moved low-level tracking out of emu\emualloc into lib\util\corealloc
    so it can be shared among all components and used by core libraries
 * global_alloc and friends no longer use a resource pool to track
    allocations; turns out this was a wholly redundant system that wasted
    a lot of memory
 * removed global_resource_pool entirely
 * added global_free_array to delete arrays allocated with 
    global_alloc_array
 * added tracking of object versus array allocation; we will now error
    if you use global_free on an array, or global_free_array on an object

Added new utility helper const_string_pool which can be used to 
efficiently accumulate strings that are not intended to be modified.
Used by updated makelist and software list code. [Aaron Giles]

Updated png2bdc and makelist tools to not leak memory and use more modern
techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles]

Deprecated auto_strdup and removed all uses by way of caller-managed 
astrings and the software list rewrite. [Aaron Giles]

Rewrote software list management: [Aaron Giles]
 * removed the notion of a software_list that is separate from a
    software_list_device; they are one and the same now
 * moved several functions into device_image_interface since they really
    didn't belong in the core software list class
 * lots of simplification as a result of the above changes

Additional notes (no whatsnew):

Moved definition of FPTR to osdcomm.h.

Some changes happened in the OSD code to fix issues, especially regarding
freeing arrays. SDL folks may need to fix up some of these.

The following devices still are using tokens and should be modernized
(I found them because they kept their token as void * and tried to
delete it, which you can't):

namco_52xx_device (mame/audio/namco52.c)
namco_54xx_device (mame/audio/namco54.c)
namco_06xx_device (mame/machine/namco06.c)
namco_50xx_device (mame/machine/namco50.c)
namco_51xx_device (mame/machine/namco51.c)
namco_53xx_device (mame/machine/namco53.c)
voodoo_device (emu/video/voodoo.c)
mos6581_device (emu/sound/mos6581.c)
aica_device (emu/sound/aica.c)
scsp_device (emu/sound/scsp.c)
dmadac_sound_device (emu/sound/dmadac.c)
s3c2440_device (emu/machine/s3c2440.c)
wd1770_device (emu/machine/wd17xx.c)
latch8_device (emu/machine/latch8.c)
duart68681_device (emu/machine/68681.c)
s3c2400_device (emu/machine/s3c2400.c)
s3c2410_device (emu/machine/s3c2410.c)
strataflash_device (mess/machine/strata.c)
hd63450_device (mess/machine/hd63450.c)
tap_990_device (mess/machine/ti99/990_tap.c)
omti8621_device (mess/machine/omti8621.c)
vdt911_device (mess/video/911_vdt.c)
apollo_graphics_15i (mess/video/apollo.c)
asr733_device (mess/video/733_asr.c)
2014-03-11 15:54:58 +00:00
Miodrag Milanovic b05606404a k007342_device callbacks and params modernized as example how to do it :) (nw) 2014-03-11 14:35:17 +00:00
Alex W. Jackson 04b9d9e0f9 Checkpoint: gfx_elements now have a pointer to a palette_device (which is not actually initialized or used yet), and no longer have an unneeded pointer to the running_machine. Removed some gfx_element getter methods described in comments (by Aaron?) as 'a bit gross', and fixed the tiny handful of drivers that were using them (nw) 2014-03-11 14:28:45 +00:00
R. Belmont 940bb2190e (MESS) apollo: cleanup (nw) 2014-03-11 13:53:25 +00:00
Curt Coder 0a5d2f5dfa mc6852: Fixed state saving. (nw) 2014-03-11 13:44:27 +00:00
David Haywood 51871ba957 workaround for internal compiler error when using vs2013 64-bit (nw) 2014-03-11 13:39:45 +00:00
Curt Coder 22b1da4b2c (MESS) mc6852: devcb2 + diserial. (nw) 2014-03-11 13:36:53 +00:00
Oliver Stöneberg 6477207016 disabled another check with SANITIZE=undefined (nw) 2014-03-11 12:45:14 +00:00
Oliver Stöneberg 04f100f176 removed left-over legacy_cpu_device usage from src/emu/cpu/arm7/arm7core.h (nw) 2014-03-11 10:43:59 +00:00
Oliver Stöneberg f965b3985b fixed usage of uninitialized members in ti_fdc_device and ti_fdc_legacy_device (nw) 2014-03-11 10:40:51 +00:00
Nathan Woods 35761c9380 Merge branch 'master' of ssh://mess.org/mame into new_menus 2014-03-11 10:04:53 +00:00
Nathan Woods 4798404abb Merge branch 'master' of ssh://mess.org/mame into new_menus 2014-03-11 10:03:30 +00:00
Nathan Woods b3a8061314 Merge branch 'master' of ssh://mess.org/mame into new_menus 2014-03-11 10:02:01 +00:00
Nathan Woods 99f8a05178 Merge branch 'master' of ssh://mess.org/mame into new_menus 2014-03-11 10:00:26 +00:00
Nathan Woods 1d7dae4e41 Merge branch 'master' of ssh://mess.org/mame into new_menus 2014-03-11 09:58:50 +00:00
Nathan Woods 96c45f2a5f Merge branch 'master' of ssh://mess.org/mame into new_menus 2014-03-11 09:58:43 +00:00
mahlemiut 662bd6cf43 hd61830: made character mode also work in 16-bit chunks. Fixes text display on the Hunter 2. 2014-03-11 09:21:41 +00:00
Olivier Galibert 72c4cc20f8 Add an osd_truncate call to truncate files [O. Galibert] 2014-03-11 09:19:17 +00:00
mahlemiut dff9b4b28b hunter2: fixed Shift-6/7 correctly this time. (no whatsnew) 2014-03-11 08:57:06 +00:00
smf- 18fda43ee7 Fixed c64 restore key and c128 crashing if exp_irq_w called at device_start() time. 2014-03-11 08:16:57 +00:00
mahlemiut 8b069e3424 hunter2: missed one. (no whatsnew) 2014-03-11 07:53:08 +00:00
mahlemiut 9bafc73c67 hunter2: fixed a few more key definitions. (no whatsnew) 2014-03-11 07:42:23 +00:00
mahlemiut c28c003834 nsc810: fixed I/O port writing, fixing the keyboard on the Hunter 2
hunter2: switched S and C keys around
2014-03-11 06:57:05 +00:00
Curt Coder 7d5ef42206 Removed unselectable slot options (SLOT_INTERFACE_INTERNAL) from the -listxml output. [Curt Coder] 2014-03-11 06:54:42 +00:00
Curt Coder beff1ef9a0 (MESS) Fixed validation. (nw) 2014-03-11 06:53:56 +00:00
Curt Coder 20e9afdb96 (MESS) Fixed regressions. (nw) 2014-03-11 06:45:54 +00:00
Curt Coder a5b609f658 (MESS) Fixed screen regressions. (nw) 2014-03-11 06:36:58 +00:00
Curt Coder e41407d467 (MESS) pofo: Fixed screen regression. (nw) 2014-03-11 06:29:39 +00:00
Curt Coder 024457765f (MESS) mm1m6: Fixed screen regression. (nw) 2014-03-11 06:28:42 +00:00
Curt Coder 755c7b4b5d (MESS) vt100: Fixed screen regression. (nw) 2014-03-11 06:26:52 +00:00
Curt Coder afa6dbee84 (MESS) wangpc: Fixed palette regression. (nw) 2014-03-11 06:22:36 +00:00
mahlemiut c86b56168c Added basic implementation of the NSC810 RAM-I/O-Timer device, and plugged it into the Husky Hunter 2 driver. [Barry Rodewald] 2014-03-11 06:05:35 +00:00
Michaël Banaan Ananas e6dcbb90e4 no use 2014-03-11 02:21:02 +00:00
Oliver Stöneberg 485142eb87 added TODOs about potential overflows in core_i64_hex_format() and core_i64_oct_format() 2014-03-10 22:28:24 +00:00
Oliver Stöneberg d59e387a7a fixed usage of uninitialized member in ti_rs232_pio_device (nw) 2014-03-10 22:17:56 +00:00
Oliver Stöneberg 32375be1f9 fixed usage of uninitialized member in nouspikel_usb_smartmedia_device (nw) 2014-03-10 22:16:20 +00:00
Oliver Stöneberg 37f037b21a fixed usage of uninitialized member in horizon_ramdisk_device (nw) 2014-03-10 22:13:50 +00:00
Oliver Stöneberg 4aebf9dc8d fixed usage of uninitialized meber in ti_speech_synthesizer_device (nw) 2014-03-10 22:12:01 +00:00
Oliver Stöneberg 168f3efc8f fixed usage of uninitialized meber in ti99_datamux_device (nw) 2014-03-10 22:11:49 +00:00
Oliver Stöneberg d334361224 fixed usage of uninitialized meber in snug_bwg_device (nw) 2014-03-10 22:08:06 +00:00
Oliver Stöneberg 434abb4e3e fixed usage of uninitialized meber in tms9995_device (nw) 2014-03-10 22:04:07 +00:00
Mike Naberezny 05da05d4a7 (MESS) hardbox: Changed default ROMs to v2.4, added Corvus/Sunol notes. (nw) 2014-03-10 21:09:17 +00:00
Ivan Vangelista c7978167bc namcona1: moved some functions in the driver state (nw) 2014-03-10 19:05:47 +00:00
Ivan Vangelista f059fb9013 Reverted changes to decbac06 device flipscreen support, now that this can be done properly.
Also reverted the decmxc06 changes. This breaks again the flipped sprites in some games, but fixes the actfanct regression. (nw)
2014-03-10 18:04:45 +00:00
Ivan Vangelista 8acaf0366b (MESS) fixed specialm and specialp debug crash and removed some trampolines (nw) 2014-03-10 17:20:05 +00:00