diff options
-rwxr-xr-x | src/ymh15/test_mips | bin | 328056 -> 328056 bytes | |||
-rw-r--r-- | src/ymh15/test_mips.cpp | 10 | ||||
-rw-r--r-- | src/ymh15/test_mips.o | bin | 32600 -> 32664 bytes |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ymh15/test_mips b/src/ymh15/test_mips Binary files differindex 78350cd..07c381a 100755 --- a/src/ymh15/test_mips +++ b/src/ymh15/test_mips 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 Binary files differindex 8411646..c7f9ef4 100644 --- a/src/ymh15/test_mips.o +++ b/src/ymh15/test_mips.o |