Code
LDA $95 CMP #$08 BEQ .wrapright CMP #$03 BEQ .wrapleft RTS .wrapright LDA #$5E STA $142A LDA #$04 STA $95 RTS .wrapleft LDA #$90 STA $142A LDA #$07 STA $95 RTS
This works so far, but because it happens the second you hit the screen, there's a 1 block wide screen jerk where garbage tiles appear until the screen moves. Also note that there's a copy of the area before and after that look exactly the same, but connect to look like one big area. I also tried using this, replacing .wrapright and .wrapleft above with these:
Code
.checkright LDA $94 CMP #$0E BEQ .wrapright RTS .checkleft LDA $94 CMP #$01 BEQ .wrapleft RTS
However, I didn't really know what I was doing with that. I was kinda hoping the values were Mario's X position within each screen. Anyone have any ideas, or know what I should do?