press 0 after verification fails to retry and ignore all bad sectors

This commit is contained in:
4am 2018-10-11 17:58:12 -04:00
parent 639c442cb5
commit 052894065a
3 changed files with 15 additions and 6 deletions

View File

@ -594,8 +594,13 @@ TheEnd
beq CleanExit
cmp #k_redo
beq HandleRedo
cmp #k_redo_with_ignore
beq HandleRedoWithIgnore
jmp MainMenu
HandleRedoWithIgnore
jsr InitSectorMapWithIgnore
; note: execution falls through here
HandleRedo
jsr ClearScreen
lda #s_header

View File

@ -35,13 +35,16 @@ kSectorResetAdaptiveRWTS = $C0 ; will accept any epilogue on next sector,
kSectorIgnoreAddressChecksum = $C1 ; will ignore address field checksum
kSectorCustomDOS32B4BB = $C2 ; DOS 3.2 / JMP B4BB RWTS swapper
;-------------------------------
InitSectorMap
!zone {
lda #<sectormap
sta .B+1
lda #>sectormap
sta .B+2
InitSectorMapWithIgnore
lda #kSectorOptional
!byte $2C
InitSectorMap
lda #kSectorRequired
ldx #<sectormap
stx .B+1
ldx #>sectormap
stx .B+2
ldx #$22
.A ldy #$0F
.B sta $FFFF

View File

@ -10,6 +10,7 @@ k_crack = "C"
k_slot = "S"
k_quit = "Q"
k_redo = "2" ;for some side 'B'
k_redo_with_ignore = "0";
; <Esc> will also quit
!source "strings/enid.a"
@ -147,7 +148,7 @@ StringTable
; can be set directly before calling PrintByID.
;
.header
!text "Passport by 4am 2018-10-10",$00
!text "Passport by 4am 2018-10-11",$00
.mainmenu
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
!text " "