Skip to content

Commit 158fe80

Browse files
committed
Update binary and drive image
1 parent 80f3059 commit 158fe80

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*-bak
2+
*.o
3+
*.DS_Store

Firmware/BlankDriveWithFirmware.po

0 Bytes
Binary file not shown.

Firmware/Firmware.asm

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,18 @@ loop16: lda slotrd,x ;get a byte
186186
inc sram1 ;next 16 bytes
187187
cpy #$00
188188
bne loop256 ;go until 256 total
189-
190189
rts
191190

192-
text: .byte "ROM-Drive (c)1998-2019 Terence J. Boldt", 0
191+
text: .byte "ROM-Drive (c)1998-2019 Terence J. Boldt"
192+
end:
193+
.byte 0
193194

194195
; These bytes need to be at the top of the 256 byte firmware as ProDOS
195196
; uses these to find the entry point and drive capabilities
196197

197-
; In 1998, cc65 used to allow this but now with ld65 removes the padded bytes
198-
; .org $C0FC+slot*$100
199-
200-
; CAUTION: These are padding bytes entered manually, add or remove
201-
; to match if changing code. Firmware must be 256 bytes
202-
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
198+
.repeat 251-<end
199+
.byte 0
200+
.endrepeat
203201

204202
.byte 0,0 ;0000 blocks = check status
205203
.byte 3 ;bit 0=read 1=status

Firmware/Firmware.bin

105 Bytes
Binary file not shown.

Firmware/assemble.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ ca65 Firmware.asm -D SLOT5 -o slot5.o
88
ca65 Firmware.asm -D SLOT6 -o slot6.o
99
ca65 Firmware.asm -D SLOT7 -o slot7.o
1010
ld65 -t none warning.o slot1.o slot2.o slot3.o slot4.o slot5.o slot6.o slot7.o -o Firmware.bin
11+
12+
cat Firmware.bin | dd of=BlankDriveWithFirmware.po bs=1 seek=1046528 count=2048 conv=notrunc

0 commit comments

Comments
 (0)