??? 06/09/04 12:19 Read: times |
#72166 - the reason for push/pop Responding to: ???'s previous message |
I suggested:
push IE clr EA setb ... enable LCD write clr ... disable LCD write pop IE Instead of clr EA setb ... enable LCD write clr ... disable LCD write setb EA The reason is that by the first method there is no risk of accidentially setting EA if it has been cleared for other reasons. If you employ the second method, there is a possibility that this code (in a later revision of the program) will be entered with EA cleared and you will then 'accidentially' set EA when it should not be. One of the meanest bugs to hunt down is EA (or another bit in IE) (re)set in the wrong place. Erik |