From 605222ecca9d1745787fe0f440cb06cd475a6eff Mon Sep 17 00:00:00 2001 From: zedarider Date: Mon, 17 Oct 2016 21:43:09 +0100 Subject: cleaned up --- src/ymh15/test_mips | Bin 328056 -> 328056 bytes src/ymh15/test_mips.cpp | 10 +++++----- 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 index 78350cd..07c381a 100755 Binary files a/src/ymh15/test_mips and b/src/ymh15/test_mips 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 Binary files a/src/ymh15/test_mips.o and b/src/ymh15/test_mips.o differ -- cgit