aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-10-17 21:43:09 +0100
committerzedarider <ymherklotz@gmail.com>2016-10-17 21:43:09 +0100
commit605222ecca9d1745787fe0f440cb06cd475a6eff (patch)
tree5c52b0212488ba1c334264880dcf2dca3de744f7
parent8e8aee436fdd03c7700030d8e0f5826aea0572ec (diff)
downloadMipsCPU-605222ecca9d1745787fe0f440cb06cd475a6eff.tar.gz
MipsCPU-605222ecca9d1745787fe0f440cb06cd475a6eff.zip
cleaned up
-rwxr-xr-xsrc/ymh15/test_mipsbin328056 -> 328056 bytes
-rw-r--r--src/ymh15/test_mips.cpp10
-rw-r--r--src/ymh15/test_mips.obin32600 -> 32664 bytes
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ymh15/test_mips b/src/ymh15/test_mips
index 78350cd..07c381a 100755
--- a/src/ymh15/test_mips
+++ b/src/ymh15/test_mips
Binary files differ
diff --git a/src/ymh15/test_mips.cpp b/src/ymh15/test_mips.cpp
index 4a2de99..d515b9b 100644
--- a/src/ymh15/test_mips.cpp
+++ b/src/ymh15/test_mips.cpp
@@ -110,12 +110,12 @@ int test_add(mips_mem_h ram, mips_cpu_h cpu, uint32_t type, uint32_t max, uint8_
mips_cpu_get_register(cpu, 8, &ans);
if(type < 0x22) {
- printf("%#10x + %#10x = %#10x\n", a, b, ans);
+ printf("%#10x + %#10x = %#10x\t%#10x\n", a, b, ans, mips_err);
if(mips_err == mips_ExceptionArithmeticOverflow || a+b!=ans) {
return 0;
}
} else {
- printf("%#10x - %#10x = %#10x\n", a, b, ans);
+ printf("%#10x - %#10x = %#10x\t%#10x\n", a, b, ans, mips_err);
if(mips_err == mips_ExceptionArithmeticOverflow || a-b!=ans) {
return 0;
}
@@ -147,17 +147,17 @@ int test_bitwise(mips_mem_h ram, mips_cpu_h cpu, uint8_t op) {
mips_cpu_get_register(cpu, 7, &ans);
if(op == AND) {
- printf("%#10x & %#10x = %#10x\n", a, b, ans);
+ printf("%#10x & %#10x = %#10x\t%#10x\n", a, b, ans, mips_err);
if((a & b) == ans) {
passed = 1;
}
} else if(op == OR) {
- printf("%#10x | %#10x = %#10x\n", a, b, ans);
+ printf("%#10x | %#10x = %#10x\t%#10x\n", a, b, ans, mips_err);
if((a | b) == ans) {
passed = 1;
}
} else {
- printf("%#10x ^ %#10x = %#10x\n", a, b, ans);
+ printf("%#10x ^ %#10x = %#10x\t%#10x\n", a, b, ans, mips_err);
if((a ^ b) == ans) {
passed = 1;
}
diff --git a/src/ymh15/test_mips.o b/src/ymh15/test_mips.o
index 8411646..c7f9ef4 100644
--- a/src/ymh15/test_mips.o
+++ b/src/ymh15/test_mips.o
Binary files differ