summaryrefslogtreecommitdiff
path: root/lib/ultralib/src/os/getcount.s
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ultralib/src/os/getcount.s')
-rw-r--r--lib/ultralib/src/os/getcount.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ultralib/src/os/getcount.s b/lib/ultralib/src/os/getcount.s
new file mode 100644
index 0000000..28d5a79
--- /dev/null
+++ b/lib/ultralib/src/os/getcount.s
@@ -0,0 +1,9 @@
+#include "PR/R4300.h"
+#include "sys/asm.h"
+#include "sys/regdef.h"
+
+.text
+LEAF(osGetCount)
+ STAY2(mfc0 v0, C0_COUNT)
+ jr ra
+END(osGetCount)