Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/25/05 08:33
Read: times


 
#101508 - Silab IDE Problem
Responding to: ???'s previous message
Andy

ASM setting string : XR GEN DB EP NOMOD51
C51 settings string: BROWSE ORDER DEBUG OBJECTEXTEND CODE
LISTINCLUDE SYMBOLS PREPRINT
Linker (BL51) string: RS(256) PL(68) PW(78)
These are same as I have in Keil.


Original C program:

unsigned char xdata i=0, j=0;
unsigned char xdata *px;
void main(void)
{
px=&i;
j=*px;
if(j==0)
{i=1;}
else
{i=2;}
px=i*j;
while(1);
}

Disassambled ASM code as shown by silab IDE:


I am skipping startup code.

008F 75 08 00 MOV 08H,#00H
0092 75 09 00 MOV 09H,#00H
0095 85 09 82 MOV 82H,09H
0098 85 08 83 MOV 83H,08H
009B E0 MOVX A,@DPTR
009C 90 00 01 MOV DPTR,#0001H
009F F0 MOVX @DPTR,A
00A0 90 00 00 MOV DPTR,#0000H
00A3 70 04 JNZ 04H
00A5 04 INC A
00A6 F0 MOVX @DPTR,A
00A7 80 03 SJMP 03H
00A9 74 02 MOV A,#02H
00AB F0 MOVX @DPTR,A
00AC 90 00 00 MOV DPTR,#0000H
00AF E0 MOVX A,@DPTR
00B0 90 7F 7F MOV DPTR,#7F7FH
00B3 12 00 00 LCALL 0000H

As you can see last line is LCALL 0000H

Some times I get Lcall 0000 for Case switch also.

Regards

Vimal Amin

List of 24 messages in thread
TopicAuthorDate
Silab IDE Problem            01/01/70 00:00      
   Cross-post            01/01/70 00:00      
   Linker?            01/01/70 00:00      
      Silab IDE Problem            01/01/70 00:00      
      Silab IDE Problem            01/01/70 00:00      
         OBJECTEXTEND            01/01/70 00:00      
            Silab IDE Problem            01/01/70 00:00      
            Silabs does not support anything            01/01/70 00:00      
               debugger - OBJECTEXTEND??            01/01/70 00:00      
                  yes, it does, in the usual stupid way            01/01/70 00:00      
               Silab IDE Problem            01/01/70 00:00      
            Silab IDE Problem            01/01/70 00:00      
               New features...?            01/01/70 00:00      
                  That's what I do            01/01/70 00:00      
                  Silab IDE Problem            01/01/70 00:00      
         Linker Listing File            01/01/70 00:00      
            Silab IDE Problem            01/01/70 00:00      
               Clue !!            01/01/70 00:00      
   Why you think so ?            01/01/70 00:00      
      Diagramatically (warning - widescreen!)            01/01/70 00:00      
         Good diagram            01/01/70 00:00      
            Locator            01/01/70 00:00      
               Works perfect at my place!            01/01/70 00:00      
                  "investing in an ICE"            01/01/70 00:00      

Back to Subject List