Commit Graph

675 Commits

Author SHA1 Message Date
Sergey Svishchev
89b7801ebe formats/wd177x_dsk: allow override of build_sector_description, like nec765_dsk 2017-01-15 02:24:48 +03:00
Sergey Svishchev
4add62a083 TeleDisk loader: accept images produced from 8" SSSD disks 2017-01-10 00:31:25 +03:00
Sergey Svishchev
1fda75a0e2 ImageDisk loader: don't crash on tracks with no data 2017-01-10 00:31:24 +03:00
Justin Kerk
57ac19beee pc_dsk: Handle 1.44MB images with 1,024-byte footer, which have turned up in a couple places (nw) 2017-01-08 01:59:46 -08:00
Justin Kerk
7a8d5118b5 pc_dsk: Assume a smaller gap size to allow 400K disk images to load. Fixes e.g. ikari and marble from the ibm5150 softlist. [Justin Kerk] 2017-01-07 22:28:19 -08:00
Justin Kerk
44d302c1ab pc_dsk: Support 360K images with 512-byte header, found in some softlist entries. [Justin Kerk] 2016-12-29 14:44:50 -08:00
Sandro Ronco
8f4e1dc37e Archimedes: make floppies work. 2016-12-23 19:41:27 +01:00
Scott Stone
30cda1d3e5 A round of spelling/typographical fixes to source comments (nw) 2016-11-24 09:24:01 -05:00
Vas Crabb
8179a84458 Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h"
* Get rid of import of cstdint types to global namespace (C99 does this anyway)
* Remove the cstdint types from everything in emu
* Get rid of U64/S64 macros
* Fix a bug in dps16 caused by incorrect use of macro
* Fix debugcon not checking for "do " prefix case-insensitively
* Fix a lot of messed up tabulation
* More constexpr
* Fix up many __names
2016-11-19 05:38:48 +11:00
Miodrag Milanovic
e71e37e54f Revert "using of IS_ENABLED in files used in tiny build (nw)"
This reverts commit 1efccdd38d.
2016-11-12 09:12:35 +01:00
Miodrag Milanovic
2131d9ad3a Revert "Use true/false if type used is bool (nw)"
This reverts commit dbd07cef38.
2016-11-12 09:12:35 +01:00
Miodrag Milanovic
dbd07cef38 Use true/false if type used is bool (nw) 2016-11-11 20:50:25 +01:00
Miodrag Milanovic
1efccdd38d using of IS_ENABLED in files used in tiny build (nw) 2016-11-11 20:43:19 +01:00
Miodrag Milanovic
a6bdefec8c more TRUE/FALSE cleanup (nw) 2016-10-22 16:37:12 +02: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
d2e8f61149 dynamic_buffer is just std::vector<UINT8> (nw) 2016-10-21 12:35:05 +02:00
therealmogminer@gmail.com
239d09546f Bad OG, no cookie, nw either 2016-09-25 01:29:22 +02:00
Michael Zapf
2bf93a51e8 Added HxC HFE disk format. 2016-09-18 12:31:13 +02:00
Nathan Woods
c51de7aa95 Fixed a potential buffer overrun in the code that reads headers for the CoCo JVC disk image format 2016-09-13 06:50:08 -04: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
402d84ff34 Properly catching another out of memory condition 2016-09-09 06:29:40 -04:00
Michael Zapf
44e74fcc99 ti99: Explicitly add the cell_size to mfm_w call (nw) 2016-09-05 00:08:09 +02: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
965fb61f95 Attempting to make option_guide and option_guide::entry POD types; need to figure out a better way to do OPTION_GUIDE_EXTERN 2016-09-02 23:52:30 -04:00
Nigel Barnes
a7946f9c61 added header checks to identify in uef_cas and csw_cas formats 2016-09-02 21:47:02 +01:00
Nathan Woods
9c06ec0b6a Incorporating Vas Crabb feedback 2016-09-01 06:49:54 -04:00
Vas Crabb
c960435d3e srcclean and translation regeneration 2016-08-29 02:02:04 +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
Miodrag Milanovic
62fe8b8980 some C++14 features are not supported by VS2013. VS2015 is free for home use so no need for legacy support (nw) 2016-08-27 11:15:38 +02:00
Michael Zapf
596b04dd5c ti99: Fixed another issue with double stepping. 2016-08-25 19:26:46 +02:00
Michael Zapf
bade8ef9a9 ti99: Forgot to reset the TRACE flag. 2016-08-24 14:53:01 +02:00
Michael Zapf
294e196532 Forgot srcclean 2016-08-24 14:25:01 +02:00
Michael Zapf
19a2c632ae ti99: Fix a problem with formatted disk images that do not match the expected file size 2016-08-24 14:25:01 +02:00
Nathan Woods
846cd43287 Performs argument checking on the return value of CassetteLegacyWaveFiller.chunk_sample_calc()
This is just better error checking.  You can see this if you create a garbage file named 'foo.csw' and invoke the following command:

	mame bbcb -cass1 foo.csw

