diff options
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/hti_tape.cpp | 2 | ||||
-rw-r--r-- | src/lib/formats/hti_tape.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/formats/hti_tape.cpp b/src/lib/formats/hti_tape.cpp index 92f28228a59..f046ea0c130 100644 --- a/src/lib/formats/hti_tape.cpp +++ b/src/lib/formats/hti_tape.cpp @@ -10,8 +10,6 @@ #include "imageutl.h" static constexpr uint32_t FILE_MAGIC = 0x5441434f; // Magic value at start of image file: "TACO" -static constexpr hti_format_t::tape_pos_t ZERO_BIT_LEN = 619; // Length of 0 bits at slow tape speed: 1/(35200 Hz) -static constexpr hti_format_t::tape_pos_t ONE_BIT_LEN = 1083; // Length of 1 bits at slow tape speed: 1.75 times ZERO_BIT_LEN // *** Position of tape holes *** // At beginning of tape: diff --git a/src/lib/formats/hti_tape.h b/src/lib/formats/hti_tape.h index 3366b48f697..4c5e5ed3279 100644 --- a/src/lib/formats/hti_tape.h +++ b/src/lib/formats/hti_tape.h @@ -33,6 +33,12 @@ public: // Tape length: 140 ft of usable tape + 72" of punched tape at either end static constexpr tape_pos_t TAPE_LENGTH = (140 * 12 + 72 * 2) * ONE_INCH_POS; + // Length of 0 bits at slow tape speed: 1/(35200 Hz) + static constexpr tape_pos_t ZERO_BIT_LEN = 619; + + // Length of 1 bits at slow tape speed: 1.75 times ZERO_BIT_LEN + static constexpr tape_pos_t ONE_BIT_LEN = 1083; + // Words stored on tape typedef uint16_t tape_word_t; |