shave some bytes

This commit is contained in:
4am 2021-07-11 14:15:23 -04:00
parent 16bfd3441f
commit 43090d530f

View File

@ -179,10 +179,6 @@ ADStyle
; high memory) ; high memory)
; ;
+ +
lda gTrack
pha
lda gSector
pha
b4bbcompare b4bbcompare
lda #$FD ; modified at runtime (in Inspect1) lda #$FD ; modified at runtime (in Inspect1)
ldx #$00 ldx #$00
@ -199,7 +195,7 @@ b4bbcompare
sta b4bbmodify+1 sta b4bbmodify+1
lda #$91 ; low byte of address that checks address epilogue 1 lda #$91 ; low byte of address that checks address epilogue 1
sta b4bbmodify2+1 sta b4bbmodify2+1
ldx #$00 ; track ;X=0 so we will reuse that as the track number
ldy #$0C ; sector ldy #$0C ; sector
bne @all ; always branches bne @all ; always branches
@dos32 @dos32
@ -249,9 +245,8 @@ b4bbmodify2
lda #kSectorCustomDOS32B4BB lda #kSectorCustomDOS32B4BB
sta T02S0C sta T02S0C
_b4bbexit _b4bbexit
pla lda #$00
sta gSector sta gSector
pla
sta gTrack sta gTrack
; ;
; Check for Harvey protection ; Check for Harvey protection