From 7a70df954df9999622924660001197b245675ba2 Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Sun, 10 Aug 2003 16:47:33 +0000 Subject: [PATCH] Altered the memory map. Need a page0 for stack & other variables. --- ROM2/memory.x | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.20.1