Files
cc65/libsrc/vic20/cpeekcol.s
2017-06-17 03:46:53 +02:00

22 lines
230 B
ArmAsm

.export _cpeekcol
.export _cpeekcolxy
.import _gotoxy
.include "vic20.inc"
.segment "CODE"
_cpeekcolxy:
jsr _gotoxy ; Set cursor
_cpeekcol:
ldy CURS_X
lda (CRAM_PTR),y ; get color
and #$0f
ldx #0
rts