结构体(struct).ppt

结构体(struct)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 全局变量与内嵌汇编的传递 .C 生成代码档中的定义 union flagWord2 { unsigned int flagByte; struct bitdefine2 { unsigned bit0:1; unsigned bit1:1; unsigned bit2:6; }flagBit; }led_dp; unsigned int door_cnt; unsigned int door_cnt1; unsigned int door_cnt2; .stabs led_dp:G43,32,0,0,_led_dp .stabs door_cnt2:G14,32,0,0,_door_cnt2 .stabs door_cnt1:G14,32,0,0,_door_cnt1 .stabs door_cnt:G14,32,0,0,_door_cnt 原来它们将每一全局变量的前面都增加了一个“_”来标识它们! 在嵌入的汇编中,如果要读写全局变量,就在它们的前面加上一个“_”

文档评论(0)

1亿VIP精品文档

相关文档