From: Sam Moore Date: Mon, 14 Apr 2014 15:28:19 +0000 (+0800) Subject: Reflect fixes to I/O in ipdf/vfpu X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=97d0d11bd2a29d79c000fd1b5a49c397f23afef6;p=ipdf%2Fcode.git Reflect fixes to I/O in ipdf/vfpu Commits in ipdf/vfpu: 354bf006d86abdfad9dbb915facec36f99af77bc e005897cffaf46cbbed14b3cc1ef74a390c93fef Only using 1 hex character for opcode (3 bits) and rmode (2 bits) as opposed to 1 char per bit (...) Also no need to print extra newline; it was a bug in ipdf/vfpu --- diff --git a/src/vfpu.cpp b/src/vfpu.cpp index 85637ff..8783ca1 100644 --- a/src/vfpu.cpp +++ b/src/vfpu.cpp @@ -116,7 +116,7 @@ Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode) assert(g_running); stringstream s; - s << hex << setw(8) << setfill('0') << a.to_ullong() << "\n" << b.to_ullong() << "\n" << setw(3) << op <<"\n" << setw(2) << rmode << "\n\n"; + s << hex << setw(8) << setfill('0') << a.to_ullong() << "\n" << b.to_ullong() << "\n" << setw(1) << op <<"\n" << setw(1) << rmode << "\n"; string str(s.str()); //Debug("Writing: %s", str.c_str());