X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fmemory.x;h=843cbbfb7a538a7073b93262e93a4bee119cc932;hb=7a70df954df9999622924660001197b245675ba2;hp=267c073493d8c0121a38043d93878653b5352504;hpb=11baa477da66fe8b2899dd50bd71d11615ff050e;p=uccvend-snackrom.git diff --git a/ROM2/memory.x b/ROM2/memory.x index 267c073..843cbbf 100644 --- a/ROM2/memory.x +++ b/ROM2/memory.x @@ -11,10 +11,11 @@ Foundation; either version 2, or (at your option) any later version. MEMORY { - page0 (rwx) : ORIGIN = 0x0000, LENGTH = 0x00ff /* 256 bytes internal RAM */ + /* we squeeze both page0 and data into the internal 256 bytes of RAM */ + page0 (rwx) : ORIGIN = 0x0000, LENGTH = 0x007f + data (rw) : ORIGIN = 0x0080, LENGTH = 0x007f text (rx) : ORIGIN = 0x8000, LENGTH = 0x7fff - data (rw) : ORIGIN = 0x0800, LENGTH = 0x07ff /* 2k external SRAM FIXME - dont want to use this */ } /* Setup the stack on the top of the data internal ram (not used). */ -PROVIDE (_stack = 0x0100-1); +PROVIDE (_stack = 0x007f-1);