Skip to content

Commit b1a6fa4

Browse files
committed
Make the AppleDOS and ProDOS settings options.
1 parent 0665fc0 commit b1a6fa4

File tree

6 files changed

+91
-66
lines changed

6 files changed

+91
-66
lines changed

doc/disk-apple2.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,17 @@ Just do:
4040
fluxengine read apple2
4141
```
4242

43-
You should end up with an `apple2.img` which is 143360 bytes long.
44-
It will be in physical sector ordering. You can specify a sector ordering,
45-
`appledos` or `prodos` to get an image intended for use in an emulator,
46-
due to the logical sector mapping issue described above:
43+
You should end up with an `apple2.img` which is 143360 bytes long. It will be in
44+
physical sector ordering. You can specify a sector ordering, `--appledos` or
45+
`--prodos` to get an image intended for use in an emulator, due to the logical
46+
sector mapping issue described above:
4747

4848
```
49-
fluxengine read apple2 prodos
49+
fluxengine read apple2 --prodos
5050
```
5151

52+
You will also need this for filesystem access.
53+
5254
Writing discs
5355
-------------
5456

@@ -58,10 +60,10 @@ fluxengine write apple2 -i apple2.img
5860
```
5961

6062
If your image is in logical sector ordering (images intended for emulators
61-
usually are), specify a modifier of `appledos` or `prodos`:
63+
usually are), specify a modifier of `--appledos` or `--prodos`:
6264

6365
```
64-
fluxengine write apple2 prodos -i apple2.img
66+
fluxengine write apple2 --prodos -i apple2.img
6567
```
6668

6769

lib/flags.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static bool setFallbackFlag(
6565
"allowed",
6666
path);
6767

68-
Logger() << fmt::format("Option {}: {}", path, configs.message());
68+
Logger() << fmt::format("OPTION: {}", configs.message());
6969
config.MergeFrom(configs.config());
7070
return false;
7171
}

src/formats/apple2.textpb

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,84 @@ encoder {
3232

3333
tpi: 48
3434

35+
option {
36+
name: "appledos"
37+
comment: "specifies AppleDOS soft sector skew for filesystem access and images"
38+
message: "compensating for AppleDOS soft sector skew"
39+
40+
config {
41+
image_reader {
42+
filesystem_sector_order: true
43+
}
44+
45+
image_writer {
46+
filesystem_sector_order: true
47+
}
48+
49+
layout {
50+
layoutdata {
51+
filesystem {
52+
sector: 0
53+
sector: 14
54+
sector: 13
55+
sector: 12
56+
sector: 11
57+
sector: 10
58+
sector: 9
59+
sector: 8
60+
sector: 7
61+
sector: 6
62+
sector: 5
63+
sector: 4
64+
sector: 3
65+
sector: 2
66+
sector: 1
67+
sector: 15
68+
}
69+
}
70+
}
71+
}
72+
}
73+
74+
option {
75+
name: "prodos"
76+
comment: "specifies ProDOS soft sector skew for filesystem access and images"
77+
message: "compensating for ProDOS soft sector skew"
78+
79+
config {
80+
image_reader {
81+
filesystem_sector_order: true
82+
}
83+
84+
image_writer {
85+
filesystem_sector_order: true
86+
}
87+
88+
filesystem {
89+
prodos {}
90+
}
91+
92+
layout {
93+
layoutdata {
94+
filesystem {
95+
sector: 0
96+
sector: 2
97+
sector: 4
98+
sector: 6
99+
sector: 8
100+
sector: 10
101+
sector: 12
102+
sector: 14
103+
sector: 1
104+
sector: 3
105+
sector: 5
106+
sector: 7
107+
sector: 9
108+
sector: 11
109+
sector: 13
110+
sector: 15
111+
}
112+
}
113+
}
114+
}
115+
}

src/formats/appledos.textpb

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/formats/build.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ FORMATS = \
2020
ampro800 \
2121
apple2_drive \
2222
apple2 \
23-
appledos \
2423
atarist360 \
2524
atarist370 \
2625
atarist400 \
@@ -62,7 +61,6 @@ FORMATS = \
6261
northstar175 \
6362
northstar350 \
6463
northstar87 \
65-
prodos \
6664
rx50 \
6765
shugart_drive \
6866
tids990 \

src/formats/prodos.textpb

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)