1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-01 00:57:11 +00:00

Fixed int promotion problem in wherex and wherey.

Moved wherex and wherey into separate modules.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1867 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-01-01 21:33:49 +00:00
parent 0b1ee642aa
commit 38dcb86552
3 changed files with 25 additions and 15 deletions

View File

@ -60,7 +60,8 @@ S_OBJS = c_acptr.o \
scratch.o \
sysremove.o \
systime.o \
where.o \
wherex.o \
wherey.o \
write.o
all: $(C_OBJS) $(S_OBJS)

18
libsrc/cbm/wherex.s Normal file
View File

@ -0,0 +1,18 @@
;
; Ullrich von Bassewitz, 06.08.1998
;
; unsigned char wherex (void);
;
.export _wherex
.import PLOT
.proc _wherex
sec
jsr PLOT ; Get cursor position
tya
ldx #$00
rts
.endproc

View File

@ -1,27 +1,18 @@
;
; Ullrich von Bassewitz, 06.08.1998
;
; unsigned char wherex (void);
; unsigned char wherey (void);
;
.export _wherex, _wherey
.export _wherey
.import PLOT
_wherex:
sec
jsr PLOT ; Get cursor position
tya
rts
_wherey:
.proc _wherey
sec
jsr PLOT ; Get cursor position
txa
ldx #$00
rts
.endproc