mirror of
https://github.com/cc65/cc65.git
synced 2024-06-08 15:29:37 +00:00
ae7a38f3de
The functions return the character, or its attributes, that is at the current screen location of conio's cursor. The values can be used directly by the output functions to reproduce that screen character.
18 lines
267 B
ArmAsm
18 lines
267 B
ArmAsm
;
|
|
; 2017-06-21, Greg King
|
|
;
|
|
; char cpeekc (void);
|
|
;
|
|
; Get a character from OSI C1P screen RAM.
|
|
;
|
|
.export _cpeekc
|
|
|
|
.include "extzp.inc"
|
|
|
|
|
|
_cpeekc:
|
|
ldy CURS_X
|
|
lda (SCREEN_PTR),y
|
|
ldx #>$0000
|
|
rts
|