From 052894065ac8daa4c9eadbec422f5cdd9278ae37 Mon Sep 17 00:00:00 2001 From: 4am Date: Thu, 11 Oct 2018 17:58:12 -0400 Subject: [PATCH] press 0 after verification fails to retry and ignore all bad sectors --- src/passport.a | 5 +++++ src/sectormap.a | 13 ++++++++----- src/strings/en.a | 3 ++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/passport.a b/src/passport.a index 1072622..616511f 100755 --- a/src/passport.a +++ b/src/passport.a @@ -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 diff --git a/src/sectormap.a b/src/sectormap.a index 15c5ab3..803a5f7 100755 --- a/src/sectormap.a +++ b/src/sectormap.a @@ -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+2 +InitSectorMapWithIgnore + lda #kSectorOptional + !byte $2C +InitSectorMap lda #kSectorRequired + ldx #sectormap + stx .B+2 ldx #$22 .A ldy #$0F .B sta $FFFF diff --git a/src/strings/en.a b/src/strings/en.a index 4721e97..91a3460 100755 --- a/src/strings/en.a +++ b/src/strings/en.a @@ -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"; ; 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 " "