summaryrefslogtreecommitdiffstats
path: root/src/emu/syscall.h
diff options
context:
space:
mode:
authorBenedikt Böhm <bb@xnull.de>2009-05-18 20:53:42 +0200
committerBenedikt Böhm <bb@xnull.de>2009-05-18 20:53:42 +0200
commit49f510d2d60129526832bfcd9c0f4049962bc80e (patch)
tree2828b773c75bdbc4014a3421c8046778a1a2b11b /src/emu/syscall.h
parent144258f0196b69cbdd2f29bd501276942efc3182 (diff)
downloadswppy-49f510d2d60129526832bfcd9c0f4049962bc80e.tar.gz
swppy-49f510d2d60129526832bfcd9c0f4049962bc80e.tar.xz
swppy-49f510d2d60129526832bfcd9c0f4049962bc80e.zip
move stuff around and create initial source structure
Diffstat (limited to 'src/emu/syscall.h')
-rw-r--r--src/emu/syscall.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/emu/syscall.h b/src/emu/syscall.h
new file mode 100644
index 0000000..7c7265c
--- /dev/null
+++ b/src/emu/syscall.h
@@ -0,0 +1,16 @@
+#ifndef _SYSCALL_H
+#define _SYSCALL_H
+
+/* calling convention:
+ * - pass syscall number in GPR[1]
+ * - pass arguments in GPR[2]-GPR[9]
+ * - return code is passed in GPR[2]
+ */
+
+#define SYS_exit 0x00
+#define SYS_read 0x01
+#define SYS_write 0x02
+
+void do_syscall(void);
+
+#endif