From d3696a2752579bb0bda689b446cc247d272c42d0 Mon Sep 17 00:00:00 2001 From: aerinon Date: Sat, 7 Mar 2020 22:15:27 -0700 Subject: [PATCH] Prototype edge debugging --- asm/edges.asm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/asm/edges.asm b/asm/edges.asm index 098ef310..7b4da849 100644 --- a/asm/edges.asm +++ b/asm/edges.asm @@ -33,8 +33,6 @@ LoadEdgeRoomHorz: ldy #$00 : jsr ShiftVariablesMainDir lda $a0 : and.b #$F0 : lsr #3 : sta $0603 : inc : sta $0607 - - lda $aa : asl : tax ; current quad as 0/4 lda $04 : and #$40 : bne + lda $603 : sta $00 : stz $01 : bra ++ + lda $607 : sta $00 : lda #$02 : sta $01 @@ -71,9 +69,9 @@ LoadEdgeRoomHorz: .done sta $ab : sep #$30 lda $0e : asl : ora $ac : sta $ac - lda $0603, x : sta $e9 + lda $e9 : and #$01 : asl #2 : tax : lda $0603, x : sta $e9 - lda $04 : and #$80 : lsr #4 : sta $ee ; layer stuff + lda $04 : and #$10 : lsr #4 : sta $ee ; layer stuff rts LoadEdgeRoomVert: @@ -83,7 +81,6 @@ LoadEdgeRoomVert: ldy #$01 : jsr ShiftVariablesMainDir lda $a0 : and.b #$0f : asl : sta $060b : inc : sta $060f - lda $a9 : asl #2 : tax ; current quad as 0/4 lda $04 : and #$20 : bne + lda $60b : sta $00 : stz $01 : bra ++ + lda $60f : sta $00 : lda #$01 : sta $01 @@ -120,7 +117,7 @@ LoadEdgeRoomVert: .done sta $ab : sep #$30 lda $0e : asl : ora $ac : sta $ac - lda $060b, x : sta $e3 + lda $e3 : and #$01 : asl #2 : tax : lda $060b, x : sta $e3 lda $04 : and #$10 : lsr #4 : sta $ee ; layer stuff rts