From 9556117f0f95c1186cd4561af9dcb3b3b8c82d93 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 26 May 2002 08:32:47 +0000 Subject: [PATCH] zpspace cannot be an external symbol git-svn-id: svn://svn.cc65.org/cc65/trunk@1289 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- asminc/zeropage.inc | 8 +++++++- libsrc/runtime/zeropage.s | 12 +++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/asminc/zeropage.inc b/asminc/zeropage.inc index 3e651b031..574fc152a 100644 --- a/asminc/zeropage.inc +++ b/asminc/zeropage.inc @@ -11,6 +11,12 @@ .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 + + diff --git a/libsrc/runtime/zeropage.s b/libsrc/runtime/zeropage.s index 5080cb891..941655662 100644 --- a/libsrc/runtime/zeropage.s +++ b/libsrc/runtime/zeropage.s @@ -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 -- 2.39.5