initial commit from old source
This commit is contained in:
31
libsrc/cbm510/cpeekcol.s
Normal file
31
libsrc/cbm510/cpeekcol.s
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
.export _cpeekcol
|
||||
.export _cpeekcolxy
|
||||
|
||||
.import _gotoxy
|
||||
|
||||
.include "cbm510/cbm510.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
|
||||
Reference in New Issue
Block a user