cputc.o \
kbhit.o \
kernal.o \
+ kplot.o \
randomize.o \
readjoy.o
.export CLALL
.export UDTIM
.export SCREEN
- .export PLOT
.export IOBASE
CLALL = $FFE7
UDTIM = $FFEA
SCREEN = $FFED
-PLOT = $FFF0
IOBASE = $FFF3
--- /dev/null
+;
+; Ullrich von Bassewitz, 2002-12-09
+;
+; PLOT replacement function for the VIC20. The kernal function does not set
+; the pointer to the color RAM correctly.
+;
+
+ .export PLOT
+
+
+.proc PLOT
+
+ bcs @L1
+ jsr $FFF0 ; Set cursor position
+ jmp $EAB2 ; Set pointer to color RAM
+
+@L1: jmp $FFF0 ; Get cursor position
+
+.endproc
+
+
; Direct entries
CLRSCR = $E55F
KBDREAD = $E5CF
-NAMED_OPEN = $F495
-NAMED_CLOSE = $F6DA
-PLOTCHAR = $EAAA ; Char in A, color in X
; ---------------------------------------------------------------------------
; Vector and other locations
; ---------------------------------------------------------------------------
; I/O: 6560 VIC
-VIC = $9000
+VIC = $9000
VIC_LINES = $9003 ; Screen lines, bit 7 is bit 0 from VIC_HLINE
VIC_HLINE = $9004 ; Rasterline, bits 1-8
VIC_COLOR = $900F ; Border and background color