Commit Graph

283 Commits

Author SHA1 Message Date
hap
2cd878633a added NEC uCOM-4 MCU core skeleton 2015-02-07 00:50:04 +01:00
Oliver Stöneberg
593e3c33a8 fixed some C++11 compiler warnings (nw) 2015-02-05 16:57:45 +01:00
jbu
ccfd07b539 Report core file position in case of a CHD hunk read error (nw) 2015-02-05 11:01:43 +01:00
couriersud
06b848185f Changes to the build system:
- BGFX library is set in windows.mak and sdl.mak now. This ensures the
library is only build when needed. 
  This is necessary to be able to build MAME on systems without opengl
support.
  
Support was added for an optional BIN location for executables. The
default is still the root folder. Setting BIN=bin e.g. will put
executables in bin.
2015-02-01 19:26:10 +01:00
hap
feb75d8ef5 added AMI S2000 cpu skeleton and disasm 2015-01-29 23:50:57 +01:00
Miodrag Milanovic
26e7a17b63 Cleanups and version bump 2015-01-28 09:20:10 +01:00
couriersud
c7d46eccd1 Fixed clang (most likely > 3.4) compile. (nw) 2015-01-19 20:13:54 +01:00
couriersud
cfb8782740 Fix nltool "-ld" listdevices. (nw) 2015-01-18 20:34:29 +01:00
Oliver Stöneberg
e11953e91d added missing catch in chd_file_compressor::async_read() and chdman main() (nw)
happens when e.g. disk is full
2015-01-16 18:03:34 +01:00
Oliver Stöneberg
6e513d9cd4 fixed chdman.c compiler warning (nw) 2015-01-16 12:59:17 +01:00
Oliver Stöneberg
33ebcc9120 chdman: added -s/--size parameter for "createhd" to create blank harddisk based on size and sector size [Oliver Stöneberg]
also added unit tests for the new option / moved filesize validation out
of guess_chd()
2015-01-16 12:56:37 +01:00
Oliver Stöneberg
1c94c3f408 introduced BASELIBS to makefile to link smaller tools with less dependencies (nw) 2015-01-01 15:17:09 +01:00
Wilbert Pol
dedb5c5d22 Move some includes around to fix compile errors on OSX; if this breaks any other environments then feel free to revert this. (nw) 2014-12-29 23:23:51 +01:00
smf-
ded298329c fixed "make tools" with VS14 CTP4 (nw) 2014-10-18 08:56:59 +00:00
Oliver Stöneberg
82a99c4452 moved tagged_list:: out of tagged_list to make it catch-able / handle add_exception / updated exception handling unidasm to match the main one and return a proper exitcode in case of an error (nw) 2014-09-08 18:46:40 +00:00
Oliver Stöneberg
d8ec9291c6 unreachable code warning fixes for tools (nw) 2014-09-08 12:11:56 +00:00
smf-
07e240eb3c Don't convert spaces to tabs if they are in a string literal that is split over multiple lines using line continuation (nw) 2014-07-23 04:45:46 +00:00
smf-
0616401e7a Allow line continuation in string literals. (nw) 2014-07-23 04:37:08 +00:00
Miodrag Milanovic
5d7e1fcc62 Cleanups and version bump 2014-07-22 06:14:55 +00:00
Alex W. Jackson
f661e32ec8 Change remaining references to -nosound to -sound none in code and docs; move description of -sound option to OSD-specific doc files to be orthogonal to -video (nw) 2014-06-13 21:01:35 +00:00
Miodrag Milanovic
991212c069 -Created machine_manager as singleton class that contains (for now) one running machine [Miodrag Milanovic]
-Updated LUA engine to run in machine_manager instead of being initialized per machine
-Added "-console" option so emulator can be started with LUA enabled console
-Update LUA to version 5.2.3 
-Enabled SQLite3 to be compiled and added LUA module for it
2014-06-06 10:11:31 +00:00
Miodrag Milanovic
4dd095bfb5 Added SQLite3 for future use, not linked in main binary till proved compiling good on all platforms (nw) 2014-06-04 11:53:08 +00:00
Couriersud
5d7f380540 Introduced netlist_analog_net_t and netlist_logic_net_t to untangle code a bit. 2014-05-17 00:39:26 +00:00
R. Belmont
bd320e789d CHD cleanups: [MetalliC]
- Double quote filenames with spaces when writing .gdi files
- Give audio files .raw extension when writing .gdi files
- cdrom_read_subcode() now returns false if the image doesn't contain subcodes
2014-04-28 01:57:31 +00:00
R. Belmont
3eb1f14701 chd updates: [MetalliC]
- Bugfixed byte order for GD-ROM audio tracks so FLAC compression is effective
- Fixed uninitialized struct on MSVC (and possibly other) builds


nw: this will change the SHA1s of every GD-ROM CHD in MAME; a patch to reflect that is pending (the old images still work, they just take a little more space than is necessary).  "chdman copy" suffices to upgrade; no downloading is necessary.
2014-04-18 02:05:33 +00:00
Miodrag Milanovic
67663501d7 Moved eminline and related files into /src/osd since it's system related (nw)
Moved delegates into /src/lib/util to enable usage of delegates in other project parts

Moved mame_printf_* calls into /src/osd/osdcore.c and renamed them to osd_printf_* 

Changed mess.mak to display compilation of ymmu100.ppm nicely
2014-04-16 08:04:20 +00:00
R. Belmont
c7498068c2 Fix tools build on OS/2 [KO Myung-Hun] 2014-04-12 13:03:48 +00:00
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