mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +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:
parent
1af46f9998
commit
63437207a1
@ -5,13 +5,11 @@
|
||||
;
|
||||
|
||||
.export _wherex
|
||||
.import PLOT
|
||||
.import CURS_X: zp
|
||||
|
||||
|
||||
.proc _wherex
|
||||
sec
|
||||
jsr PLOT ; Get cursor position
|
||||
tya
|
||||
lda CURS_X
|
||||
ldx #$00
|
||||
rts
|
||||
.endproc
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user