git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignorance file
[uccvend-snackrom.git]
/
ROM2
/
asm.h
diff --git
a/ROM2/asm.h
b/ROM2/asm.h
index
2c07ac8
..
c99d4a7
100644
(file)
--- a/
ROM2/asm.h
+++ b/
ROM2/asm.h
@@
-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_ */
#endif /* _ASM_H_ */
UCC
git Repository :: git.ucc.asn.au