diff options
author | zedarider <ymherklotz@gmail.com> | 2016-10-17 21:43:09 +0100 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2016-10-17 21:43:09 +0100 |
commit | 605222ecca9d1745787fe0f440cb06cd475a6eff (patch) | |
tree | 5c52b0212488ba1c334264880dcf2dca3de744f7 | |
parent | 8e8aee436fdd03c7700030d8e0f5826aea0572ec (diff) | |
download | MipsCPU-605222ecca9d1745787fe0f440cb06cd475a6eff.tar.gz MipsCPU-605222ecca9d1745787fe0f440cb06cd475a6eff.zip |
cleaned up
-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 |