mirror of
https://github.com/cc65/cc65.git
synced 2024-10-17 02:26:16 +00:00
5f87dcea95
git-svn-id: svn://svn.cc65.org/cc65/trunk@1094 b7a2c559-68d2-44c3-8de9-860c34a00d81
31 lines
441 B
ArmAsm
31 lines
441 B
ArmAsm
|
|
;
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
;
|
|
; 27.10.2001
|
|
|
|
; unsigned char wherex (void);
|
|
; unsigned char wherey (void);
|
|
|
|
.export _wherex, _wherey
|
|
.importzp tmp1, tmp2
|
|
|
|
.include "../inc/jumptab.inc"
|
|
.include "cursor.inc"
|
|
|
|
_wherex: lda cursor_x
|
|
sta tmp1
|
|
lda cursor_x+1
|
|
sta tmp2
|
|
ldx #tmp1
|
|
ldy #3
|
|
jsr DShiftRight
|
|
lda tmp1
|
|
rts
|
|
|
|
_wherey: lda cursor_y
|
|
lsr
|
|
lsr
|
|
lsr
|
|
rts
|