mirror of
https://github.com/a2-4am/passport.git
synced 2025-01-10 09:29:44 +00:00
shave some bytes
This commit is contained in:
parent
177591ddf1
commit
6626ec5034
@ -39,7 +39,6 @@
|
|||||||
tax
|
tax
|
||||||
.swapper2
|
.swapper2
|
||||||
lda #$FF ; modified at runtime
|
lda #$FF ; modified at runtime
|
||||||
;Y=#$01
|
|
||||||
jsr modify ; offset $08. $D5 -> 9B
|
jsr modify ; offset $08. $D5 -> 9B
|
||||||
!byte $9B
|
!byte $9B
|
||||||
|
|
||||||
@ -104,14 +103,11 @@
|
|||||||
!byte $A2,$D5
|
!byte $A2,$D5
|
||||||
!byte $8E,$2C,$BF
|
!byte $8E,$2C,$BF
|
||||||
bcs .exitt1
|
bcs .exitt1
|
||||||
lda #$02
|
inx
|
||||||
ldx #$B0
|
|
||||||
ldy #$01
|
ldy #$01
|
||||||
jsr modify ; then set T01,S02,$B0 =
|
jsr modify ; then set T01,S02,$B0 =
|
||||||
!byte $AD
|
!byte $AD
|
||||||
lda #$02
|
|
||||||
ldx #$B7
|
ldx #$B7
|
||||||
;Y=#$01
|
|
||||||
jsr modify ; and set T01,S02,$B7 =
|
jsr modify ; and set T01,S02,$B7 =
|
||||||
!byte $9B
|
!byte $9B
|
||||||
|
|
||||||
@ -157,7 +153,6 @@
|
|||||||
;
|
;
|
||||||
; bypass check for duplicate T00,S00
|
; bypass check for duplicate T00,S00
|
||||||
;
|
;
|
||||||
lda #$01
|
|
||||||
ldx #$93
|
ldx #$93
|
||||||
ldy #$03
|
ldy #$03
|
||||||
jsr compare ; if T00,S01,$93 ==
|
jsr compare ; if T00,S01,$93 ==
|
||||||
@ -174,7 +169,7 @@
|
|||||||
;
|
;
|
||||||
lda #$05
|
lda #$05
|
||||||
ldx #$15
|
ldx #$15
|
||||||
ldy #$02
|
dey
|
||||||
jsr compare ; if T00,S05,$15 ==
|
jsr compare ; if T00,S05,$15 ==
|
||||||
!byte $A5,$2F
|
!byte $A5,$2F
|
||||||
bcs .exit ; passport-test-suite/Math Blaster v080584.woz [C=0] matches
|
bcs .exit ; passport-test-suite/Math Blaster v080584.woz [C=0] matches
|
||||||
@ -185,27 +180,14 @@
|
|||||||
; re-enable write mode if it was disabled
|
; re-enable write mode if it was disabled
|
||||||
;
|
;
|
||||||
lda #$07
|
lda #$07
|
||||||
ldx #$48
|
|
||||||
ldy #$19
|
|
||||||
jsr compare ; if T00,S07,$48 ==
|
|
||||||
!byte $A0,$04
|
|
||||||
!byte $48
|
|
||||||
!byte $68
|
|
||||||
!byte $A0,$B9,$BD
|
|
||||||
!byte $88
|
|
||||||
!byte $D0,$F8
|
|
||||||
!byte $A9,WILDCARD
|
|
||||||
!byte $20,$B8,$BD
|
|
||||||
!byte $A9,WILDCARD
|
|
||||||
!byte $20,$B8,$BD
|
|
||||||
!byte $A9,WILDCARD
|
|
||||||
!byte $20,$B8,$BD
|
|
||||||
bcs .writeIsOK
|
|
||||||
ldx #$4C
|
ldx #$4C
|
||||||
ldy #$01
|
ldy #$01
|
||||||
|
jsr compare ; if T00,S07,$4C ==
|
||||||
|
!byte $A0
|
||||||
|
bcs + ; passport-test-suite/Bingo Bugglebee Presents Outdoor Safety.woz [C=0] matches
|
||||||
jsr modify ; then set T00,S07,$4C =
|
jsr modify ; then set T00,S07,$4C =
|
||||||
!byte $20
|
!byte $20
|
||||||
.writeIsOK
|
+
|
||||||
jmp .exit
|
jmp .exit
|
||||||
|
|
||||||
; subroutines for getting (and erasing) the embedded
|
; subroutines for getting (and erasing) the embedded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user