Miodrag Milanovic
864360160b
TRUE/FALSE in tools section (nw)
2016-10-22 18:14:41 +02:00
Nathan Woods
12fa7aecd9
[Imgtool] Consolidated logic for default implementation of imgtool::image::list_partitions()
2016-10-22 09:14:26 -04:00
Miodrag Milanovic
ddb290d5f6
NOTICE (TYPE NAME CONSOLIDATION)
...
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
2016-10-22 13:13:17 +02:00
Miodrag Milanovic
23ad94073f
use standard types uintptr_t, char16_t and char32_t instead of FPTR, utf16_char, unicode_char (nw)
2016-10-22 11:31:49 +02:00
Miodrag Milanovic
a1a6f28e2b
trying to fix issue noticed by qmc2 (nw)
2016-10-21 12:39:40 +02:00
Miodrag Milanovic
d2e8f61149
dynamic_buffer is just std::vector<UINT8> (nw)
2016-10-21 12:35:05 +02:00
Nathan Woods
cb11268ed8
[Imgtool] Changed imgtool::image::info() to use std::stream and std::stringstream
2016-10-17 18:33:26 -04:00
Vas Crabb
b67646cee8
Merge pull request #1526 from npwoods/imgtool_directory_refs
...
[Imgtool] Bulk change: 'imgtool::directory *' ==> 'imgtool::directory &'
2016-10-18 09:09:19 +11:00
Nathan Woods
bbd820eb18
[Imgtool] Fixed a few spacing issues
2016-10-17 18:04:27 -04:00
Nathan Woods
9546118988
[Imgtool] Bulk change: 'imgtool::directory *' ==> 'imgtool::directory &'
2016-10-17 07:36:51 -04:00
Nathan Woods
dbab7b01f1
[Imgtool] Modernized imgtool::image::list_partitions()
2016-10-17 06:40:11 -04:00
Nathan Woods
08fbc684a9
[Imgtool] Bulk change: 'imgtool::partition *' ==> 'imgtool::partition &'
2016-10-16 18:35:44 -04:00
Nathan Woods
e9b551bac9
[Imgtool] Bulk change: 'imgtool::image *' ==> 'imgtool::image &'
2016-10-16 10:07:32 -04:00
Vas Crabb
72c8586e01
Merge pull request #1516 from npwoods/imgtool_use_rvalue_refs_for_streams
...
[Imgtool] Changed the create/open callbacks to take 'imgtool::stream &&'
2016-10-16 12:02:27 +11:00
Nathan Woods
039cd619d5
[Imgtool] Fixed a stupid mistake
2016-10-15 18:09:51 -04:00
Nathan Woods
c58b56e0c6
[Imgtool] Changed the create/open callbacks to take 'imgtool::stream &&'
...
They always took ownership of the stream; this just makes it official. Because the ownership would only traditionally happen if the open() or create() succeeded, I had to do a clumsy pattern where I call get() at the beginning of the callback to get the stream, but later on release() immediately prior to succeeding.
2016-10-15 17:52:34 -04:00
Nathan Woods
93ddddcae4
[Imgtool] Changed a number of callbacks to be std::function instead of old fashioned function pointers
2016-10-14 21:27:12 -04:00
Vas Crabb
f62e2a136a
Merge pull request #1500 from npwoods/imgtool_cplusplus_stream
...
[Imgtool] More C++-ification (imgtool_stream ==> imgtool::stream)
2016-10-15 11:22:38 +11:00
Nathan Woods
4f280436c7
[Imgtool] Fixed some gnarley formatting in thomson.cpp
2016-10-14 20:14:57 -04:00
Nathan Woods
e77c24ce76
[Imgtool] Changed many 'imgtool::stream *' to 'imgtool::stream &'
2016-10-14 19:55:53 -04:00
Nathan Woods
66c451c664
[Imgtool] More formatting fixes
2016-10-13 06:19:59 -04:00
Nathan Woods
604885dfb8
Changes requested by Vas
2016-10-12 21:23:26 -04:00
Nathan Woods
d3567b0f71
[Imgtool] More C++-ification (imgtool_stream ==> imgtool::stream)
...
Still a bit of work to do, most notably around adoption of std::unique_ptr<>, which may be a challenge here on account of some assumptions regarding lifetime of streams by modules.
2016-10-12 07:20:39 -04:00
smf-
cc5f3c83c6
fixed tools build (nw)
2016-10-12 10:44:03 +01:00
Nathan Woods
c5f7de716f
[Imgtool] C++-ified a few more classes
...
imgtool_partition ==> imgtool::partition
imgtool_directory ==> imgtool::directory
2016-10-09 18:37:32 -04:00
smf-
6623638c3b
Fix chdman addmeta --valuefile by calling the correct write_metadata. [smf]
2016-10-09 22:40:42 +01:00
Nathan Woods
158b44326c
[Imgtool] Fixed a recently introduced bug that could cause module's close() callback to be invoked if an image fails to be opened or created.
...
This is really a temporary workaround while Imgtool gets C++-ified; the real issue is the ad hoc nature of the existing semantics of image construction.
2016-10-08 18:21:39 -04:00
R. Belmont
6595eae179
Merge pull request #1456 from npwoods/imgtool_image_cplusplus
...
Made imgtool_image (now imgtool::image) a "real" C++ class
2016-10-08 14:45:10 -04:00
Nathan Woods
4ea9bdd6c5
[Imgtool Mac Module] Fixed an unsigned overflow error that would causes crashes on 64 bit systems
2016-09-30 07:55:17 -04:00
Vas Crabb
e41e16cf5b
fix srcclean when doing multiple files in a single run (nw)
2016-09-28 11:57:17 +10:00
Nathan Woods
baae7b926d
Made imgtool_image (now imgtool::image) a "real" C++ class
2016-09-27 05:13:32 -04:00
Vas Crabb
33b2c73395
srcclean (nw)
2016-09-26 04:51:59 +10:00
Vas Crabb
7867c0ed7d
Merge pull request #1444 from npwoods/imgtool_readsector_uses_stdvector
...
Imgtool: Changed the read_sector apparatus to use std::vector
2016-09-26 03:34:26 +10:00
Nathan Woods
c87e7953fa
Changing bad_alloc catch declarations
2016-09-25 13:31:46 -04:00
Nathan Woods
f83fce0c28
Putting try { ... } catch(std::bad_alloc &) { ... } around recently introduced resize() calls
...
At the very least, I suppose this doesn't hurt; I'd just like to discuss how this should work in the long run.
Also, this blog entry sums up my opinion perfectly: http://christiangarbin.blogspot.com/2013/05/the-futility-of-catching-stdbadalloc.html
2016-09-25 07:30:03 -04:00
Nathan Woods
89512850bc
Retired imgtool_basename(), in favor of core_filename_extract_base()
2016-09-24 18:50:43 -04:00
Nathan Woods
5f3bb35b12
Imgtool: Changed the read_sector apparatus to use std::vector
...
This also eliminated the need for get_sector_size
The asute reviewer will note that a side effect of this change is that in scenarios where we once returned IMGTOOLERR_OUTOFMEMORY, we now throw std::bad_alloc. This is deliberate. Having an error code for out of memory conditions no longer makes sense with MAME's embrace of the C++ way of doing things. It is highly likely that I will follow up this change with one that eliminates IMGTOOLERR_OUTOFMEMORY in favor of throwing std::bad_alloc.
This commit also fixes a recent regression in which we passed nullptr to an std::string ctor
2016-09-24 09:56:47 -04:00
fulivi
dedc07dc75
imgtool, hp9845_tape format: implemented read & write ops in 9845data filter
2016-09-23 15:57:56 +02:00
fulivi
d7ca7f0cf5
imgtool, hp9845_tape format: implemented read filter for text-only DATA
...
files (write op. still missing)
2016-09-22 15:27:50 +02:00
R. Belmont
0ecea843d0
Merge pull request #1398 from fulivi/hp9845_tools
...
Imgtool now supports HP9845B tape image
2016-09-16 14:05:35 -04:00
Nathan Woods
ab20ce4228
Vas Crabb feedback
2016-09-14 23:42:52 -04:00
fulivi
e25e1b84b0
imgtool, hp9845_tape format: write&del done, brief info added at the
...
start of file.
2016-09-13 16:44:37 +02:00
Nathan Woods
9a3ac8f6b8
Imgtool: Changed the Imgtool module list to be std::list
2016-09-10 12:17:36 -04:00
Nathan Woods
3534b0090a
Imgtool: C++-ized the imgtool_library object (now class imgtool::library)
2016-09-10 12:14:12 -04:00
fulivi
e39c05c165
imgtool: WIP on hp9845 tape: read done, write & del to be done
2016-09-10 15:52:06 +02:00
fulivi
0474948833
imgtool: WIP for hp9845 tape support
2016-09-10 15:52:06 +02:00
fulivi
68509a3191
hp_hybrid: added hp_hybrid & hp_5061_3001 to unidasm
2016-09-10 15:52:05 +02:00
Vas Crabb
6a2b41aa0b
Merge pull request #1332 from npwoods/option_guide_and_imgtool
...
option_guide C++-ification, touched up imgtool
2016-09-10 10:15:30 +10:00
Nathan Woods
4251194fe5
Worked around the OPTION_GUIDE_EXTERN issue by using a crazy trick involving namespaces
...
Caveats:
1. Because of how this trick works, it is no longer possible to declare an option guide as static, so I had to make a bunch of changes
2. I'm going to want the hardcore C++ guys (i.e. - Vas) to review this with a fine toothed comb
2016-09-03 16:11:58 -04:00
Nathan Woods
9c06ec0b6a
Incorporating Vas Crabb feedback
2016-09-01 06:49:54 -04:00
Vas Crabb
234e91f9fb
Add Lua-cleaning ability to srcclean
2016-08-30 14:57:38 +10:00
Nathan Woods
b60879e595
option_guide C++-ification, touched up imgtool
...
The main point of this change is to C++-ify option_guide. It was changed from a struct array to a class, namespaced etc, with the ultimate hope of incorporating an in-emulation image creation UI.
Imgtool got hit with a number of changes; I'll probably have to bring that off of the backburner and touch that up too
2016-08-27 16:41:11 -04:00
Nathan Woods
0931cbafb0
castool fix
2016-08-21 12:47:37 -04:00
Vas Crabb
3c47e78419
clang didn't like that...
2016-08-04 13:30:57 +10:00
Vas Crabb
938371b64f
remove leftover crud (nw)
2016-08-03 13:56:52 +10:00
Vas Crabb
996935a7cc
fix overlong code detection in srcclean
2016-08-02 17:50:39 +10:00
Vas Crabb
d7f9370892
Make srcclean a bit more forgiving
2016-08-02 17:12:06 +10:00
Vas Crabb
889ecdfd4f
Let's give the new srcclean a spin...
2016-08-02 16:59:02 +10:00
Vas Crabb
a26a40445b
Re-write srcclean to be cool with UTF-8 and C++14 [Vas Crabb]
2016-08-02 16:46:46 +10:00
Vas Crabb
0ceae26bb4
patch up on OSX
2016-08-01 01:37:39 +10:00
Vas Crabb
a0ce6c3b37
fix after pass through the diff
2016-08-01 01:20:03 +10:00
Miodrag Milanovic
f127621e13
made constexprs lower case and used constexpr for returning input value as well for rest of defines in osdcomm.h (nw)
2016-07-31 16:47:26 +02:00
Vas Crabb
05444e3c00
unbreak large files in chdman after refactor
2016-08-01 00:17:52 +10:00
Miodrag Milanovic
8594237ba6
imgtool fix (nw)
2016-07-31 15:49:22 +02:00
Miodrag Milanovic
185f5059fb
algorithm-> utility where appropriate, fix imgtool (nw)
2016-07-31 15:37:37 +02:00
Miodrag Milanovic
9667c6a8cc
std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw)
2016-07-31 14:41:02 +02:00
MetalliC
2cf35d78d8
chdman: fix remaining createcd 64bit issues
2016-07-24 17:01:18 +03:00
Miodrag Milanovic
0a95a35f0d
compile fix (nw)
2016-07-23 19:14:45 +02:00
Miodrag Milanovic
38e8953add
try one old good fix (nw)
2016-07-23 18:48:41 +02:00
Miodrag Milanovic
17080e6959
Revert "fix building with gcc 6.1.0 by making it consistent with other source files. (nw)"
...
This reverts commit 4423c242a6
.
2016-07-23 18:47:39 +02:00
smf-
4423c242a6
fix building with gcc 6.1.0 by making it consistent with other source files. (nw)
2016-07-23 16:18:34 +01:00
Nathan Woods
130e05cc4e
Fixed stupid compilation error
2016-07-11 08:26:49 -04:00
Nathan Woods
96066caca0
Removed some c_str() calls that are no longer necessary
2016-07-11 07:24:02 -04:00
Vas Crabb
6a67de94f9
Fix up imgtool as well
2016-07-08 15:29:50 +10:00
Vas Crabb
d3b553728d
Add support for showing will branch/will fall through comment on SPARC branches under the cursor
...
Disabled until we can get a hook to refress the instructions under PC when stepping
2016-06-27 16:59:42 +10:00
Vas Crabb
5cee9e9bc4
POSIX implementation for new directory read features, cleanup of Windows implementation, return directory handle as smart pointer, fix full build [Vas Crabb]
2016-06-25 03:35:23 +10:00
Vas Crabb
64f9a674d1
SPARC VIS 2+, VIS 3 and VIS 3B disassembler support [Vas Crabb]
...
* Note that this omits non-VIS OSA 2007/2011 features
* VIS 2+ ldtxa/ldtwa/sttwa still uses ldda/stda, using new mnemonics requires special-casing this instruction and checking ASI
2016-06-24 03:00:01 +10:00
Vas Crabb
32a75e7ae4
VIS I (UltraSPARC) and II (UltraSPARC III) for SPARC disassembler [Vas Crabb]
...
* Supports %gsr, all ops with exception of SIAM, and all ASI constants
* Use -arch sparcv9vis1 or -arch sparcv9vis2 with unidasm
2016-06-23 01:13:52 +10:00
Vas Crabb
af406e316a
Add SPARC to unidasm [Vas Crabb]
2016-06-22 13:35:20 +10:00
Miodrag Milanovic
1d0e0ac12a
remove all usages of tagmap
2016-06-18 15:32:15 +02:00
smf-
76430f9bc8
ever since f0823886a6
the guess_chs() function adds dummy sectors to the image until it finds a valid CHS mapping, therefore the error can never be triggered (there is no exit condition on the outer loop) (nw)
2016-06-08 17:47:44 +01:00
smf-
f360cfe384
Ignore cylinders, heads and sectors from identify device data, based on the ATA 5 specification. [smf]
2016-06-02 10:38:48 +01:00
Vas Crabb
6b9c752850
misc fixes (nw)
...
* fix a mismatched new[]/delete error in corealloc
* _name massacre in corealloc while at it
* add template/macro for delaring array with equivalent dimensions
2016-05-28 15:10:28 +10:00
MetalliC
16d0839f76
chdman: ignore ATA ident CHS values for > 8GB images
...
minor docs update
2016-05-25 17:57:31 +03:00
Miodrag Milanovic
be67262fc2
INC -> HXX makes editors and code analyzers see it as C++ (nw)
2016-05-01 20:27:50 +02:00
Ivan Vangelista
00fd6ba0bd
chdman.cpp: fix for code that expects to be able to dereference a pointer that it knows may be null (Vas Crabb)
2016-04-27 10:27:46 +02:00
hap
bac87f62fa
sm510: added KB1013VK1-2 disasm
2016-04-11 21:45:26 +02:00
hap
80300e5cc6
sm500: added disasm
2016-04-07 20:45:57 +02:00
Miodrag Milanovic
cea094a3a3
moved aueffectutil to tools (nw)
2016-04-03 19:06:06 +02:00
MetalliC
677cfa86fd
fix chdman extractcd track names (was foo.cue.bin instead of foo.bin)
2016-03-30 17:56:19 +03:00
Vas Crabb
b989ad9280
7zip romcmp
2016-03-19 00:23:09 +11:00
Vas Crabb
100fa28671
* Remove confusing method from vectorstreams that hide base_ios method (fixes disassembly view)
...
* Allow std::string to pass through core_file unmolested (reduces temporary allocations)
* Make zip/7z instances of same class with uniform interface
* zippath browsing is broken at the moment
This is another step towards transparent archive support. It's now
possible to access zip and 7z archives with the same code. Nothing is
taking advantage of it yet. There's now some very similar code in
fileio.cpp and clifront.cpp that could be folded at some point.
2016-03-18 19:32:10 +11:00
hap
f5caa4a869
tms1k: make disasm tables human-readable and added initial TP0320
2016-03-15 11:07:52 +01:00
Brandon Munger
7a3a46e477
Fix chdman again for I64FMT on WIN32
2016-03-14 13:22:49 -04:00
Brandon Munger
33da5e88a0
chdman I64FMT fix for OSX, FreeBSD
2016-03-14 13:11:41 -04:00
Brandon Munger
63e253e2c5
Fix I64FMT in chdman for Linux 64 bit
2016-03-14 12:55:08 -04:00
Vas Crabb
42fbb9c396
Make osd_file a polymorphic class that's held with smart pointers
...
Make avi_file a class that's held with smart pointers, encapsulate various AVI I/O structures
Make zip_file and _7z_file classes rather than having free functions everywhere
Hide zip/7z class implementation behind an interface, no longer need to call close() to send back to the cache
Don't dump as much crap in global namespace
Add solaris PTY implementation
Improve variable expansion for SDL OSD - supports ~/$FOO/${BAR} syntax
Rearrange stuff so the same things are in file module for all OSDs
Move file stuff into its own module
7z/zip open and destruct are still not thread-safe due to lack of interlocks around cache access
Directory functions still need to be moved to file module
SDL OSD may not initialise WinSock on Windows
2016-03-14 18:55:00 +11:00
Vas Crabb
5aea0893a0
Use type-safe printf for core_file and emu_file, surprisingly few knock-on effects
...
Properly fix up a couple of places I64FMT was being used, still more to deal with
2016-03-09 23:04:12 +11:00
Miodrag Milanovic
e76d30243e
Removed I64FMT and SIZETFMT, one usage left in chdman.cpp (nw)
2016-03-07 19:34:44 +01:00
Vas Crabb
73b44c9429
Turn core_file into a proper class that gets cleaned up safely using unique_ptr
...
Subverted somewhat by chd_file class
2016-03-06 21:49:56 +11:00
Vas Crabb
a830ea7627
* Support *n conversion in stream_format/string_format
...
* Make stream_format return characters printed
* Add iostreams with std::vector storage
* Move to type-safe templates for logerror and popmessage
* Remove now-unnecessary I64FMT from calls to logerror/popmessage
* Put some lib/util stuff in util:: namespace
* Some fixes to Japanese translation
2016-03-01 06:52:36 +11:00
Vas Crabb
aec01e7407
Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format
...
Update MAME to use new function
Instantiate ODR-used static constant members
Make some of the UI code more localisable
Remove use of retired functions in tools
2016-02-28 13:36:19 +11:00
Miodrag Milanovic
3abcaee63f
Cleanups and version bump
2016-02-24 07:46:57 +01:00
Kevin Eshbach
ee9f7d9655
Added support for the AMPAL18P8
2016-02-13 15:23:40 -05:00
Miodrag Milanovic
9619947629
Revert "fix unidasm compile [Robbbert]"
...
This reverts commit 54072ef35d
.
2016-01-20 21:34:07 +01:00
Lord-Nightmare
54072ef35d
fix unidasm compile [Robbbert]
2016-01-17 00:52:45 -05:00
Miodrag Milanovic
65458d447f
fix compile of tools (nw)
2016-01-11 11:16:45 +01:00
AJR
115db95642
Return std::string objects by value rather than pass by reference
...
- strprintf is unaltered, but strformat now takes one fewer argument
- state_string_export still fills a buffer, but has been made const
- get_default_card_software now takes no arguments but returns a string
2016-01-10 16:36:18 -05:00
Miodrag Milanovic
92f3a1d341
fixed error (nw)
2015-12-31 17:52:46 +01:00
Miodrag Milanovic
fe136aef44
missed one, thanks hap (nw)
2015-12-31 17:34:42 +01:00
Miodrag Milanovic
4afd75e2fd
Cleanups and version bump
2015-12-30 08:18:51 +01:00
MetalliC
7ae681b010
chdman info verbose metadata output (nw)
2015-12-26 17:49:12 +02:00
Miodrag Milanovic
379581fb36
macro removal INLINE -> static inline (nw)
2015-12-12 08:58:57 +01:00
Miodrag Milanovic
3414b0166e
tagmap_t to std::unordered_map or std::unordered_set where applicable (nw)
2015-12-09 21:14:13 +01:00
Miodrag Milanovic
1b0ec08af5
clang-modernize part 6
2015-12-04 10:29:21 +01:00
Miodrag Milanovic
5a2f80dcde
clang-modernize part 5
2015-12-04 07:06:18 +01:00
Miodrag Milanovic
dfa148ff80
fix building tools (nw)
2015-11-08 13:28:46 +01:00
Miodrag Milanovic
7c19aac60e
Rename *.c -> *.cpp in our source (nw)
2015-11-08 12:56:12 +01:00
Miodrag Milanovic
b01384ee73
fixed linking unidasm in small builds (nw)
2015-11-02 08:45:22 +01:00
Miodrag Milanovic
86d3aa8065
Moved tools in proper place, and moved build python scripts together with other scripts (nw)
2015-10-07 12:01:21 +02:00
couriersud
3011b4b068
Moved nltool.c and nlwav.c into src/emu/netlist/prg.
...
Added src/emu/netlist/build/makefile. This allows netlist to be ripped
out of the tree and to compile it standalone. (nw)
2015-08-23 20:59:07 +02:00
couriersud
4be6e7568e
Created a separate logging class. Netlist code should now be at least
...
98% type safe. No more fuzzing around with SIZEFMT and friends. Changed
formatting to use python style format strings. (nw)
2015-08-23 17:44:17 +02:00
couriersud
9d0fd54f7a
Remove vsscanf from netlist. Change default format for double to "g".
...
(nw)
2015-08-11 23:23:33 +02:00
couriersud
6cc506594d
Make netlist more typesafe. Added a pformat class to reduce sprintf
...
usage. The approach is also suitable for translated strings with
arbitrary positioning of parameters. (nw)
2015-08-10 22:35:19 +02:00
couriersud
7b15a99c4b
utf8 support for pstring. Opted for a scalable solution which should be
...
easily extensible to utf16 and utf32 as well. All position related
operations now operate on char code positions instead of byte positions.
[Couriersud]
2015-08-10 22:35:18 +02:00
couriersud
d6b1cf85c5
More usage of streams and aligned exception use. (nw)
2015-08-10 21:50:34 +02:00
couriersud
d0466dd4da
Added simple stream classes to netlist code. (nw)
2015-08-03 00:10:22 +02:00
Miodrag Milanovic
1b452e3bfb
Cleanups and version bump
2015-07-29 08:34:21 +02:00
couriersud
8b388e9131
Added nlwav to tools. nlwav converts netlist logs into wav files.
...
Example usage:
./nlwav -i netlist.log_RO.1.log -o tt.wav
./nlwav -h
[Couriersud]
2015-07-26 20:03:13 +02:00
couriersud
112ad5223f
Added quiet flag to nltool. (nw)
2015-07-20 22:34:35 +02:00
couriersud
c30ac5a27b
Use hashmap for factory searches. (nw)
2015-07-20 22:21:28 +02:00
couriersud
3b35c7a12e
Aligned builtin device identification with parser device
...
identification. (nw)
2015-07-19 02:08:04 +02:00
couriersud
b1a72a3e9f
Netlist now compiles with
...
-std=c++98 -Wall -Wpedantic -Wextra -Wno-long-long -Wno-variadic-macros
and
-std=c++11 -Wall -Wpedantic -Wextra
[Couriersud]
2015-06-30 09:04:19 +02:00
hap
7b0b0bbc95
added SM510 cpu skeleton
2015-06-30 02:10:33 +02:00
couriersud
06e3aa2324
Some more moves to the netlist namespace. (nw)
2015-06-19 01:42:46 +02:00
couriersud
6e9a796ffc
Rename netlist::netlist_<somename> to just netlist::<somename>. (nw)
2015-06-13 01:23:31 +02:00
couriersud
f59da94e11
Netlist code now uses "namespace netlist". At the same time, moved all
...
devices int netlist::devices namespace. [Couriersud]
2015-06-13 01:23:30 +02:00
couriersud
7cd3ebf18a
Changed the way NETLIST_START(NAME) is located and called. This is done
...
now solely by using a netlist_sources_t class. Netlist users just
register sources like memregions, hardcoded strings, compiled netlists.
Going forward this enables to eventually put macro model librariers into
roms. The improvement comes with a price. Compiled netlists to be
included must now be registered using LOCAL_SOURCE. [Couriersud]
2015-06-03 22:52:21 +02:00
couriersud
3a455f75a5
Netlist now uses the same approach as delegate.h to derive member
...
function pointers. If the platform doesn't support this approach,
virtual function calls will be used. In addition, this commit contains
modifications for standalone compile. (nw)
2015-05-31 00:49:40 +02:00
couriersud
84f26ad714
First version of a eagle to netlist converter. (nw)
2015-05-29 16:42:29 +02:00
couriersud
e1d1a6b1f2
Found some cycles. (nw)
2015-05-29 16:42:28 +02:00
couriersud
b67b9ff917
Got truthtable parsing working in the parser. The plib preprocessor now
...
defines __PLIB_PREPROCESSOR__. This can be checked in netlist code and
allows even more sharing code between compiled (embedded) netlists and
external netlists. (nw)
2015-05-28 01:49:52 +02:00
couriersud
1d99211b55
Introduced user definable truth tables:
...
NETLIST_START(lib)
TRUTHTABLE_START(TTL_7400A_NAND, 2, 1, 0, "+A,B")
TT_HEAD(" A , B | Q ")
TT_LINE(" 0 , X | 1 |22")
TT_LINE(" X , 0 | 1 |22")
TT_LINE(" 1 , 1 | 0 |15")
TRUTHTABLE_END()
NETLIST_END()
This enables the addition of devices without changing the netlist
source code and allows the creation of libraries. Used pong.c as a
proof of concept for the time being. [Couriersud]
2015-05-27 23:18:45 +02:00
couriersud
cef370aa13
Moved all files in src/emu/netlist starting with p into plib folder.
...
This is a first step to ease synchronisation with a stand alone, e.g.
outside mame, netlist implementation. More signed/unsigned cleanups and
started work on generic truthtable devices. (nw)
2015-05-27 23:18:44 +02:00
Miodrag Milanovic
64e16ca8cf
Cleanups and version bump
2015-05-27 09:03:32 +02:00
couriersud
d9448c1e0d
Changed plist_t to be closer to vector. Commented out tons of inlines
...
without any impact on performance. (nw)
2015-05-26 16:14:43 +02:00
couriersud
2f3085aa17
Fixed some netlist issues valgrind pointed me too. In addition, added a
...
strinb buffer class. (nw)
2015-05-26 11:41:36 +02:00
couriersud
e1e0e9edbd
Fixed some clang 3.6 compilation errors and gcc -Wextra warnings. (nw)
2015-05-25 19:32:31 +02:00
Miodrag Milanovic
682bf80671
cleanup of bogus copyright messages and restriction texts, update for Daniel Coulom (nw)
2015-05-25 15:41:17 +02:00
couriersud
d298ab53fe
Fix nltool compile. After the next release the netlist folder structure
...
needs some redesign to better align with standalone compile. More header
optimisation. (nw)
2015-05-25 02:21:19 +02:00