initial commit from old source

This commit is contained in:
mrdudz
2016-02-28 22:23:40 +01:00
parent 25f4482641
commit dd2972d699
10 changed files with 426 additions and 0 deletions

31
libsrc/cbm510/cpeekcol.s Normal file
View 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