summaryrefslogtreecommitdiff
path: root/include/nitro/os_asm.s
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-04-20 20:57:00 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-04-20 20:57:00 -0400
commit43eb982a80c45fe26f1cbbc23285c4d8a2cc64b4 (patch)
tree66ee75d6bcb234f6febf52bd07ce80a9b6a6ec90 /include/nitro/os_asm.s
parent7fd747b7dfa11c1061d03467d50ff49c9d1f6b34 (diff)
Create include/ directory and move main.h structs there
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