1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-01 08:29:37 +00:00

Use direct access to the position variables, since gotoxy uses them also.

git-svn-id: svn://svn.cc65.org/cc65/trunk@2844 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-12-27 15:51:11 +00:00
parent 1af46f9998
commit 63437207a1
2 changed files with 5 additions and 9 deletions

View File

@ -5,14 +5,12 @@
;
.export _wherex
.import PLOT
.import CURS_X: zp
.proc _wherex
sec
jsr PLOT ; Get cursor position
tya
lda CURS_X
ldx #$00
rts
.endproc

View File

@ -5,13 +5,11 @@
;
.export _wherey
.import PLOT
.import CURS_Y: zp
.proc _wherey
sec
jsr PLOT ; Get cursor position
txa
lda CURS_Y
ldx #$00
rts
.endproc