mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +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:
parent
0b1ee642aa
commit
38dcb86552
@ -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
18
libsrc/cbm/wherex.s
Normal 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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user