From: Bernard Blackham Date: Sun, 10 Aug 2003 16:47:33 +0000 (+0000) Subject: Altered the memory map. Need a page0 for stack & other variables. X-Git-Tag: ROMW~77 X-Git-Url: https://git.ucc.asn.au/?p=uccvend-snackrom.git;a=commitdiff_plain;h=7a70df954df9999622924660001197b245675ba2 Altered the memory map. Need a page0 for stack & other variables. --- diff --git a/ROM2/memory.x b/ROM2/memory.x index b4431ba..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 */ - data (rw) : ORIGIN = 0x0000, LENGTH = 0x00ff + /* 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 } /* Setup the stack on the top of the data internal ram (not used). */ -PROVIDE (_stack = 0x0100-1); +PROVIDE (_stack = 0x007f-1);