# HG changeset patch # User Tormod Volden # Date 1583613150 -3600 # Node ID d80acb6d104b836ff6189d52bb3e0036bad9dadc # Parent 359e2f4b5b9191e1706eb4d670f3cd7baa771ee3 os9gen: Fix bitmap check/update where boot sector is non-zero And on builds where the boot track is zero, most likely for Dragon, don't check or update the bitmap because the boot track should be reserved already. Ideally all this should be a run-time checks of the disk parameters and not depend on the build target. Later. diff -r 359e2f4b5b91 -r d80acb6d104b level1/cmds/os9gen.asm --- a/level1/cmds/os9gen.asm Sat Mar 07 20:29:51 2020 +0100 +++ b/level1/cmds/os9gen.asm Sat Mar 07 21:32:30 2020 +0100 @@ -572,11 +572,13 @@ leax TrkErr,pcr lbcs WritExit - ldd #Bt.Track*256 boot track regD=$2200 +* if boot track is on track zero (i.e. Dragon) skip bitmap check/update + IFNE Bt.Track + ldd #Bt.Track*256+Bt.Sec boot track (regD=$2200 for CoCo) ldy #$0004 four bits lbsr ABMClear this should test for clear not clear it bcc L0520 - ldd #Bt.Track*256 boot track, as it was not clear + ldd #Bt.Track*256+Bt.Sec read boot track, as it was not clear lbsr Seek2LSN seek to it leax