Commit Graph

256 Commits

Author SHA1 Message Date
Miodrag Milanovic
fec65e0b57 Cleanups and version bump 2014-04-07 06:04:18 +00:00
Oliver Stöneberg
f2de945ef9 use ARRAY_LENGTH (nw) 2014-04-03 22:48:35 +00:00
Miodrag Milanovic
de513a0f98 reverting, sorry for this vconv needs to be updated (nw) 2014-03-31 10:23:22 +00:00
Miodrag Milanovic
2cc9ca4c5e VS2013 x64 is little bit more anal about signed/unsigned comparison (nw) 2014-03-31 10:06:05 +00:00
Oliver Stöneberg
c8b93e57d2 added some library dependencies for Visual Studio (nw) 2014-03-31 08:52:09 +00:00
Olivier Galibert
1068beee0e we need to find a solution there (nw) 2014-03-26 10:20:32 +00:00
Couriersud
61300bfcb8 netlist: Nice performance increase by removing logic terminals from net if they are inactive. Introduced a linked-list class to abstract linked-lists. Fixed deactivating devices. You have to enable this because it is not guaranteed to be timing-exact. [Couriersud] 2014-03-23 16:52:07 +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
Oliver Stöneberg
5278254236 rest of ATTR_PRINTF review (nw) 2014-02-25 12:25:33 +00:00
Oliver Stöneberg
aa785afb99 first round of printf fixes (nw) 2014-02-25 11:55:35 +00:00
Couriersud
bd09f4dbc0 Fixed a netlist crash on clang due to ATTR_NORETURN. Also fixed some debug statements. [Couriersud] 2014-02-24 23:47:40 +00:00
Couriersud
5c01688be4 Fixed nltool -listdevices. Thanks Oliver. 2014-02-21 19:03:10 +00:00
Alex W. Jackson
8057d886d9 Fix tools compile (nw) 2014-02-20 22:19:57 +00:00
Couriersud
f3548f7f41 Abstracted netlist sources. This is a first step to support libraries (e.g. for opamps). [Couriersud] 2014-02-19 20:53:31 +00:00
Couriersud
52c0b7efbe Netlist bugfixes:
- fixed completely broken parser.
- fixed reset (consistent again)
- added "warning" and "log" to "error".
- "-oslog" now displays some information
2014-02-01 16:28:54 +00:00
Wilbert Pol
2813a9510c Added 8x300 to unidasm (nw) 2014-01-21 19:53:12 +00:00
Couriersud
91d887ac7c Added a "-listdevices" option to nltool to list all available devices. Simplified code. [Couriersud] 2014-01-08 01:28:29 +00:00
Couriersud
a8a62c3212 Enhanced the netlist parser and cleaned pong.c. Also added a folder nl_examples which contains standalone netlist examples. [couriersud]
The examples have a ".c" suffix. In eclipse, I get automatic syntax parsing and error notifications. The parser treats "#" preprocessor defines/includes just as comments.

All of these examples can be run through nltool:

./nltool -f nl_examples/opamp.c -t 1 -l OUT

runs the opamp example for 1 second of emulation time and logs the terminal named "OUT" to "netlist_log_OUT.log".

