aboutsummaryrefslogtreecommitdiffstats
path: root/src/ymh15/mips_cpu_ymh15.hpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-10-17 19:17:22 +0100
committerzedarider <ymherklotz@gmail.com>2016-10-17 19:17:22 +0100
commit6583a09d5f6bc673f7a664d47120f19827d2769c (patch)
treeda4c68e3c45dc2192bb2fa32fe1e5a49fbad7698 /src/ymh15/mips_cpu_ymh15.hpp
parentcea8c4ca10cd3a7453bc6311215dac4992fe7f52 (diff)
downloadMipsCPU-6583a09d5f6bc673f7a664d47120f19827d2769c.tar.gz
MipsCPU-6583a09d5f6bc673f7a664d47120f19827d2769c.zip
fully working add and sub
Diffstat (limited to 'src/ymh15/mips_cpu_ymh15.hpp')
-rw-r--r--src/ymh15/mips_cpu_ymh15.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ymh15/mips_cpu_ymh15.hpp b/src/ymh15/mips_cpu_ymh15.hpp
index fea8c2f..5c6ea90 100644
--- a/src/ymh15/mips_cpu_ymh15.hpp
+++ b/src/ymh15/mips_cpu_ymh15.hpp
@@ -14,9 +14,11 @@
mips_error read_instruction(mips_cpu_h state);
mips_error exec_instruction(mips_cpu_h state, uint32_t inst);
-void exec_R(mips_cpu_h state, uint32_t var[8]);
-void exec_J(mips_cpu_h state, uint32_t var[8]);
-void exec_I(mips_cpu_h state, uint32_t var[8]);
-void add_sub(mips_cpu_h state, uint32_t var[8]);
+mips_error exec_R(mips_cpu_h state, uint32_t var[8]);
+mips_error exec_J(mips_cpu_h state, uint32_t var[8]);
+mips_error exec_I(mips_cpu_h state, uint32_t var[8]);
+mips_error add_sub(mips_cpu_h state, uint32_t var[8], int32_t add_sub);
+
+uint8_t get_msb(uint32_t word);
#endif // MIPS_CPU_YMH15_H