From df59d3146ee5615addc1c4c2637f1d2987cc1079 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Fri, 21 Jul 2017 15:38:55 -0700 Subject: [PATCH] Added debug printing of amidar row/col --- debug.s | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/debug.s b/debug.s index 676b3b2..888b426 100644 --- a/debug.s +++ b/debug.s @@ -130,4 +130,72 @@ debug_player nop ldy scratch_row jsr printhex + ; amidar 4 + dec scratch_row + ldx #34 + ldy scratch_row + lda #'4' + jsr fastfont + ldx #FIRST_AMIDAR+3 + lda actor_col,x + ldx #35 + ldy scratch_row + jsr printhex + ldx #FIRST_AMIDAR+3 + lda actor_row,x + ldx #38 + ldy scratch_row + jsr printhex + + ; amidar 3 + dec scratch_row + ldx #34 + ldy scratch_row + lda #'3' + jsr fastfont + ldx #FIRST_AMIDAR+2 + lda actor_col,x + ldx #35 + ldy scratch_row + jsr printhex + ldx #FIRST_AMIDAR+2 + lda actor_row,x + ldx #38 + ldy scratch_row + jsr printhex + + ; amidar 2 + dec scratch_row + ldx #34 + ldy scratch_row + lda #'2' + jsr fastfont + ldx #FIRST_AMIDAR+1 + lda actor_col,x + ldx #35 + ldy scratch_row + jsr printhex + ldx #FIRST_AMIDAR+1 + lda actor_row,x + ldx #38 + ldy scratch_row + jsr printhex + + ; amidar 1 (orbiter) + dec scratch_row + ldx #34 + ldy scratch_row + lda #'1' + jsr fastfont + ldx #FIRST_AMIDAR + lda actor_col,x + ldx #35 + ldy scratch_row + jsr printhex + ldx #FIRST_AMIDAR + lda actor_row,x + ldx #38 + ldy scratch_row + jsr printhex + rts