With this change you get an invalid image error.  Without it, you get this:

	Caught unhandled St12length_error exception: vector::_M_default_append
2016-08-23 07:56:48 -04:00
Nathan Woods
16d4c4e358 Fixed regression with cassette code that caused hangs to happen when loading cassette image formats that lacked read/write support
This entailed reintroducing device_image_interface::make_readonly(); I also reimplemented the feature in the cassette code in a less hacky way.
2016-08-20 22:42:53 -04:00
Nathan Woods
d1227cb38f casserr_t ==> enum class cassette_image::error 2016-08-20 19:59:04 -04:00
Nathan Woods
02b9749216 Stop forcing cassette image create when loading zero-length images. Also minor C++-ifications to cassette code (usage of bool and std::string, C++ comments) 2016-08-20 16:58:24 -04:00
Nathan Woods
d3b374d545 Fixed an issue with legacy floppy loading caused by filetype() now being a std::string
This caused 'mame a800 -flop1 brucelee' to fail on startup, but after this fix the image mounts but incorrectly.
2016-08-18 21:25:28 -04:00
Curt Coder
278cb2fc4e abc80x: Fixed ABC-838 disk image cell size. [Curt Coder] 2016-08-15 16:05:49 +03:00
Michael Zapf
bec5bd5022 hdc92x4: Added 9224 emulation; ti99_dsk: Fixed issue with deleted data marks in FM 2016-08-14 21:48:23 +02:00
Curt Coder
6a1ac985d4 victor9k: WIP. (nw) 2016-08-14 17:32:19 +03:00
Curt Coder
20127228a0 victor9k: Set floppy RPM after track step. Boots to CP/M now. [Curt Coder] 2016-08-12 15:15:14 +03:00
Miodrag Milanovic
6f5e223853 for bool type use true and false (nw) 2016-07-31 20:02:56 +02: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
Miodrag Milanovic
eaa70ae031 cleanup of some conversions (nw) 2016-07-31 16:41:26 +02:00
Miodrag Milanovic
aeadbfe2b1 fix linux compile (nw) 2016-07-31 14:59:01 +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
Miodrag Milanovic
4887ce1844 Cleanups and version bump 2016-07-27 09:26:22 +02:00
Nigel Barnes
9104c9d523 renamed bbc_dsk to acorn_dsk
- split ssd/dsd formats
- added opus ddos format
- split adfs into oldmap and newmap formats for archimedes
- logging
2016-07-16 19:48:44 +01:00
Nigel Barnes
97c122ca4f fsd_dsk: more logging (nw) 2016-07-16 19:48:44 +01:00
Olivier Galibert
9eb57470c9 Fix archimedes disk format [O. Galibert] 2016-07-15 12:43:40 +02:00
Nathan Woods
e3cb2c7d78 C++-ification of src/lib/util/opresolv.[cpp|h] (moved to util:: namespace, changed option_resolution to be a class, etc) 2016-07-07 06:59:35 -04:00
Olivier Galibert
7099d6eaa2 gcc 6.1.1 warning fixes (nw) 2016-06-16 14:21:44 +02:00
Robbbert
13526f680b MT 06236 [Robbbert] 2016-06-15 23:27:01 +10:00
Robbbert
309d977066 MT 05783 [Robbbert] 2016-06-12 00:01:38 +10:00
Nigel Barnes
55724435b2 fsd_dsk: logging (nw) 2016-06-05 22:53:37 +01:00
Nigel Barnes
e4ea1303b3 e01: added acorn filestore floppy format and softlist 2016-06-05 22:53:37 +01:00
Robbbert
bb10b1beb0 sorcerer: calculate baud rates based on actual dividers on pcb. Fixed a bug with quickload. 2016-06-05 23:27:46 +10:00
Vas Crabb
ce21ce6410 Bad boy, Micko (nw) 2016-05-19 21:16:43 +10:00
AJR
b8c05fd084 Workaround for MT 06194 (potential segfault during floppy load) 2016-05-01 10:26:28 -04:00
Robbbert
a320b64f3a MT 06189 2016-05-01 15:36:56 +10:00
etabeta78
24900375fd cgenie.cpp: expanded .cas support so that also files created by
Genieous emulator can be loaded. [Fabio Priuli]
2016-04-24 16:07:06 +02:00
Miodrag Milanovic
89c5e1f681 Various cleanups suggested by static analyzer (nw) 2016-04-24 12:58:31 +02:00
Jordi Mallach
80890952a7 Typo fix: nonexistant → nonexistent 2016-04-01 02:28:15 +02:00
Jordi Mallach
1d052674c9 Typo fix: threshholds → thresholds 2016-03-31 23:17:32 +02:00
Brad Hughes
5d4c65c071 Rename ioprocs parameters from "generic" which MS C++ compiler treats as keyword when compiling with /ZW 2016-03-16 16:51:12 -04: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
Miodrag Milanovic
39f3243a20 consistency fixes and add missed files (nw) 2016-03-04 15:37:07 +01:00
Miodrag Milanovic
4e8e3066f8 reverting:
SHA-1: 1f90ceab07

* tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-20 21:42:13 +01:00
Miodrag Milanovic
1f90ceab07 tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-16 14:54:42 +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
ce75a5d682 removed memory tracking (nw) 2016-01-08 12:41:13 +01:00
Miodrag Milanovic
4afd75e2fd Cleanups and version bump 2015-12-30 08:18:51 +01:00
Nigel Barnes
c99150a5f2 fix override (nw) 2015-12-29 21:28:59 +00:00
Nigel Barnes
be27191a1a bbc: added Torch computer (preliminary) 2015-12-29 21:28:57 +00:00
Miodrag Milanovic
379581fb36 macro removal INLINE -> static inline (nw) 2015-12-12 08:58:57 +01:00
dankan1890
8f58489dbe fix build for VS 2013 and earlier.
reference http://stackoverflow.com/questions/22212737/strange-syntax-error-reported-in-a-range-based-for-loop
2015-12-07 19:45:14 +01:00
Miodrag Milanovic
3ee9b6cee4 fixing some more override (nw) 2015-12-06 09:23:23 +01:00
Miodrag Milanovic
7ab3a5e0fc override part 3 (nw) 2015-12-05 21:20:56 +01:00
Miodrag Milanovic
1c4865d66f override part 1 (nw) 2015-12-05 21:20:53 +01:00
Miodrag Milanovic
3e5898124e some core c++11 narrowing fixes (nw) 2015-12-04 15:03:26 +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
91605d3f4d clang-modernize part 1 (nw) 2015-12-03 18:17:25 +01:00
Miodrag Milanovic
0825ce4f3b Cleanups and version bump 2015-11-25 08:22:24 +01:00
Peter Ferrie
7f8df68ae0 ap2_dsk.c: support 36-track Apple II NIB images [Peter Ferrie] 2015-11-19 19:49:59 -08:00
Nigel Barnes
de7c9eab24 null is \0 (nw) 2015-11-15 03:05:32 +00:00
Nigel Barnes
5d004af6c9 bbc: preliminary support for FSD format. 2015-11-15 02:38:06 +00:00
therealmogminer@gmail.com
bf5cee9b9e - Fix PVS-Studio warning V562, "It's odd to compare a bool type value with
a value of 0/1" [MooglyGuy]
2015-11-09 13:50:57 +01:00
therealmogminer@gmail.com
33f410f0d9 Fix more PVS-Studio warnings, nw 2015-11-09 11:22:13 +01:00
Miodrag Milanovic
7c19aac60e Rename *.c -> *.cpp in our source (nw) 2015-11-08 12:56:12 +01:00
Robbbert
4b601d4784 Sharp MZ series: Adjusted mz_cas to work with MZ-800, MZ-80K and MZ-80A;
Added mzf tapes to MZ-80K and MZ-80A;
Removed hack from MZ-800.
2015-11-07 12:43:36 +11:00
therealmogminer@gmail.com
52fa9421b9 - Fix some instances of PVS-Studio warning V501, "There are identical sub-
expressions to the left and to the right of an operator". [MooglyGuy]
2015-11-06 14:02:51 +01:00
Miodrag Milanovic
41fea29de5 Relaxed emu.h a bit, should make compile a bit faster (nw) 2015-11-05 20:39:57 +01:00
Miodrag Milanovic
18188cb13b making logerror part of machine and device classes [Miodrag Milanovic]
display tag of device that logged message
2015-11-01 14:34:45 +01:00
David Haywood
5bafdbf6b4 not yet correct (nw) 2015-10-28 19:35:16 +00:00
David Haywood
e3072fa52d checkpoint (nw) 2015-10-28 16:54:05 +00:00
Miodrag Milanovic
47f56372ee Cleanup and version bump 2015-10-28 08:06:12 +01:00
David Haywood
72e9cbdd61 basic support for 'Direct Recording' block type in tzx format, cpc_cass entry 'bombscar' uses this. (nw) 2015-10-27 19:51:14 +00:00
arbee
bd5fca7042 Apollo changes: [Hans Ostermeyer]
- fixed the Apollo floppy disk emulation
 - added the media option -node_id resp. -ni to set the node ID from a node ID rom image file
 - fixed the unmapped ISA Bus access to return 0xff instead of 0x00
 - removed excessive log entries from unmapped ISA Bus access
 - fixed date (and some other issues) in mc146818 (new in MAME 0166)
