diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-10-11 02:23:23 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-10-11 02:23:23 -0700 |
commit | 36218a8325aed1a2693925fa61935f431c1eeff1 (patch) | |
tree | f83c3cc0d3d9058beb2048a79b45568a98ae2614 | |
parent | 729609ff229294b86317a01686b48202d51355fa (diff) | |
download | mu-36218a8325aed1a2693925fa61935f431c1eeff1.tar.gz |
4019
-rw-r--r-- | subx/010core.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subx/010core.cc b/subx/010core.cc index d3d46d44..59d631a8 100644 --- a/subx/010core.cc +++ b/subx/010core.cc @@ -124,7 +124,7 @@ void run_one_instruction() { switch(op2 = next()) { // End Two-Byte Opcodes Starting With 0f default: - cerr << "unrecognized second opcode after 0f: " << std::hex << op2 << '\n'; + cerr << "unrecognized second opcode after 0f: " << std::hex << static_cast<int>(op2) << '\n'; exit(1); } break; @@ -135,12 +135,12 @@ void run_one_instruction() { switch(op3 = next()) { // End Three-Byte Opcodes Starting With f3 0f default: - cerr << "unrecognized third opcode after f3 0f: " << std::hex << op3 << '\n'; + cerr << "unrecognized third opcode after f3 0f: " << std::hex << static_cast<int>(op3) << '\n'; exit(1); } break; default: - cerr << "unrecognized second opcode after f3: " << std::hex << op2 << '\n'; + cerr << "unrecognized second opcode after f3: " << std::hex << static_cast<int>(op2) << '\n'; exit(1); } break; @@ -148,7 +148,7 @@ void run_one_instruction() { EIP = Memory.size(); break; default: - cerr << "unrecognized opcode: " << std::hex << op << '\n'; + cerr << "unrecognized opcode: " << std::hex << static_cast<int>(op) << '\n'; exit(1); } } |