modify now preserves A,X

This commit is contained in:
4am 2018-01-12 10:47:25 -05:00
parent 6df5814826
commit 4302cea943
3 changed files with 12 additions and 4 deletions

View File

@ -10,7 +10,8 @@
; $moddest zero page clobbered
; stack set to return to
; code after string
; all registers clobbered
; A,X preserved
; Y clobbered
; oVerflow bit clear
; all other flags clobbered
;-------------------------------
@ -71,6 +72,8 @@ modify
.exit
inc gPatchCount
.exitnomod
lda gDisplayBytes
ldx moddest
clv
rts
}

View File

@ -183,10 +183,15 @@
adc #6
tax
pla
ldy #$05
ldy #$01
jsr modify
!byte $EA ;NOP
!byte $BD,$47,$4A ;LDA $4A47,X
inx
inx
inx
inx
ldy #$01
jsr modify
!byte $EA ;NOP
+ jmp .exit

View File

@ -138,7 +138,7 @@ StringTable
; can be set directly before calling PrintByID.
;
.header
!text "Passport by 4am 2018-01-11",$00
!text "Passport by 4am 2018-01-12",$00
.mainmenu
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
!text " "