]> git.sur5r.net Git - cc65/commitdiff
More banking support
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 22 Nov 2002 22:24:24 +0000 (22:24 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 22 Nov 2002 22:24:24 +0000 (22:24 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1588 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/plus4/Makefile
libsrc/plus4/_scrsize.s
libsrc/plus4/cgetc.s
libsrc/plus4/kplot.s [new file with mode: 0644]

index 8dc9004629bbe1a2abc23ed0af55fc4cc4b21e37..08455d48dd35eabbff19f5059c1720147ce8f1cf 100644 (file)
@@ -33,12 +33,13 @@ OBJS =      _scrsize.o      \
         klisten.o       \
         kload.o         \
         kopen.o         \
+        kplot.o         \
         krdtim.o        \
         kreadst.o       \
         ksave.o         \
         ksetlfs.o       \
         ksetnam.o       \
-        ksettim.s       \
+        ksettim.o       \
         ktalk.o         \
         kunlsn.o        \
         kuntlk.o        \
index c63df59d234697537f3d9aaf986d49fc9713e639..15dd1f778aef5d4ae95980977017657e58a2368d 100644 (file)
@@ -5,21 +5,10 @@
 ;
 
        .export         xsize, ysize
-        .import         SCREEN
-       .constructor    initscrsize
 
+.data             
 
-.code
-
-initscrsize:
-       jsr     SCREEN
-       stx     xsize
-       sty     ysize
-       rts
-
-.bss
-
-xsize:         .res    1
-ysize: .res    1
+xsize:         .byte   40
+ysize: .byte   25
 
 
index 0bcd6013afc5f63fa83ac4c56a35d16358de4d2f..65bf26628e5aa0da534c51107b4d2d182270e9d0 100644 (file)
@@ -11,7 +11,7 @@
 
 ; --------------------------------------------------------------------------
 
-.segment        "LOWMEM"        ; Accesses the ROM - must go into low mem
+.segment        "LOWCODE"       ; Accesses the ROM - must go into low mem
 
 _cgetc:        lda     KEY_COUNT       ; Get number of characters
                ora     FKEY_COUNT      ; Or with number of function key chars
@@ -73,7 +73,7 @@ L2:           sta     ENABLE_ROM      ; Bank in the ROM
 .endproc
 
 
-.segment        "LOWMEM"        ; Accesses the ROM - must go into low mem
+.segment        "LOWCODE"       ; Accesses the ROM - must go into low mem
 
 .proc  donekbd
 
diff --git a/libsrc/plus4/kplot.s b/libsrc/plus4/kplot.s
new file mode 100644 (file)
index 0000000..7035b05
--- /dev/null
@@ -0,0 +1,21 @@
+;
+; Ullrich von Bassewitz, 22.11.2002
+;
+; PLOT replacement function
+;
+
+        .export         PLOT
+
+        .include        "plus4.inc"
+
+.segment        "LOWCODE"               ; Must go into low memory
+
+.proc   PLOT
+        sta     ENABLE_ROM              ; Enable the ROM
+        jsr     $FFF0                   ; Call the ROM routine
+        sta     ENABLE_RAM              ; Switch back to RAM
+        rts                             ; Return to caller
+.endproc
+
+
+