Partial revert of VRAM adjustment

This commit is contained in:
codemann8
2021-06-24 14:36:12 -05:00
parent 62ed585a24
commit ea2a148e78
3 changed files with 11 additions and 9 deletions

2
Rom.py
View File

@@ -27,7 +27,7 @@ from EntranceShuffle import door_addresses, exit_ids
JAP10HASH = '03a63945398191337e896e5771f77173' JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = 'a49b2bd71e6670fd1595d7c6d86ab440' RANDOMIZERBASEHASH = '35a3f01c05c95b6a420f9bd6220c56a2'
class JsonRom(object): class JsonRom(object):

View File

@@ -231,14 +231,16 @@ OWNewDestination:
inc : pha : lda $06 : and #$fe00 : !add 1,s : sta $06 : pla inc : pha : lda $06 : and #$fe00 : !add 1,s : sta $06 : pla
; adjust and set other VRAM addresses ; adjust and set other VRAM addresses
lda.w $0006,x : pha : lda $06 : !sub 1,s lda OWMode : and #$00ff : bne .modifyOtherVram
jsl DivideByTwoPreserveSign : jsl DivideByTwoPreserveSign : jsl DivideByTwoPreserveSign : jsl DivideByTwoPreserveSign : pha ; number of tiles lda.w $0006,x : pha : lda $06 : !sub 1,s
lda $418 : dec #2 : bmi + jsl DivideByTwoPreserveSign : jsl DivideByTwoPreserveSign : jsl DivideByTwoPreserveSign : jsl DivideByTwoPreserveSign : pha ; number of tiles
pla : pea $0000 : bra ++ ;pla : asl #7 : pha : bra ++ ; y-axis shifts VRAM by increments of 0x80 (disabled for now) lda $418 : dec #2 : bmi +
+ pla : asl : pha ; x-axis shifts VRAM by increments of 0x02 pla : pea $0000 : bra ++ ;pla : asl #7 : pha : bra ++ ; y-axis shifts VRAM by increments of 0x80 (disabled for now)
++ lda $84 : !add 1,s : sta $84 : pla : pla + pla : asl : pha ; x-axis shifts VRAM by increments of 0x02
LDA $84 : SEC : SBC #$0400 : AND #$0F00 : ASL : XBA : STA $88 ++ lda $84 : !add 1,s : sta $84 : pla : pla
LDA $84 : SEC : SBC #$0010 : AND #$003E : LSR : STA $86 .modifyOtherVram
LDA $84 : SEC : SBC #$0400 : AND #$0F00 : ASL : XBA : STA $88
LDA $84 : SEC : SBC #$0010 : AND #$003E : LSR : STA $86
.adjustMainAxis .adjustMainAxis
pla : pla : sep #$10 : ldy $418 pla : pla : sep #$10 : ldy $418

Binary file not shown.