summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool
diff options
context:
space:
mode:
author fulivi <fulivi@users.noreply.github.com>2021-01-12 13:29:30 +0100
committer GitHub <noreply@github.com>2021-01-12 23:29:30 +1100
commitfad7c9e0beb50f6c96da9ea8f93082bc349a25c2 (patch)
tree172a75715375b6627303798660004fd80dd2a75d /src/tools/imgtool
parentba587a777c41837c8aa9f2a2e8c1fc27b4616623 (diff)
hp2640.cpp: Added tape emulation. (#7625)
* formats/hti_tape.cpp: Added support for Manchester encoded DC100 cassettes. * machine/hp2640_tape.cpp: added emulation of DC100 tape drives. * machine/hp_dc100_tape.cpp: Added unit name display.
Diffstat (limited to 'src/tools/imgtool')
-rw-r--r--src/tools/imgtool/modules/hp85_tape.cpp2
-rw-r--r--src/tools/imgtool/modules/hp9845_tape.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/imgtool/modules/hp85_tape.cpp b/src/tools/imgtool/modules/hp85_tape.cpp
index fbdef06a7cb..0198b6251dd 100644
--- a/src/tools/imgtool/modules/hp85_tape.cpp
+++ b/src/tools/imgtool/modules/hp85_tape.cpp
@@ -145,7 +145,7 @@ typedef struct {
tape_image_85::tape_image_85(void)
: dirty(false)
{
- image.set_bits_per_word(16);
+ image.set_image_format(hti_format_t::HTI_DELTA_MOD_16_BITS);
}
void tape_image_85::format_img(void)
diff --git a/src/tools/imgtool/modules/hp9845_tape.cpp b/src/tools/imgtool/modules/hp9845_tape.cpp
index e9abc99789c..7a3e90b08d1 100644
--- a/src/tools/imgtool/modules/hp9845_tape.cpp
+++ b/src/tools/imgtool/modules/hp9845_tape.cpp
@@ -324,7 +324,7 @@ static const struct io_procs my_stream_procs = {
imgtoolerr_t tape_image_t::load_from_file(imgtool::stream *stream)
{
hti_format_t inp_image;
- inp_image.set_bits_per_word(16);
+ inp_image.set_image_format(hti_format_t::HTI_DELTA_MOD_16_BITS);
io_generic io;
io.file = (void *)stream;