added fixed files for c64/c16/plus4/vic20/pet
This commit is contained in:
21
libsrc/c16/cpeekcol.s
Normal file
21
libsrc/c16/cpeekcol.s
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
.export _cpeekcol
|
||||
.export _cpeekcolxy
|
||||
|
||||
.import _gotoxy
|
||||
|
||||
.include "c16.inc"
|
||||
|
||||
.segment "CODE"
|
||||
|
||||
_cpeekcolxy:
|
||||
|
||||
jsr _gotoxy ; Set cursor
|
||||
|
||||
_cpeekcol:
|
||||
|
||||
ldy CURS_X
|
||||
lda (CRAM_PTR),y ; get color
|
||||
;and #$0f is this ok?
|
||||
ldx #0
|
||||
rts
|
||||
Reference in New Issue
Block a user