Files
cc65/libsrc/vic20/cpeekcol.s
2022-07-24 03:59:19 +02:00

15 lines
170 B
ArmAsm

.export _cpeekcolor
.include "vic20.inc"
.segment "CODE"
_cpeekcolor:
ldy CURS_X
lda (CRAM_PTR),y ; get color
and #$0f
ldx #0
rts