X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fs51.src%2Fuc390.cc;h=623d3915ae784dca32376fbade99c66e98edbd52;hb=6b5e433931b8b1ba61bb6c694f74f42f48c3acf5;hp=80dda525620c4b7ba040dceaa7a471536a5684d0;hpb=57b16299d7cd3c71c3644c39089a5cee84639d83;p=fw%2Fsdcc diff --git a/sim/ucsim/s51.src/uc390.cc b/sim/ucsim/s51.src/uc390.cc index 80dda525..623d3915 100644 --- a/sim/ucsim/s51.src/uc390.cc +++ b/sim/ucsim/s51.src/uc390.cc @@ -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: