diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-10-11 02:50:26 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-10-11 02:52:03 -0700 |
commit | 540dce180aa183cc6af0607dc0ef79e38317e851 (patch) | |
tree | c0b0ce0186de4df671a2936b03de82af2c108232 | |
parent | bd00c14c37f813b28dde77def29114a5f5976e6c (diff) | |
download | mu-540dce180aa183cc6af0607dc0ef79e38317e851.tar.gz |
4023
-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 82e8672e..4a70236b 100644 --- a/subx/010core.cc +++ b/subx/010core.cc @@ -70,8 +70,8 @@ Memory.clear(); +load: 0b +load: 0c +load: 0d -+run: add to EAX immediate 0x0d0c0b0a -+reg: storing 0x0d0c0b0a in register EAX ++run: add imm 0x0d0c0b0a to reg EAX ++reg: storing 0x0d0c0b0a in reg EAX :(code) // helper for tests: load a program into memory from a textual representation @@ -116,9 +116,9 @@ void run_one_instruction() { // our first opcode case 0x05: { // add EAX, imm32 int32_t arg2 = imm32(); - trace(2, "run") << "add to EAX immediate 0x" << HEXWORD << arg2 << end(); + trace(2, "run") << "add imm 0x" << HEXWORD << arg2 << " to reg EAX" << end(); BINARY_ARITHMETIC_OP(+, R[EAX].i, arg2); - trace(98, "reg") << "storing 0x" << HEXWORD << R[EAX].i << " in register EAX" << end(); + trace(98, "reg") << "storing 0x" << HEXWORD << R[EAX].i << " in reg EAX" << end(); break; } // End Single-Byte Opcodes |