BEQ IMPLIES SET CARRY
This commit is contained in:
spannerisms
2021-03-25 05:17:03 -04:00
parent 1dca518150
commit f95351183c
2 changed files with 12 additions and 23 deletions

View File

@@ -379,30 +379,19 @@ CheckIfBossRoom:
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
REP #$20 ; set 16-bit accumulator REP #$20 ; set 16-bit accumulator
LDA $A0 ; these are all decimal because i got them that way LDA $A0 ; these are all decimal because i got them that way
CMP.w #200 : BNE + CMP.w #200 : BEQ .done
SEC : JMP .done CMP.w #51 : BEQ .done
+ CMP.w #51 : BNE + CMP.w #7 : BEQ .done
SEC : JMP .done CMP.w #90 : BEQ .done
+ CMP.w #7 : BNE + CMP.w #6 : BEQ .done
SEC : JMP .done CMP.w #41 : BEQ .done
+ CMP.w #90 : BNE + CMP.w #172 : BEQ .done
SEC : JMP .done CMP.w #222 : BEQ .done
+ CMP.w #6 : BNE + CMP.w #144 : BEQ .done
SEC : JMP .done CMP.w #164 : BEQ .done
+ CMP.w #41 : BNE +
SEC : JMP .done
+ CMP.w #172 : BNE +
SEC : JMP .done
+ CMP.w #222 : BNE +
SEC : JMP .done
+ CMP.w #144 : BNE +
SEC : JMP .done
+ CMP.w #164 : BNE +
SEC : JMP .done
+
CLC CLC
.done .done
SEP #$20 ; set 8-bit accumulator + SEP #$20 ; set 8-bit accumulator
RTL RTL
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
;#200 - Eastern Palace - Armos Knights ;#200 - Eastern Palace - Armos Knights

View File

@@ -9,7 +9,7 @@ ShouldOverrideFileLoad:
.no .no
CLC : RTS CLC : RTS
.yes .yes
SEC : RTS RTS
BgGraphicsLoading: BgGraphicsLoading:
; Instructions overwritten ; Instructions overwritten