summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/modules/thomson.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-141-1/+1
| | | | | | | | | | * osdcomm.h: Move definition of EQUIVALENT_ARRAY to coretmpl.h * sharc.cpp, gt64xxx.cpp, ym2413.cpp, gb_lcd.cpp, snes_ppu.cpp: Use STRUCT_MEMBER for save state registration * gio/newport.cpp, megadrive/svp.cpp, nes_ctrl/bcbattle.cpp, arm7.cpp, tms9995.cpp, pckeybrd.cpp, sa1110.cpp, sa1111.cpp, jangou_blitter.cpp, vic4567.cpp: Use std::fill(_n) instead of memset * emucore.h: Remove obsolete typedef
* use C++ library includes (nw) firewave2020-01-221-1/+1
|
* [Imgtool] Add special characters support to Thomson BASIC (#5505) hadess2019-08-181-0/+245
| | | | | | * [Imgtool] Add reading accents support for Thomson BASIC * [Imgtool] Add writing accents support for Thomson BASIC
* Add BASIC Thomson tokenizer (#5479) hadess2019-08-131-7/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Imgtool] Add write support for Thomson BASIC * [Imgtool] Fix passing --filter= to imgtool get command This command should work: imgtool get thom_fd inondation-d-additions.fd INONDATI.BAS TEST.BAS --filter=thombas7 as it matches the expected syntax: Usage: imgtool get <format> <imagename> <filename> [newname] [--filter=filter] [--fork=fork] but does not because imgtool fewer "maxargs". Increase the maximum number of arguments by 2 to cater for --filter and --fork being passed. * [Imgtool] Fix handling multiple tokens in BASIC tokenizer The line: 10 LIMIT$=STR$(LIMIT(N)) was not getting tokenised properly because the loop looking for tokens wasn't exited and consumed consecutive tokens. So $ was getting detected, token_shift and token_value were set, the cursor position got incremented, then = got detected on the next iteration of the loop. We should instead exit the loop, and write what we already have. Closes: #5478
* Created a more flexible imgtool::datetime structure for use within Imgtool ↵ npwoods2017-10-171-14/+10
| | | | | | | | | | | | | | (#2263) * Created a more flexible imgtool::datetime structure for use within Imgtool This is intended to replace most usage of time_t * Changing the granularity of imgtool_clock from 1ms to 100ns, as per Vas' suggestion * Created arbitrary_datetime in timeconv.h to facilitate interpretation of datetime info I concluded that invoking std::mktime on manually assembled std::tm is bad, because it is indeterminate how the std::tm members may be "dominant". This required that I go further in imgtool, and update a number of drivers and eliminate the parameter of imgtool::datetime that takes std::tm.
* [Imgtool] Changed imgtool::stream::open*() to return imgtool::stream::ptr Nathan Woods2016-10-221-16/+7
| | | | Updated quite a bit of client code that manually owned these pointers
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-62/+62
| | | | | 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
* [Imgtool] Changed imgtool::image::info() to use std::stream and ↵ Nathan Woods2016-10-171-2/+2
| | | | std::stringstream
* Merge pull request #1526 from npwoods/imgtool_directory_refs Vas Crabb2016-10-181-14/+13
|\ | | | | [Imgtool] Bulk change: 'imgtool::directory *' ==> 'imgtool::directory &'
| * [Imgtool] Bulk change: 'imgtool::directory *' ==> 'imgtool::directory &' Nathan Woods2016-10-171-14/+13
| |
* | [Imgtool] Modernized imgtool::image::list_partitions() Nathan Woods2016-10-171-13/+6
|/
* [Imgtool] Bulk change: 'imgtool::partition *' ==> 'imgtool::partition &' Nathan Woods2016-10-161-27/+27
|
* [Imgtool] Bulk change: 'imgtool::image *' ==> 'imgtool::image &' Nathan Woods2016-10-161-34/+39
|
* [Imgtool] Changed the create/open callbacks to take 'imgtool::stream &&' Nathan Woods2016-10-151-62/+67
| | | | 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.
* [Imgtool] Fixed some gnarley formatting in thomson.cpp Nathan Woods2016-10-141-74/+86
|
* [Imgtool] Changed many 'imgtool::stream *' to 'imgtool::stream &' Nathan Woods2016-10-141-82/+88
|
* Changes requested by Vas Nathan Woods2016-10-121-23/+24
|
* [Imgtool] More C++-ification (imgtool_stream ==> imgtool::stream) Nathan Woods2016-10-121-74/+74
| | | | 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.
* [Imgtool] C++-ified a few more classes Nathan Woods2016-10-091-31/+31
| | | | | imgtool_partition ==> imgtool::partition imgtool_directory ==> imgtool::directory
* Made imgtool_image (now imgtool::image) a "real" C++ class Nathan Woods2016-09-271-34/+34
|
* Changing bad_alloc catch declarations Nathan Woods2016-09-251-1/+1
|
* Putting try { ... } catch(std::bad_alloc &) { ... } around recently ↵ Nathan Woods2016-09-251-1/+2
| | | | | | | | 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
* Imgtool: Changed the read_sector apparatus to use std::vector Nathan Woods2016-09-241-21/+7
| | | | | | | | 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
* Worked around the OPTION_GUIDE_EXTERN issue by using a crazy trick involving ↵ Nathan Woods2016-09-031-2/+2
| | | | | | | | 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
* option_guide C++-ification, touched up imgtool Nathan Woods2016-08-271-4/+4
| | | | | | 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
* Fix up imgtool as well Vas Crabb2016-07-081-15/+14
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+1681