mirror of
https://github.com/a2-4am/passport.git
synced 2024-12-23 10:31:52 +00:00
further refactoring (Trace33P should actually do what I want now)
This commit is contained in:
parent
0bf69eacb2
commit
3f99d8f14c
@ -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
|
||||
;
|
||||
@ -7,10 +19,7 @@
|
||||
; the sectors we're about to trace are actually readable.
|
||||
;
|
||||
; Before calling this function, you need to set all 16
|
||||
; bytes of the precheck_sectors array to a positive
|
||||
; 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.
|
||||
; bytes of the precheck_sectors array (see above for format).
|
||||
;
|
||||
; If all required sectors are readable by Passport's own
|
||||
; sector read routine, this exits gracefully with all
|
||||
|
@ -13,18 +13,6 @@ TraceDOS33
|
||||
ldx #>TraceDOS33b
|
||||
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
|
||||
; set up 2nd boot trace at $084A
|
||||
|
@ -38,7 +38,8 @@ TraceSpecDel
|
||||
dex
|
||||
bpl -
|
||||
inc precheck_sectors
|
||||
inc precheck_sectors+7
|
||||
lda #$07
|
||||
inc precheck_sectors+1
|
||||
jsr PreCheckT00
|
||||
|
||||
jsr ClearTSBuffer
|
||||
|
Loading…
Reference in New Issue
Block a user