mirror of
https://github.com/trudnai/Steve2.git
synced 2024-09-23 19:55:22 +00:00
fddb1d9642
- HiRes support - Reset Vector fixes - ROM read from file - Better MMIO Handling - BugFixes - Shader Metal try
57 lines
1.3 KiB
C
57 lines
1.3 KiB
C
//
|
|
// woz1.h
|
|
// A2Mac
|
|
//
|
|
// Created by Tamas Rudnai on 11/18/19.
|
|
// Copyright © 2019 GameAlloy. All rights reserved.
|
|
//
|
|
|
|
#ifndef woz_h
|
|
#define woz_h
|
|
|
|
|
|
typedef struct woz_header_s {
|
|
uint32_t magic;
|
|
uint8_t no7;
|
|
char lineend [3];
|
|
uint32_t crc;
|
|
} woz_header_t;
|
|
|
|
typedef struct woz_chunk_header_s {
|
|
uint32_t magic;
|
|
uint32_t size;
|
|
} woz_chunk_header_t;
|
|
|
|
// chunk data only
|
|
typedef struct woz_info_s {
|
|
uint8_t version;
|
|
uint8_t disk_type; // 1 = 5.25, 2 = 3.5
|
|
uint8_t is_write_protected;
|
|
uint8_t sync; // 1 = Cross track sync
|
|
uint8_t cleaned; // 1 = MC3470 fake bits removed
|
|
char creator [32]; // Name of software created this file (UTF-8, 0x20 padded, NOT zero terminated)
|
|
} woz_info_t;
|
|
|
|
// chunk data only
|
|
typedef struct woz_tmap_s {
|
|
uint8_t phase [80 * 4];
|
|
} woz_tmap_t;
|
|
|
|
#define WOZ_TRACK_BYTE_COUNT 6646
|
|
// chunk data only
|
|
typedef struct woz_track_s {
|
|
uint8_t data [WOZ_TRACK_BYTE_COUNT];
|
|
uint16_t bytes_used;
|
|
uint16_t bit_count;
|
|
uint16_t splice_point;
|
|
uint8_t splice_nibble;
|
|
uint8_t splice_bit_count;
|
|
uint16_t reserved;
|
|
} woz_track_t;
|
|
|
|
// chunk data only
|
|
typedef woz_track_t woz_trks_t[80];
|
|
|
|
|
|
#endif /* woz_h */
|