clear EA                            // disable all interrupts
code-that-is-not-to-be-interrupted  // execute the code
set EA                              // re-enable interrupts