Reflect fixes to I/O in ipdf/vfpu
authorSam Moore <[email protected]>
Mon, 14 Apr 2014 15:28:19 +0000 (23:28 +0800)
committerSam Moore <[email protected]>
Mon, 14 Apr 2014 15:28:19 +0000 (23:28 +0800)
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

src/vfpu.cpp

index 85637ff..8783ca1 100644 (file)
@@ -116,7 +116,7 @@ Register Exec(const Register & a, const Register &  b, Opcode op, Rmode rmode)
        assert(g_running);
                
        stringstream s;
        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());
 
        string str(s.str());
        //Debug("Writing: %s", str.c_str());
 

UCC git Repository :: git.ucc.asn.au