* sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
[fw/sdcc] / sim / ucsim / s51.src / glob.cc
index 00cd82ff55f61e0465920dd2cf6e15a06d19b28a..cd3f47a8bb2d916c976848d1523b67e8e1ee1bc9 100644 (file)
@@ -308,6 +308,7 @@ struct name_entry sfr_tab51[]=
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x81, "SP"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x82, "DPL"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x83, "DPH"},
+  {CPU_251|CPU_DS390F,            0x93, "DPX"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x80, "P0"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x90, "P1"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0xa0, "P2"},
@@ -321,7 +322,9 @@ struct name_entry sfr_tab51[]=
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x8d, "TH1"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x8b, "TL1"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x98, "SCON"},
-  {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x99, "SBUF"},
+  {CPU_ALL_51|CPU_ALL_52,         0x99, "SBUF"},
+  {CPU_251,                       0x99, "SBUF0"},
+  {CPU_251,                       0xC1, "SBUF1"},
   {CPU_ALL_51|CPU_ALL_52|CPU_251, 0x87, "PCON"},
   {CPU_ALL_52|CPU_251, 0xc8, "T2CON"},
   {CPU_ALL_52|CPU_251, 0xcd, "TH2"},
@@ -329,6 +332,9 @@ struct name_entry sfr_tab51[]=
   {CPU_ALL_52|CPU_251, 0xcb, "RCAP2H"},
   {CPU_ALL_52|CPU_251, 0xca, "RCAP2L"},
   {CPU_251, 0x84, "DPXL"},
+  {CPU_DS390|CPU_DS390F, 0x84, "DPL1"},
+  {CPU_DS390|CPU_DS390F, 0x85, "DPH1"},
+  {CPU_DS390|CPU_DS390F, 0x86, "DPS"},
   {CPU_89C51R|CPU_51R, 0x8e, "AUXR"},
   {CPU_51R|CPU_89C51R|CPU_251, 0xa6, "WDTRST"},
   {CPU_51R|CPU_89C51R|CPU_251, 0xa9, "SADDR"},
@@ -359,7 +365,9 @@ struct name_entry sfr_tab51[]=
   {CPU_89C51R|CPU_251, 0xfc, "CCAP2H"},
   {CPU_89C51R|CPU_251, 0xfd, "CCAP3H"},
   {CPU_89C51R|CPU_251, 0xfe, "CCAP4H"},
-  {CPU_89C51R, 0xa2, "AUXR1"},
+  {CPU_89C51R,         0xa2, "AUXR1"},
+  {CPU_DS390F,         0x9B, "ESP"},
+  {CPU_DS390F,         0x9D, "ACON"},
   {0, 0, NULL}
 };
 
@@ -494,6 +502,8 @@ struct cpu_entry cpus_51[]=
 
   {"251"   , CPU_251, CPU_CMOS},
   {"C251"  , CPU_251, CPU_CMOS},
+  {"DS390" , CPU_DS390, CPU_CMOS},
+  {"DS390F" , CPU_DS390F, CPU_CMOS},
   {NULL, 0, 0}
 };