addapt new syntax of s51
[fw/sdcc] / debugger / mcs51 / simi.c
index b9b60f1214b041e8dc91a1eaab7c190b66bca80c..27ed92d1999016068fac50b6b8444309ac4654a1 100644 (file)
@@ -321,6 +321,7 @@ int simSetValue (unsigned int addr,char mem, int size, unsigned long val)
     sendSim(buffer);
     waitForSim(100,NULL);
     simResponse();   
+    return 0;
 }
 
 
@@ -420,7 +421,7 @@ void simLoadFile (char *s)
 {
     char buff[128];
 
-    sprintf(buff,"l \"%s\"\n",s);
+    sprintf(buff,"file \"%s\"\n",s);
     printf(buff);
     sendSim(buff);
     waitForSim(500,NULL);