X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=calu.git;a=blobdiff_plain;f=3b_sim%2Fsim.cpp;h=6cd72b16cce203b21229d2e44ade6b6a195eac20;hp=3200e92a798370baf0ada9c066d7a80fc3d9e65c;hb=c0fc93c02587d16121457a37aa0f67ca6e3a2bc2;hpb=ad62aa0d41bba614f0436522f73e0d4272a172d7 diff --git a/3b_sim/sim.cpp b/3b_sim/sim.cpp index 3200e92..6cd72b1 100644 --- a/3b_sim/sim.cpp +++ b/3b_sim/sim.cpp @@ -74,6 +74,7 @@ CCpu* global_cpu = NULL; vector breakpoints; + #include multimap dataCommentsStore, progCommentsStore, dataLabelStore, progLabelStore; @@ -403,7 +404,7 @@ void printPROG(const vector& in) cout << std::hex << "0x" << setw(8) << setfill('0') << i << ": NOP"; } else { - cout << std::hex << "0x" << setw(8) << setfill('0') << i << ": " << std::dec << pi->toString(); + cout << std::hex << "0x" << setw(8) << setfill('0') << i << ": " << std::dec << global_cpu->colorifyInstr(pi->toString()); } auto iter = progLineCommentStore.find(i); if(iter != progLineCommentStore.end()) {