initial commit from old source
This commit is contained in:
32
libsrc/cbm510/cpeekchar.s
Normal file
32
libsrc/cbm510/cpeekchar.s
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
.export _cpeekchar
|
||||
.export _cpeekcharxy
|
||||
|
||||
.import _gotoxy
|
||||
|
||||
.include "cbm510/cbm510.inc"
|
||||
|
||||
.segment "CODE"
|
||||
|
||||
_cpeekcharxy:
|
||||
|
||||
jsr _gotoxy ; Set cursor
|
||||
|
||||
_cpeekchar:
|
||||
lda #0
|
||||
ldx #0
|
||||
rts
|
||||
|
||||
;; ?!?!
|
||||
|
||||
ldx IndReg
|
||||
ldy #$0F
|
||||
sty IndReg
|
||||
|
||||
ldy CURS_X
|
||||
lda (SCREEN_PTR),y ; get char
|
||||
|
||||
stx IndReg
|
||||
|
||||
ldx #0
|
||||
rts
|
||||
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