From 3e6d9c41db81355d1a99d8a225cf9461a80ca1cf Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Wed, 13 Mar 2019 16:23:54 -0700 Subject: [PATCH] distinguish better between 13- and hybrid-boot --- src/idboot.a | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/idboot.a b/src/idboot.a index e2b22f4..bb59357 100644 --- a/src/idboot.a +++ b/src/idboot.a @@ -11,8 +11,7 @@ IDBoot sta $867B ; found D5 AA 96 T00S00 D5 AA AD, proceed as 16-sector -- clc - jmp $865D +- jmp $865C ; found D5 AA not-96 ; check for out-of-order D5 AA AD @@ -23,6 +22,19 @@ IDBoot cmp #$B5 bne - +; found D5 AA B5, try to read address field + lda #$60 + sta $8699 + ldy #3 + jsr $868F + lda #$28 + sta $8699 + +; non-zero track suggests copy-protection +; proceed as 16-sector instead + lda $40 + bne -- + ; found D5 AA B5, assume 13-sector lda #$90 sta $867B