further refactoring (Trace33P should actually do what I want now)

This commit is contained in:
4am 2021-04-12 17:38:08 -04:00
parent 0bf69eacb2
commit 3f99d8f14c
3 changed files with 15 additions and 17 deletions

View File

@ -1,3 +1,15 @@
precheck_sectors
; This list is (re)initialized in IDBootloader,
; then potentially altered in IDDOS33 and elsewhere.
; Values are logical sector numbers.
; There are always 16 (0x10) values in this list.
; Negative values are ignored.
; Positive values are treated as logical
; sector numbers and read from track $00.
; Sectors are read in the order listed here.
!byte $09,$08,$07,$06,$05,$04,$03,$02,$01
!byte $00,$FF,$FE,$FD,$FC,$FB,$FA,$F9,$F8
;------------------------------- ;-------------------------------
; PreCheckT00 ; PreCheckT00
; ;
@ -7,10 +19,7 @@
; the sectors we're about to trace are actually readable. ; the sectors we're about to trace are actually readable.
; ;
; Before calling this function, you need to set all 16 ; Before calling this function, you need to set all 16
; bytes of the precheck_sectors array to a positive ; bytes of the precheck_sectors array (see above for format).
; number (check that sector) or a negative number (don't
; check that sector). The array is ordered by logical
; sectors, regardless of the type of disk.
; ;
; If all required sectors are readable by Passport's own ; If all required sectors are readable by Passport's own
; sector read routine, this exits gracefully with all ; sector read routine, this exits gracefully with all

View File

@ -13,18 +13,6 @@ TraceDOS33
ldx #>TraceDOS33b ldx #>TraceDOS33b
jmp Trace jmp Trace
precheck_sectors
; This list is (re)initialized in IDBootloader,
; then potentially altered in IDDOS33.
; Values are logical sector numbers.
; There are always 16 (0x10) values in this list.
; Negative values are ignored.
; Positive values are treated as logical
; sector numbers and read from track $00.
; Sectors are read in the order listed here.
!byte $09,$08,$07,$06,$05,$04,$03,$02,$01
!byte $00,$FF,$FE,$FD,$FC,$FB,$FA,$F9,$F8
;------------------------------- ;-------------------------------
; TraceDOS33b ; TraceDOS33b
; set up 2nd boot trace at $084A ; set up 2nd boot trace at $084A

View File

@ -38,7 +38,8 @@ TraceSpecDel
dex dex
bpl - bpl -
inc precheck_sectors inc precheck_sectors
inc precheck_sectors+7 lda #$07
inc precheck_sectors+1
jsr PreCheckT00 jsr PreCheckT00
jsr ClearTSBuffer jsr ClearTSBuffer