X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=ROM2%2Fmemory.x;h=f1127cf468b79dcc46f3f0721ef5cc7e34b9b717;hb=12a32b8bede21a6011d240bf7e63fc6705322717;hp=b4431baa8c947bdc0457e1226ce41707a34e56f7;hpb=5266fabbd6d0e04a49e31b945b3f3c96fbd12db6;p=uccvend-snackrom.git diff --git a/ROM2/memory.x b/ROM2/memory.x index b4431ba..f1127cf 100644 --- a/ROM2/memory.x +++ b/ROM2/memory.x @@ -1,20 +1,10 @@ -/* memory.x -- Memory definition for a 68HC11 program in EEPROM (512 bytes) - Copyright 2001 Free Software Foundation, Inc. - Written by Stephane Carrez (stcarrez@worldnet.fr) - Adapted for openvend by Bernard Blackham (dagobah@ucc.asn.au) - -The file was adapted from GTAM. You can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -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 - text (rx) : ORIGIN = 0x8000, LENGTH = 0x7fff +{ /* we squeeze both page0 and data into the internal 256 bytes of RAM */ + page0 (rwx) : ORIGIN = 0x0000, LENGTH = 0x0080 + data (rw) : ORIGIN = 0x0080, LENGTH = 0x0080 + text (rx) : ORIGIN = 0x8000, LENGTH = 0x8000 + eeprom(rwx) : ORIGIN = 0xb600, LENGTH = 0x0020 } /* Setup the stack on the top of the data internal ram (not used). */ -PROVIDE (_stack = 0x0100-1); +PROVIDE (_stack = 0x007f);