]> git.sur5r.net Git - cc65/commitdiff
zpspace cannot be an external symbol
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 26 May 2002 08:32:47 +0000 (08:32 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 26 May 2002 08:32:47 +0000 (08:32 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1289 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/zeropage.inc
libsrc/runtime/zeropage.s

index 3e651b0318058fc610700eec2d8392f5bc96f0f8..574fc152ae7dd59b52cb63b6d81f31e5e3ea2dc7 100644 (file)
        .importzp       sp, sreg, regsave
        .importzp       ptr1, ptr2, ptr3, ptr4
        .importzp       tmp1, tmp2, tmp3, tmp4
-       .importzp       regbank, zpspace
+       .importzp       regbank
+
+; The total amount of zero page space used
+
+zpspace = 24
+
+
 
 
index 5080cb89112584f6f23626751886d5b744d48344..9416556624f0029fb5b6ed6f07adb99713a48fde 100644 (file)
@@ -7,16 +7,16 @@
        .exportzp       sp, sreg, regsave
        .exportzp       ptr1, ptr2, ptr3, ptr4
        .exportzp       tmp1, tmp2, tmp3, tmp4
-       .exportzp       regbank, zpspace
+       .exportzp       regbank
 
 ; ------------------------------------------------------------------------
 
 .zeropage
 
 zpstart        = *
-sp:            .res    2       ; Stack pointer
-sreg:          .res    2       ; Secondary register/high 16 bit for longs
-regsave:       .res    2       ; slot to save/restore (E)AX into
+sp:            .res    2       ; Stack pointer
+sreg:          .res    2       ; Secondary register/high 16 bit for longs
+regsave:       .res    2       ; slot to save/restore (E)AX into
 ptr1:          .res    2
 ptr2:          .res    2
 ptr3:          .res    2
@@ -25,7 +25,5 @@ tmp1:         .res    1
 tmp2:          .res    1
 tmp3:          .res    1
 tmp4:          .res    1
-regbank:       .res    6       ; 6 byte register bank
-
-zpspace        = * - zpstart           ; Zero page space allocated
+regbank:       .res    6       ; 6 byte register bank