expand MicroFun patcher [fixes Short Circuit]

This commit is contained in:
4am 2018-04-06 13:31:17 -04:00
parent bfa675b13b
commit 522b16c352
3 changed files with 16 additions and 19 deletions

View File

@ -1,35 +1,33 @@
;------------------------------- ;-------------------------------
; #MICROFUN ; #MICROFUN
; RWTS jumps to nibble check ; RWTS jumps to nibble check after
; from $BE38 ; reading certain sectors
; e.g. Station 5, re-releases of ;
; The Heist and Miner 2049er ; tested on
; - Station 5
; - The Heist
; - Miner 2049er (re-release)
; - Miner 2049er II
; - Short Circuit
;------------------------------- ;-------------------------------
!zone { !zone {
lda gIsRWTS ; if DOS 3.3-shaped RWTS lda gIsRWTS ; if DOS 3.3-shaped RWTS
bne .exit bne .exit
lda #$08
ldx #$AF
ldy #$09 ldy #$09
jsr compare ; and T00,S08,$AF == jsr SearchTrack
!byte $A0,$00 ; LDY #$00 !byte $A0,$00 ; LDY #$00
!byte $84,$26 ; STY $26 !byte $84,$26 ; STY $26
!byte $84,$27 ; STY $27 !byte $84,$27 ; STY $27
!byte $BD,$8C,$C0; LDA $C08C,X !byte $BD,$8C,$C0; LDA $C08C,X
bcs .exit bcs .exit
ldx #$38
ldy #$03
jsr compare ; and T00,S08,$38 ==
!byte $4C,$6A,$BA; JMP $BA6A
bcs .exit
sta gDisplayBytes sta gDisplayBytes
pha pha
lda #s_microfun lda #s_microfun
jsr PrintByID jsr PrintByID
pla pla
ldy #$03 ldy #$02
jsr modify ; then set T00,S08,$38 = jsr modify
!byte $08 ; PHP !byte $18 ; CLC
!byte $B0,$8E ; BCS - !byte $60 ; RTS
.exit .exit
} }

View File

@ -92,10 +92,9 @@
!byte $C9 !byte $C9
bcs + bcs +
ldx #$92 ldx #$92
ldy #$03 ldy #$02
jsr compare ; and T00,S03,$92 == jsr compare ; and T00,S03,$92 ==
!byte $D0,$AE !byte $D0,$AE
!byte $EA
bcs + bcs +
ldx #$91 ldx #$91
ldy #$01 ldy #$01

View File

@ -140,7 +140,7 @@ StringTable
; can be set directly before calling PrintByID. ; can be set directly before calling PrintByID.
; ;
.header .header
!text "Passport by 4am 2018-04-05",$00 !text "Passport by 4am 2018-04-06",$00
.mainmenu .mainmenu
!text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D !text "________________________________________",$8D,$8D,$8D,$8D,$8D,$8D,$8D
!text " " !text " "