summaryrefslogtreecommitdiff
path: root/include/nitro/os_asm.s
diff options
context:
space:
mode:
Diffstat (limited to 'include/nitro/os_asm.s')
-rw-r--r--include/nitro/os_asm.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nitro/os_asm.s b/include/nitro/os_asm.s
new file mode 100644
index 00000000..86d7603c
--- /dev/null
+++ b/include/nitro/os_asm.s
@@ -0,0 +1,7 @@
+
+# TODO: make this syntax look correct in CLion
+# Potentially switch to AT&T syntax?
+OS_GetProcMode:
+ mrs r0, cpsr
+ and r0, r0, #0x80
+ bx lr