mirror of
https://github.com/cc65/cc65.git
synced 2025-01-21 15:32:41 +00:00
Added a PLOT kernal replacement function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1740 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
4e2110a7a9
commit
380f5ce51d
@ -27,6 +27,7 @@ OBJS = _scrsize.o \
|
||||
kclose.o \
|
||||
kernal.o \
|
||||
kopen.o \
|
||||
kplot.o \
|
||||
krdtim.o \
|
||||
kreadst.o \
|
||||
ksetlfs.o \
|
||||
|
25
libsrc/pet/kplot.s
Normal file
25
libsrc/pet/kplot.s
Normal file
@ -0,0 +1,25 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2002-12-12
|
||||
;
|
||||
; PLOT replacement function for the PETs
|
||||
;
|
||||
|
||||
.export PLOT
|
||||
.import plot ; from cputc.s
|
||||
|
||||
.include "pet.inc"
|
||||
|
||||
|
||||
.proc PLOT
|
||||
|
||||
bcs @L1 ; Fetch values if carry set
|
||||
sty CURS_X
|
||||
stx CURS_Y
|
||||
jsr plot
|
||||
@L1: ldy CURS_X
|
||||
ldx CURS_Y
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user