本帖最后由 Periodic 于 2012-2-27 11:54 编辑
//-------------------反好的C代码-------------------
data unsigned char D_08H _at_ 0x08;
data unsigned char D_09H _at_ 0x09;
#define TAB ((volatile unsigned char data *)0x0A) //
#define pD_08H (unsigned char xdata *)(D_08H) //
D_08H=0x0B; //R1_0
*pD_08H=TAB[D_09H];
//-------------------KEIL生成的A代码-------------------
C:0x0012 75080B MOV D_08H(0x08),#D_0BH(0x0B)
C:0x0015 740A MOV A,#D_0AH(0x0A)
C:0x0017 2509 ADD A,D_09H(0x09)
C:0x0019 F8 MOV R0,A
C:0x001A E6 MOV A,@R0
C:0x001B 850882 MOV DPL(0x82),D_08H(0x08)
C:0x001E 758300 MOV DPH(0x83),#0x00
C:0x0021 F0 MOVX @DPTR,A |