This commit is contained in:
mrdudz
2022-07-24 03:59:19 +02:00
parent 74098077d3
commit 6dae5324dd
7 changed files with 26 additions and 174 deletions

View File

@@ -1,32 +0,0 @@
.export _cpeekcol
.export _cpeekcolxy
.import _gotoxy
.include "cbm510.inc"
.include "extzp.inc"
.segment "CODE"
_cpeekcolxy:
jsr _gotoxy ; Set cursor
_cpeekcol:
lda #0
ldx #0
rts
;; why the HELL doesnt this work ?!?
lda #$0F
ldy CURS_X
sei
ldx IndReg
sta IndReg
lda (CRAM_PTR),y ; get color
stx IndReg
cli
ldx #0
rts