1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00
cc65/libsrc/atari7800/wherex.s

20 lines
327 B
ArmAsm
Raw Normal View History

2022-04-16 16:15:06 +00:00
;
; 2022-04-16, Karri Kaksonen
;
; unsigned char wherex()
;
.export _wherex
2022-04-16 16:15:19 +00:00
.import CURS_X
2022-04-16 16:15:06 +00:00
;-----------------------------------------------------------------------------
; Get cursor X position
;
2022-04-16 16:15:19 +00:00
.proc _wherex
2022-04-16 16:15:06 +00:00
2022-04-16 16:15:19 +00:00
ldx #0
lda CURS_X
rts
.endproc
2022-04-16 16:15:06 +00:00