Merge pull request #46 from peterferrie/master

improve support for The Wizard and the Princess
This commit is contained in:
4am 2018-01-18 16:58:55 -05:00 committed by GitHub
commit e9b12036d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 5 deletions

View File

@ -26,6 +26,7 @@
; The Black Cauldron ; The Black Cauldron
; The Dark Crystal ; The Dark Crystal
; Mixed Up Mother Goose ; Mixed Up Mother Goose
; The Artist
; ;
; module by qkumba ; module by qkumba
;------------------------------- ;-------------------------------
@ -41,6 +42,25 @@
ldy #$01 ldy #$01
jsr modify jsr modify
!byte $2C !byte $2C
;there are two of these on the same track
+ ldy #3
jsr SearchTrack
.jmp1
!byte $4C,$D1,$D1 ;JMP $xxxx
bcs +
ldy #$01
jsr modify
!byte $60
ldy #3
jsr SearchTrack
.jmp2
!byte $4C,$D1,$D1 ;JMP $xxxx
bcs +
ldy #$01
jsr modify
!byte $60
+ ldy #3 + ldy #3
jsr SearchTrack jsr SearchTrack
.load .load
@ -194,6 +214,16 @@
ldy #$01 ldy #$01
jsr modify jsr modify
!byte $EA ;NOP !byte $EA ;NOP
+ ldy #7
jsr SearchTrack
!byte $60 ;encoded NOP
!byte $AA,$AA,$C8 ;encoded JSR $4220
!byte $4C,$BF,$48 ;JMP $48BF
bcs +
inx
ldy #$01
jsr modify
!byte $A6 ;encoded BIT
+ jmp .exit + jmp .exit
.trybox .trybox
@ -404,9 +434,13 @@ patchstyle
.page3 .page3
lda $D101,x lda $D101,x
sta .call+1 sta .call+1
sta .jmp1+1
sta .jmp2+1
.page4 .page4
lda $D102,x lda $D102,x
sta .call+2 sta .call+2
sta .jmp1+2
sta .jmp2+2
txa txa
adc #9 adc #9
tax tax
@ -507,9 +541,13 @@ patchstyle
bcs .exit bcs .exit
.page8 .page8
lda $D109,x lda $D109,x
pha
.adj .adj
adc #$D1 adc #$D1
tax tax
pla
adc #4
sta .tryalt+1
.cmp6 .cmp6
lda #$D1 lda #$D1
pha pha
@ -518,6 +556,15 @@ patchstyle
!byte $A9,$1C ;LDA #$1C !byte $A9,$1C ;LDA #$1C
!byte $8D ;STA $xxxx !byte $8D ;STA $xxxx
pla pla
bcc .yes
pha
.tryalt
ldx #$D1
ldy #3
jsr compare
!byte $A9,$1C ;LDA #$1C
!byte $8D ;STA $xxxx
pla
bcs .exit bcs .exit
.yes .yes

View File

@ -61,19 +61,21 @@
!byte $8D,$8D,$BE ;STA $BE8D !byte $8D,$8D,$BE ;STA $BE8D
pla pla
sec sec
sbc #$0B sbc #$0D
tax tax
pla pla
ldy #8 ldy #10
jsr compare jsr compare
!byte $A9,$85 ;LDA #$85
!byte $8D,$7D,$BE ;STA $BE7D !byte $8D,$7D,$BE ;STA $BE7D
!byte $A9,$6B ;LDA #$6B !byte $A9,$6B ;LDA #$6B
!byte $8D,$7E,$BE ;STA $BE7E !byte $8D,$7E,$BE ;STA $BE7E
bcs ++ bcs ++
ldy #8 ldy #10
jsr modify jsr modify
!byte $A9,$A0 ;LDA #$A0
!byte $8D,$8C,$BE ;STA $BE8C !byte $8D,$8C,$BE ;STA $BE8C
!byte $A9,$6B ;LDA #$6B !byte $A9,$B9 ;LDA #$B9
!byte $8D,$8D,$BE ;STA $BE8D !byte $8D,$8D,$BE ;STA $BE8D
++ pla ++ pla
clc clc

View File

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