Skip to content

Commit b65de11

Browse files
committed
wip
1 parent 43a6194 commit b65de11

File tree

4 files changed

+410
-1
lines changed

4 files changed

+410
-1
lines changed

inc/floppy.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ struct adf_image {
5050
uint8_t sec_map[2][22];
5151
};
5252

53+
struct apple2_image { /* XXX */
54+
uint32_t trk_off;
55+
uint32_t sec_idx;
56+
int32_t decode_pos;
57+
uint32_t pre_idx_gap_bc;
58+
uint32_t nr_secs;
59+
uint32_t written_secs;
60+
uint8_t sec_map[2][22];
61+
};
62+
5363
struct hfe_image {
5464
uint16_t tlut_base;
5565
uint16_t trk_off;
@@ -198,6 +208,7 @@ struct image {
198208

199209
union {
200210
struct adf_image adf;
211+
struct apple2_image apple2;
201212
struct hfe_image hfe;
202213
struct qd_image qd;
203214
struct img_image img;

src/image/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ OBJS += image.o
33

44
OBJS-$(quickdisk) += qd.o
55

6+
OBJS-$(apple2) += apple2.o
67
OBJS-$(apple2) += hfe.o
8+
OBJS-$(apple2) += mfm.o
79

810
OBJS-$(shugart) += adf.o
911
OBJS-$(shugart) += dsk.o

0 commit comments

Comments
 (0)