PIC单片机 C编程技巧(19)
发布时间:2021-06-06
发布时间:2021-06-06
while(1); } 2: : char a1,a2,a3,a4; #define DBYTE ((unsigned char volatile *) 0) void pp(char y){ a1=DBYTE[y++]; a2=DBYTE[y++]; a3=DBYTE[y++]; a4=DBYTE[y]; } void main(void){ long cc=0x89abcdef; char x; x=&cc; pp(x); while(1); } 3: : char a1,a2,a3,a4; #define DBYTE ((unsigned char volatile *) 0) void pp(char y){ a1=DBYTE[y++]; a2=DBYTE[y++]; a3=DBYTE[y++]; a4=DBYTE[y]; } void main(void){ bank1 static long cc=0x89abcdef; char x; x=&cc; pp(x); while(1);