mirror of
https://github.com/cc65/cc65.git
synced 2024-06-02 19:42:23 +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.
19 lines
394 B
ArmAsm
19 lines
394 B
ArmAsm
;
|
|
; 2017-06-21, Greg King
|
|
;
|
|
; unsigned char cpeekrevers (void);
|
|
;
|
|
|
|
.export _cpeekrevers
|
|
|
|
.include "atari.inc"
|
|
|
|
|
|
_cpeekrevers:
|
|
lda OLDCHR ; get char under cursor
|
|
and #$80 ; get reverse bit
|
|
asl a
|
|
tax ; ldx #>$0000
|
|
rol a ; return boolean value
|
|
rts
|