Interrupt masking logic was backwards
[uccvend-snackrom.git] / ROM2 / asm.h
index 2c07ac8..c99d4a7 100644 (file)
@@ -34,4 +34,12 @@ extern inline void bclr(const void* addr, const u8 mask) {
        //      );
 }
 
+extern inline void lock() {
+       asm volatile ("sei");
+}
+
+extern inline void unlock() {
+       asm volatile ("cli");
+}
+
 #endif /* _ASM_H_ */

UCC git Repository :: git.ucc.asn.au