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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/10/02 06:32
Read: times


 
#28929 - RE: Making Global variables interrupt safe?
Or try this code. You can also change the register bank when entering the critical section. It will be restored with the "pop psw" instruction.

        setb c              ;function entry
        jbc EA,DisInt
        clr c
DisInt: push PSW            ;Carry holds the EA state
        .
        .
        ;Critical Section
        .
        .
        pop PSW



Franc



List of 15 messages in thread
TopicAuthorDate
Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt sa            01/01/70 00:00      
RE: Using/Avoiding Global variables            01/01/70 00:00      
RE: Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt sa            01/01/70 00:00      
RE: Making Global variables interrupt sa            01/01/70 00:00      
RE: Making Global variables interrupt sa            01/01/70 00:00      
RE: Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt safe?            01/01/70 00:00      
RE: Making Global variables interrupt #2            01/01/70 00:00      
RE: Making Global variables interrupt #2            01/01/70 00:00      
RE: Franc            01/01/70 00:00      

Back to Subject List