Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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

List of 39 messages in thread
TopicAuthorDate
Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      Ignore above, corrected version here            01/01/70 00:00      
         RE: Ignore above, corrected version here            01/01/70 00:00      
            RE: Ignore above, corrected version here            01/01/70 00:00      
               RE: Ignore above, corrected version here            01/01/70 00:00      
               RE: Ignore above, corrected version here            01/01/70 00:00      
                  RE: Ignore above, corrected version here            01/01/70 00:00      
         RE: Ignore above, corrected version here            01/01/70 00:00      
            RE: Ignore above, corrected version here            01/01/70 00:00      
               the reason for push/pop            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext.            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext.            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
         RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
      RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
         RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
            RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
            RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
               RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
                  RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
                     RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
                     RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   RE: Using P0 for LCD along with 64K Ext. RAM            01/01/70 00:00      
   Version 2            01/01/70 00:00      
      RE: Version 2            01/01/70 00:00      
      RE: Version 2            01/01/70 00:00      
         RE: Version 2            01/01/70 00:00      
            RE: Version 2 - Supervisory chip            01/01/70 00:00      
               RE: Version 2 - Supervisory chip            01/01/70 00:00      
      RE: Version 2            01/01/70 00:00      
      Memory maped LCD?            01/01/70 00:00      
         RE: Memory maped LCD?            01/01/70 00:00      
            RE: Memory maped LCD?            01/01/70 00:00      
               RE: Memory maped LCD?            01/01/70 00:00      
                  RE: Memory maped LCD? another way            01/01/70 00:00      

Back to Subject List