在small模式下 idata修饰不起作用 4: char max(char x,char y,char z,char idata w ) 5: { 6: 7: return (x+y+z+w); 8: C:0x083D EF MOV A,R7 C:0x083E 2D ADD A,R5 C:0x083F 2B ADD A,R3 C:0x0840 2528 ADD A,0x28 ---w C:0x0842 FF MOV R7,A
在compact模式下 idata修饰还是不起作用 4: char max(char x,char y,char z,char idata w ) 5: { 6: 7: return (x+y+z+w); 8: C:0x084B EF MOV A,R7 C:0x084C 2D ADD A,R5 C:0x084D 2B ADD A,R3 C:0x084E FF MOV R7,A C:0x084F 7807 MOV R0,#0x07 C:0x0851 E2 MOVX A,@R0 C:0x0852 2F ADD A,R7 C:0x0853 FF MOV R7,A
在large模式下 idata修饰还是不起作用 4: char max(char x,char y,char z,char idata w ) 5: { 6: 7: return (x+y+z+w); 8: C:0x0875 EF MOV A,R7 C:0x0876 2D ADD A,R5 C:0x0877 2B ADD A,R3 C:0x0878 FF MOV R7,A C:0x0879 900006 MOV DPTR,#0x0006 -----w C:0x087C E0 MOVX A,@DPTR C:0x087D 2F ADD A,R7 C:0x087E FF MOV R7,A |