Full clipping of rug on marked rooms

This commit is contained in:
aerinon
2021-06-03 14:05:26 -06:00
parent 7442d66211
commit 139fe4d47f
4 changed files with 13 additions and 28 deletions

View File

@@ -93,13 +93,13 @@ CutoffEntranceRug:
cmp #$000C : BNE .norm
+ LDX #$0000 : LDA !CutoffTable, x
- CMP.W $A0 : BEQ .check
TXA : !ADD #$0008 : TAX : LDA !CutoffTable, x : CMP.w #$FFFF : BNE -
INX #2 : LDA !CutoffTable, x : CMP.w #$FFFF : BNE -
.norm PLX : PLA : LDA $9B52, y : STA $7E2000, x ; what we wrote over
RTL
.check
LDA $0c : CMP.l !CutoffTable+2, x : !BGE .skip
LDA $0e : CMP.l !CutoffTable+4, x : !BGE .skip
CMP.l !CutoffTable+6, x : !BLT .skip
LDA $0c : CMP #$0004 : !BGE .skip
LDA $0e : CMP #$0008 : !BGE .skip
CMP.l #$0004 : !BLT .skip
BRA .norm
.skip PLX : PLA : RTL