2015-10-24 17:09:09 -04:00
Miodrag Milanović
18295eaecb Merge pull request #413 from Pernod70/master
saa5050 rounding, bbc floppy formats, roms, and softlists [Nigel Barnes]
2015-10-24 08:33:16 +02:00
Robbbert
0865bef831 camplynx: another note. (nw) 2015-10-24 15:49:52 +11:00
Nigel Barnes
a679a22350 bbc: floppy formats and rom updates
- improved ssd, dsd handling
- added Acorn DOS and CPM formats
- added known good rom configuration for acw443 (Cambridge Workstation)
- removed some BAD_DUMP flags
2015-10-21 17:25:51 +01:00
Robbbert
bc19234d3f Camputers Lynx: some work on floppy disk. 2015-10-19 13:33:27 +11:00
Curt Coder
e17f57845f tiki100: Connected the I/O space to the expansion bus, and added the 360KB floppy format for MS-DOS. [Curt Coder] 2015-10-13 21:57:37 +03:00
cracyc
c400248728 i8271: modernize [Carl] 2015-09-28 16:14:53 -05:00
MetalliC
2955e94f09 vector06 80 trk format (nw) 2015-09-18 23:32:13 +03:00
Nigel Barnes
c0e72ea08d bbc: clones, floppy formats, softlists, and cleanups.
- Added clone bbcb1770, bbcb now 8271 only.
- Added clone pro128s, Olivetti Prodest PC 128S.
- Added clones Acorn Business Computers and Cambridge Workstation.
- Added clone reutapm, Reuters APM board.
- Improved floppy formats, added dsd and double density formats for ADFS.
- Added speech PHROMs, not yet hooked up correctly.
- Added softlists bbcb_de_cass, bbcb_us_flop and bbcmc_flop.
- Added S11 links (dipswitch) to specify Econet ID.
- Address map cleanups.
2015-09-07 09:49:14 +01:00
Michael Zapf
f1e2920275 mfmhd: using string instead of char* 2015-08-02 16:40:30 +02:00
Michael Zapf
be6c3ee4c9 mfmhd: Introduced format definition, now generally available. 2015-08-02 15:50:22 +02:00
Michael Zapf
551c9f0788 mfmhd: Autodetect gaps, defined formats 2015-08-02 15:50:22 +02:00
Olivier Galibert
af55f61abf floppy: Fix amiga crc (fixes adf) (nw) 2015-07-28 14:19:13 +02:00
Dirk Best
08c7ed6ffb guab: Updated driver to use the standard wd floppy controller.
This also means that it now uses the software list system instead of
loading the floppy disk image into a memory region. To run the driver
use: "mame guab -flop guab3" now. You may also just start the driver,
then choose a floppy disk image from the builtin file manager.
2015-07-09 12:58:25 +02:00
Cowering
764ef82c7d no idea what i changed :( (nw) 2015-07-08 23:37:56 -05:00
Cowering
a821b6c4be blame balrog for this :) (NW) 2015-07-08 14:05:56 -05:00
Curt Coder
8bf401543d c128_flop.xml: Added Paperback Writer 128, Term Paper Writer, The Great War, and Your Personal Financial Planner 128 disk images. [Curt Coder] 2015-07-07 14:55:03 +03:00
Curt Coder
e3e03e67d1 g64_dsk: Respect the number of tracks specified in the image header. [Curt Coder] 2015-07-05 22:15:58 +03:00
Michael Zapf
5ed6d7c6f9 This is it. ti99 says Goodbye to legacy floppy. 2015-07-05 19:59:37 +02:00
Miodrag Milanovic
d1583b9850 Cleanups and version bump 2015-06-24 07:36:50 +02:00
Dirk Best
1c1860499f move some legacy formats over to imgtool since it's now the only user 2015-06-10 12:28:33 +02:00
Dirk Best
6ba157cb67 vtech1_dsk: remove, no longer used 2015-06-08 13:15:03 +02:00
Dirk Best
c33d1518ef cpis_dsk: remove legacy format 2015-06-08 12:53:17 +02:00
Dirk Best
2cc9da11de msx_dsk: remove legacy format 2015-06-08 12:18:45 +02:00
Dirk Best
b749e0a2f7 m20_dsk: remove legacy format 2015-06-08 11:36:11 +02:00
Dirk Best
126f95c786 atarist_dsk: remove, no longer used 2015-06-08 11:24:49 +02:00
Dirk Best
244b8d315d apridisk: update for new floppy system 2015-06-07 03:21:17 +02:00
Dirk Best
c414fffc30 thompson: updated to use the new wd fdc. same deal with as bbc: drives 0
and 1 are used for the controller with the wd, other legacy drives for
other controllers (needs slotification).
2015-06-05 10:21:37 +02:00
Dirk Best
a444bc8e25 coco: updated to use the new wd fdc 2015-06-04 16:55:30 +02:00
Dirk Best
9ab3e52d16 vdk_dsk: clean up 2015-06-04 09:38:41 +02:00
Dirk Best
3a571779c0 trs80: updated to use the new wd fdc 2015-06-04 08:33:57 +02:00
Dirk Best
8afcf3f9ce svi318: updated to use the new wd fdc. floppy support has been restored,
which was broken for a long time.
2015-06-03 18:56:17 +02:00
Olivier Galibert
d92b8d522a Solved the great Sherwood Forest mystery. DOS 3.3 inserts a short
(3-4 cycles, roughly equivalent to one bit) delay between writing the
header and the data bytes in the sector data block.  [Peter Ferrie,
Olivier Galibert, Richter Belmont]
2015-06-03 08:41:33 +02:00
Dirk Best
0ebc3e5033 vector06: updated to use the new wd fdc. system appears to be broken but
loads some sectors from disk.
2015-06-02 17:16:36 +02:00
Dirk Best
ada45f655e hec2mdhrx: updated to use the new wd fdc. 2015-06-02 13:36:47 +02:00
Dirk Best
476d027582 mz2000: updated to use new wd fdc. fix softlist to use the correct
interface. change x1_dsk to 2d_dsk and use it for the mz2000 as well.
2015-06-01 10:14:37 +02:00
Dirk Best
bf4f1beaa2 cgenie: fix plain sector disk images 2015-05-31 21:50:55 +02:00
Dirk Best
d68270a157 wd177x_dsk: add support to mark tracks as deleted data 2015-05-31 21:50:51 +02:00
Dirk Best
22ee342634 flopimg: save all possible data sectors in fm mode 2015-05-31 21:50:47 +02:00
Dirk Best
75b15886e3 pk8020: updated to use the new wd fdc. fixes regression booting cp/m. 2015-05-31 18:11:26 +02:00
Dirk Best
2f7882fbff x1/x1twin: updated to use the new wd fdc. bonus: formatting disks now
works in hubasic.
2015-05-31 10:40:46 +02:00
Miodrag Milanovic
2c34deb09a fix compile on latest clang (nw) 2015-05-31 08:07:05 +02:00
Robbbert
16ed4aae36 camplynx: added a popmessage to tell user how to load the tape. 2015-05-31 14:11:06 +10:00
Dirk Best
0afa682456 dgnalpha: updated to use the new wd fdc 2015-05-30 15:07:48 +02:00
Dirk Best
0624b6efd0 restore my bbc changes (wtf did happen to them?) 2015-05-29 23:47:41 +02:00
Robbbert
fc9781ca90 camplynx: handle level9 adventures. Not working though due to banking issues. 2015-05-29 19:32:08 +10:00
Cowering
ea2762e799 Merge branch 'master' of https://github.com/mamedev/mame 2015-05-28 17:07:47 -05:00
Cowering
4332164659 compile fixes for GCC5.1.1 win64 and CPP11 mode.. requested by mingw team to test LTO fixes. please add #ifdefs if 64 bit printf does not work for you 2015-05-28 17:03:36 -05:00
Dirk Best
05664c6657 z80ne: updated to use the new wd fdc. remove custom dmk implementation 2015-05-28 17:27:29 +02:00
Dirk Best
1872750247 cleanup/bbcm fix (nw) 2015-05-27 17:23:55 +02:00