mirror of
https://github.com/robmcmullen/fujirun.git
synced 2025-08-08 16:25:02 +00:00
32 lines
454 B
ArmAsm
32 lines
454 B
ArmAsm
debugtext nop
|
|
sta SETTEXT
|
|
sta KBDSTROBE
|
|
?1 lda KEYBOARD
|
|
sta debug_last_key
|
|
cmp #$A0 ; space?
|
|
bne ?1
|
|
rts
|
|
|
|
|
|
printhex ; A = hex byte, X = column, Y = row; A is clobbered, X&Y are not
|
|
pha
|
|
stx param_x
|
|
lsr
|
|
lsr
|
|
lsr
|
|
lsr
|
|
tax
|
|
lda hexdigit,x
|
|
ldx param_x
|
|
jsr fastfont
|
|
pla
|
|
and #$0f
|
|
tax
|
|
lda hexdigit,x
|
|
ldx param_x
|
|
inx
|
|
jsr fastfont
|
|
rts
|
|
|
|
hexdigit .byte "0123456789ABCDEF"
|