about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-05-12 13:27:14 -0700
committerKartik Agaram <vc@akkartik.com>2019-05-12 13:27:14 -0700
commit4847a5e615bb2393e537295d02a57005a2b2140c (patch)
treef51ba4ca75bb6360cc01b1afc4148b85c2952cda /subx
parent8c1a69089bcb0be8ee869a3f83c3151a7083e27c (diff)
downloadmu-4847a5e615bb2393e537295d02a57005a2b2140c.tar.gz
.
Drop some prints as a first step to straightening things out.
Diffstat (limited to 'subx')
-rw-r--r--subx/010---vm.cc3
-rw-r--r--subx/013direct_addressing.cc4
2 files changed, 0 insertions, 7 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc
index 00a2dee4..379c441d 100644
--- a/subx/010---vm.cc
+++ b/subx/010---vm.cc
@@ -93,7 +93,6 @@ SF = ZF = CF = OF = false;
 // result in 'arg1', then update flags.
 // beware: no side-effects in args
 #define BINARY_ARITHMETIC_OP(op, signed_arg1, signed_arg2) { \
-  cerr << signed_arg1 << " vs " << signed_arg2 << '\n'; \
   int64_t signed_full_result = signed_arg1 op signed_arg2; \
   signed_arg1 = signed_arg1 op signed_arg2; \
   trace(Callstack_depth+1, "run") << "storing 0x" << HEXWORD << signed_arg1 << end(); \
@@ -103,9 +102,7 @@ SF = ZF = CF = OF = false;
   /* CF is more complex */ \
   uint32_t unsigned_arg1 = static_cast<uint32_t>(signed_arg1); \
   uint32_t unsigned_arg2 = static_cast<uint32_t>(signed_arg2); \
-  cerr << unsigned_arg1 << " vs " << unsigned_arg2 << '\n'; \
   uint32_t unsigned_result = unsigned_arg1 op unsigned_arg2; \
-  cerr << "result: " << unsigned_result << '\n'; \
   uint64_t unsigned_full_result = unsigned_arg1 op unsigned_arg2; \
   CF = (unsigned_result != unsigned_full_result); \
   trace(Callstack_depth+1, "run") << "SF=" << SF << "; ZF=" << ZF << "; CF=" << CF << "; OF=" << OF << end(); \
diff --git a/subx/013direct_addressing.cc b/subx/013direct_addressing.cc
index ef5ac752..c94a152d 100644
--- a/subx/013direct_addressing.cc
+++ b/subx/013direct_addressing.cc
@@ -733,7 +733,6 @@ case 0x39: {  // set SF if r/m32 < r32
   trace(Callstack_depth+1, "run") << "compare " << rname(reg2) << " with r/m32" << end();
   const int32_t* signed_arg1 = effective_address(modrm);
   const int32_t signed_arg2 = Reg[reg2].i;
-  cerr << *signed_arg1 << " vs " << signed_arg2 << '\n';
   const int32_t signed_difference = *signed_arg1 - signed_arg2;
   SF = (signed_difference < 0);
   ZF = (signed_difference == 0);
@@ -741,11 +740,8 @@ case 0x39: {  // set SF if r/m32 < r32
   OF = (signed_difference != signed_full_difference);
   const uint32_t unsigned_arg1 = static_cast<uint32_t>(*signed_arg1);
   const uint32_t unsigned_arg2 = static_cast<uint32_t>(signed_arg2);
-  cerr << unsigned_arg1 << " vs " << unsigned_arg2 << '\n';
   const uint32_t unsigned_difference = unsigned_arg1 - unsigned_arg2;
-  cerr << "result: " << unsigned_difference << '\n';
   const uint64_t unsigned_full_difference = unsigned_arg1 - unsigned_arg2;
-  cerr << "full result: " << unsigned_full_difference << '\n';
   CF = (unsigned_difference != unsigned_full_difference);
   trace(Callstack_depth+1, "run") << "SF=" << SF << "; ZF=" << ZF << "; CF=" << CF << "; OF=" << OF << end();
   break;