请问PUSHA.POPA.的作用?
LCDcmdNoWait:pusha
ldb Int_Mask,#00001000b ; Enable HSO interrupts
ldb IMask1,#00000011b; Enable Tx and Rx interrupts
ei
stb al,IOPort3 ; Output the command
andb IOPort1,#0F9h; RS and RW low
orb IOPort1,#08h ; E high
andb IOPort1,#0F7h; E low
popa ; Restore interrupts
ret
这是一个液晶写命令字的一段小程序,我弄不懂pusha.popa的作用,是起禁止中断的作用吗?如果是那
ldb Int_Mask,#00001000b ; Enable HSO interrupts
ldb IMask1,#00000011b; Enable Tx and Rx interrupts
又其什么作用? 入栈出栈 你这段程序 属于 被调用,肯定调用之前 得保存被调用程序的 东西啊
页:
[1]