make RAM big enough for tinibios
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 26 Jan 2003 21:08:15 +0000 (21:08 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 26 Jan 2003 21:08:15 +0000 (21:08 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2181 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
sim/ucsim/s51.src/uc390.cc

index 43cea7f04981751b8fe02e41f7ed057331d467c7..ab67c49f637f1cf546593a12e7308316968a238d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
        * as/mcs51/Makefile.asx8051: new module strcmpi
        * as/mcs51/Makefil.bcc: new module strcmpi
        * as/mcs51/Makefile.in: new module strcmpi
+       * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
 
 2003-01-26    <johan@balder>
 
index 80dda525620c4b7ba040dceaa7a471536a5684d0..623d3915ae784dca32376fbade99c66e98edbd52 100644 (file)
@@ -390,9 +390,12 @@ t_uc390::get_mem_size (enum mem_class type)
   switch (type)
     {
       case MEM_ROM:
-        return 128*1024;       // 4*1024*1024; 4 Meg possible
+        return 128*1024;         // 128 kByte; 4 MByte possible
       case MEM_XRAM:
-        return 128*1024;       // 4*1024*1024; 4 Meg possible
+       /* tinibios copies 128 bytes of the Interrupt Vector Table
+          to 0x100000. This is exactly the minimum of memory to run ucSim
+          without any error. */
+        return 1*1024*1024 + 128; // 1 MByte + 128 bytes; 4 Mbytes possible
       case MEM_IRAM:
         return 256;
       case MEM_SFR: