Hi, I was readed "UVISION DEBUGGER: DALLAS 400 SIMULATION", which says that DS80c400 cannot be simulated because libraries arent included in simulator. That's understood. But, program that I try to simulate does not call to any address in range C:0x001986 to C:0x001B91 !!! (that is analyzed by stepping trough disassembly window). Target is configured for; 16MB contiguous mode; In startup400.a51 programmed bits are for: Extented stack enabled, and 16MB contiguous mode. Also, interesting is that program is simulated right when classical stack is used (in startup400.a51 I use: "orl acon, #0x00", "mov sp,#80" ) So, conclusion may be that stack isn't simulated in right way, am I right ? Thanks for reading, hope someone can reply with some conclusion about it... BTW, to Keil developers: I have programmed AGSI-DLL's to simulate lots HW peripherial's used in my HW design with classical 8051, now I wish to move to DS80C400. For what AGSI interface exist, when DS80C400 cannot be simulated ??? The program code is:
#include <stdio.h> #include <ctype.h> #include <REG400.H> int proba2(int a); int proba3(int a); int proba1(int a) { proba2(a+4); return(a); } int proba2(int a) { proba3(a-5); return(a*a); } int proba3(int a) { return(a*a); } void main() { unsigned int data i, j; unsigned char data array[10]; EA = 1; // let's print out a little version information... //printf("D"); i = 20; j = 100; array[5] = 1; isprint('u'); proba1(i); while(1) { } }