mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 23:25:00 +00:00
It turns out that 5-and-3 disks have a different header prologue.
This commit is contained in:
@@ -16,12 +16,14 @@ namespace Storage {
|
|||||||
namespace Encodings {
|
namespace Encodings {
|
||||||
namespace AppleGCR {
|
namespace AppleGCR {
|
||||||
|
|
||||||
/// Describes the standard three-byte prologue that begins a header.
|
/// Describes the standard three-byte prologue that begins a header on both the Macintosh and the Apple II from DOS 3.3.
|
||||||
const uint8_t header_prologue[3] = {0xd5, 0xaa, 0x96};
|
constexpr uint8_t header_prologue[3] = {0xd5, 0xaa, 0x96};
|
||||||
/// Describes the standard three-byte prologue that begins a data section.
|
/// Describes the standard three-byte prologue that begins a data section.
|
||||||
const uint8_t data_prologue[3] = {0xd5, 0xaa, 0xad};
|
constexpr uint8_t data_prologue[3] = {0xd5, 0xaa, 0xad};
|
||||||
/// Describes the epilogue that ends both data sections and headers.
|
/// Describes the epilogue that ends both data sections and headers.
|
||||||
const uint8_t epilogue[3] = {0xde, 0xaa, 0xeb};
|
constexpr uint8_t epilogue[3] = {0xde, 0xaa, 0xeb};
|
||||||
|
/// Describes the standard three-byte prologue used by DOS 3.2 and earlier.
|
||||||
|
constexpr uint8_t five_and_three_header_prologue[3] = {0xd5, 0xaa, 0xb5};
|
||||||
|
|
||||||
namespace AppleII {
|
namespace AppleII {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user