I'll post a simple script to the list to visualize those logs using gnuplot.
2013-12-31 15:35:08 +00:00
Couriersud
f6a91bbb13 Further untangled nl_base.[hc] and mame-specific netlist.c. No wn 2013-12-29 01:27:49 +00:00
Couriersud
8ca799371f Alignment of netlist with MAME standards. Inputs to netlist are now registered using by MCFG_* as mame subdevices and exhibit the usual writeXX/readXX methods including a PORT_CHANGED method. This allows direct linking to inputs. [Couriersud] 2013-12-27 18:14:07 +00:00
Couriersud
93a381dd41 Added a dry-run option (-d) to srcclean. Know what you are doing :-) [Couriersud] 2013-12-26 20:13:05 +00:00
Couriersud
c7121ecccb Updated srcclean source following smf comments. No WN. 2013-12-26 19:24:09 +00:00
Couriersud
e73ee5e6ed Added a "-u" (for unix) flag to srcclean to produce unix-style endings. [Couriersud] 2013-12-26 00:17:36 +00:00
Miodrag Milanovic
ca546caa6e Cleanups and version bump 2013-12-24 07:24:51 +00:00
Michaël Banaan Ananas
72b7c79f64 fix compile 2013-12-19 15:44:05 +00:00
Couriersud
614b76c0fe Pong update:
- based on feedback from IRC hopefully fixed issues like "jumping"
- adjusted VR1 and VR2 to 50%
- disabled all printf output.
2013-12-19 11:58:05 +00:00
Scott Stone
3b4730b4ce jedutil.c: [Kevin Eshbach]
- Corrected the output of the PAL20X4, PAL20X8, PAL20X10 to show the XOR on the relevant sum of products.
- When viewing a device the size of the JED file is verified to match the size of the device.
- Replaced hard-coded symbol strings with constants.
- Started experimental work for supporting RICOH PAL’s.  (Currently ifdef'ed out.)
- Added support for viewing the following devices and the corresponding regression test data.
  (PALCE16V8, PAL10P8, PAL12P6, PAL14P4, PAL16P2, PAL16P8, PAL16RP4, PAL16RP6, PAL16RP8, PAL6L16, PAL8L14, PAL12H10, PAL12L10, PAL14H8, PAL14L8, PAL16H6, PAL16L6, PAL18H4, PAL18L4, PAL20C1 and PAL20L2)
2013-11-19 22:38:39 +00:00
smf-
2262e3268e I think I deserve equal blame after the amount of work I did on this (nw) 2013-11-13 18:37:42 +00:00
Robbbert
9161a328e0 commit old stuff that has been lying around for a while
1. romcmp - increase max number of files
2. romcmp - allow compare of any size file (not all roms are power-of-2)
3. ravens - mark as working
2013-11-10 12:50:16 +00:00
Aaron Giles
5d0ce54f9e Bulk convert files that already had standard BSD license in my name
to new license tagged form.
2013-10-16 08:14:49 +00:00
Miodrag Milanovic
96aa5e1c08 Cleanups and version bump 2013-09-17 06:47:03 +00:00
Oliver Stöneberg
2207e724e3 removed accidental change from src/tools/chdman.c (nw) 2013-09-05 18:04:14 +00:00
Robbbert
11a4c2cfbe Updates to jedutils and other minor things [Kevin Eschbach]
-          Documentation on the earlier version of the Deco Cassette System

-          Documented some pals on a bootleg Free Kick that need to be dumped

-          Documented the location of the roms on Twin Cobra 2

-          Added support to jedutil to view the PAL20X10, PAL20X8 and PAL20X4

-          Added some preliminary work on figuring out what the undocumented fuses for the PALCE16V8 are.  (The data sheet does not document what all of the fuses are.)
2013-09-03 09:28:26 +00:00
Dirk Best
8085624dc7 i8089: converted to a proper cpu core, added debugger support and disassembler 2013-08-24 15:43:58 +00:00
Miodrag Milanovic
14629cbcb4 Cleanups and version bump 2013-07-23 07:18:56 +00:00
Miodrag Milanovic
791d322c4e one more fix for inc in srcclean (nw) 2013-07-10 11:38:57 +00:00
smf-
2e9622ecdb Fixes for building MAME with Visual Studio 2013 preview [smf] 2013-07-05 00:45:14 +00:00
Oliver Stöneberg
23bcd8223d disable creation of uncompressed LD CHDs (nw) 2013-07-03 14:15:31 +00:00
Oliver Stöneberg
ac76a12974 chdman: fixed hang when chd_file_compressor::async_read() failed (e.g. trying to read an .avi with unsupported color depth) / improved error reporting a bit (nw) 2013-06-21 17:24:41 +00:00
Oliver Stöneberg
54e9da3266 chdman: fixed deletion of output file in case of an error (nw) 2013-06-21 17:21:43 +00:00
Oliver Stöneberg
0c2201318c added pngcmp to tools (nw) 2013-06-20 10:08:31 +00:00
Oliver Stöneberg
f365fbecc2 chdman: -c would only overwrite the amount of compressions defined - part of the default compressions might still have been used [Oliver Stöneberg] 2013-06-18 00:04:27 +00:00
Miodrag Milanovic
16f5234d43 Cleanups and version bump 2013-06-11 07:16:42 +00:00
smf-
603f354635 Added support to jedutil for decoding 82S153, PLS153 & CK2605 [Kevin Eshbach, Charles MacDonald] 2013-06-10 19:33:46 +00:00
Miodrag Milanovic
1c05ccc93b Cleanups and version bump 2013-05-20 06:51:25 +00:00
R. Belmont
22d69c1f2b Various CD-ROM / CHDMAN improvements: [R. Belmont]
- Correct import/export of bin/cue images in which the pregap sectors are present.
- Normalized TOC handling; the start of a track is always the first pregap sector.
- Finally allows reading and CDDA playing pregap sectors.  Works even if the pregap sectors are not present in the file.

nw part: Existing CHDs should work (or not) as before - previously non-working ones that were broken due to disc geometry should work if regenerated from source.

I tested this on several known-touchy cases (including Saturn Black/Matrix Reprint cinemas and PCE-CD Prince of Persia) but there are likely others.

Drivers that tried to fake around the previous lack of pregap reading on CDDA may need some adjustment.
2013-05-18 02:02:27 +00:00
Curt Coder
725996afbd (MESS) Added skeleton driver for RCA COSMAC Microkit. [Bill Degnan, Curt Coder]
cosmac: Added the original CDP1801 CPU variant and rewrote the disassembler. [Curt Coder]
2013-05-11 10:24:25 +00:00
Miodrag Milanovic
8a8755ccf9 (MESS)new driver: 15IE-00-013 serial terminal [shattered]
Note: this is without bitbanger abuse part
2013-05-10 13:22:21 +00:00
Miodrag Milanovic
0e1f5ad25b Cleanups and version bump 2013-03-19 07:22:20 +00:00
smf-
e28ed1357c Added tms9900, tms9980 & tms9995 to unidasm. Other tms99xx cpu cores are generated with macros, including the CPU_DISASSEMBLE (nw) 2013-03-07 07:20:48 +00:00