passport/src/sectormap.a

83 lines
4.1 KiB
Plaintext
Raw Normal View History

!zone {
2017-01-08 03:35:35 +00:00
InitSectorMap
lda #<sectormap
sta .B+1
2017-01-08 03:35:35 +00:00
lda #>sectormap
sta .B+2
2017-01-08 03:35:35 +00:00
lda #$FF
ldx #$22
.A ldy #$0F
.B sta $FFFF
inc .B+1
2017-01-08 03:35:35 +00:00
bne +
inc .B+2
2017-01-08 03:35:35 +00:00
+ dey
bpl .B
2017-01-08 03:35:35 +00:00
dex
bpl .A
2017-01-08 03:35:35 +00:00
rts
}
2017-01-08 03:35:35 +00:00
;-------------------------------
; This is a map of how much we care about each sector
; on the disk. Each byte is one sector, arranged in
; increasing logical sector order from T00,S00 to T22,S0F.
; Some sectors have their own individual labels just for
; convenience.
; e.g. LDA #$80
; STA T00S0A
; will mark T00,S0A as optional
;
; Possible values for each sector:
; 00 = ignore this sector (don't even read it)
; 80 = sector is optional -- read, but ignore any errors
; FE = sector is required, and switch to the built-in RWTS
; after reading it (if we haven't already)
; FF = sector is required -- read, and any error is fatal
2017-01-08 03:35:35 +00:00
; (this is the default value for all sectors)
;-------------------------------
sectormap
2017-04-05 01:20:05 +00:00
T00 !byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
T00S09 !byte $FF
T00S0A !byte $FF
!byte $FF,$FF,$FF,$FF,$FF
T01 !byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
T01S0F !byte $FF
T02 !byte $FF,$FF,$FF,$FF,$FF
T02S05 !byte $FF
!byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
T03 !byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
T04 !byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
T05 !byte $FF,$FF,$FF,$FF,$FF,$FF,$F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