make RAM big enough for tinibios
[fw/sdcc] / sim / ucsim / s51.src / uc390.cc
index 1fc5e2cb1e69ebf80741868c15f3816930a0a3d3..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:
@@ -565,7 +568,7 @@ t_uc390::inst_inc_dptr (uchar code)
  */
 
 int
-t_uc390::inst_jmp_$a_dptr (uchar code)
+t_uc390::inst_jmp_Sa_dptr (uchar code)
 {
   uchar pl, ph, px, dps;
 
@@ -599,7 +602,7 @@ t_uc390::inst_jmp_$a_dptr (uchar code)
  */
 
 int
-t_uc390::inst_mov_dptr_$data (uchar code)
+t_uc390::inst_mov_dptr_Sdata (uchar code)
 {
   uchar pl, ph, px, dps;
 
@@ -637,7 +640,7 @@ t_uc390::inst_mov_dptr_$data (uchar code)
  */
 
 int
-t_uc390::inst_movc_a_$a_dptr (uchar code)
+t_uc390::inst_movc_a_Sa_dptr (uchar code)
 {
   uchar pl, ph, px, dps;
 
@@ -714,7 +717,7 @@ t_uc390::inst_pop (uchar code)
  */
 
 int
-t_uc390::inst_movx_a_$dptr (uchar code)
+t_uc390::inst_movx_a_Sdptr (uchar code)
 {
   uchar pl, ph, px, dps;
 
@@ -753,7 +756,7 @@ t_uc390::inst_movx_a_$dptr (uchar code)
  */
 
 int
-t_uc390::inst_movx_$dptr_a (uchar code)
+t_uc390::inst_movx_Sdptr_a (uchar code)
 {
   uchar pl, ph, px, dps;