Reserve some RAM for future features

This commit is contained in:
Virgil Dupras 2020-04-07 17:32:04 -04:00
parent 71d1350143
commit 521ff84ca4
5 changed files with 12 additions and 12 deletions

Binary file not shown.

View File

@ -196,17 +196,17 @@
( system c< simply reads source from binary, starting at ( system c< simply reads source from binary, starting at
LATEST. Convenient way to bootstrap a new system. ) LATEST. Convenient way to bootstrap a new system. )
: (c<) : (c<)
( 51 == SYSTEM SCRATCHPAD ) ( 60 == SYSTEM SCRATCHPAD )
0x51 _c RAM+ _c @ ( a ) 0x60 _c RAM+ _c @ ( a )
_c DUP _c C@ ( a c ) _c DUP _c C@ ( a c )
_c SWAP 1 _c + ( c a+1 ) _c SWAP 1 _c + ( c a+1 )
0x51 _c RAM+ _c ! ( c ) 0x60 _c RAM+ _c ! ( c )
; ;
: BOOT : BOOT
LIT< (parse) _c (find) _c DROP _c (parse*) _c ! LIT< (parse) _c (find) _c DROP _c (parse*) _c !
( 51 == SYSTEM SCRATCHPAD ) ( 60 == SYSTEM SCRATCHPAD )
_c CURRENT _c @ 0x51 _c RAM+ _c ! _c CURRENT _c @ 0x60 _c RAM+ _c !
( 0c == CINPTR ) ( 0c == CINPTR )
LIT< (c<) _c (find) _c DROP 0x0c _c RAM+ _c ! LIT< (c<) _c (find) _c DROP 0x0c _c RAM+ _c !
LIT< INIT _c (find) LIT< INIT _c (find)

View File

@ -247,8 +247,7 @@ CODE @
E (HL) LDrr, E (HL) LDrr,
HL INCss, HL INCss,
D (HL) LDrr, D (HL) LDrr,
EXDEHL, DE PUSHqq,
HL PUSHqq,
;CODE ;CODE
CODE C! CODE C!

View File

@ -88,8 +88,9 @@ RAMSTART INITIAL_SP
+0e WORDBUF +0e WORDBUF
+2e SYSVNXT +2e SYSVNXT
+4e INTJUMP +4e INTJUMP
+51 SYSTEM SCRATCHPAD +51 RESERVED
+60 RAMEND +60 SYSTEM SCRATCHPAD
+80 RAMEND
INITIAL_SP holds the initial Stack Pointer value so that we know where to reset INITIAL_SP holds the initial Stack Pointer value so that we know where to reset
it on ABORT it on ABORT
@ -119,8 +120,8 @@ SYSTEM SCRATCHPAD is reserved for temporary system storage or can be reserved
by low-level drivers. These are the current usages of this space throughout the by low-level drivers. These are the current usages of this space throughout the
project: project:
* 0x51-0x53: (c<) pointer during in-memory initialization (see below) * 0x60-0x62: (c<) pointer during in-memory initialization (see below)
* 0x53-0x5b: ACIA buffer pointers in RC2014 recipes. * 0x62-0x6a: ACIA buffer pointers in RC2014 recipes.
*** Initialization sequence *** Initialization sequence

View File

@ -2,5 +2,5 @@
0xf000 CONSTANT RS_ADDR 0xf000 CONSTANT RS_ADDR
0x80 CONSTANT ACIA_CTL 0x80 CONSTANT ACIA_CTL
0x81 CONSTANT ACIA_IO 0x81 CONSTANT ACIA_IO
RAMSTART 0x53 + CONSTANT ACIA_MEM RAMSTART 0x62 + CONSTANT ACIA_MEM