Added debug printing of amidar row/col

This commit is contained in:
Rob McMullen 2017-07-21 15:38:55 -07:00
parent faf97fc4b7
commit df59d3146e

68
debug.s
View File

@ -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