Files
cc65/libsrc/cbm/cpeekcol.s
2016-02-28 22:23:40 +01:00

22 lines
235 B
ArmAsm

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