diff options
| -rwxr-xr-x | src/build/sim86 | bin | 57736 -> 57872 bytes | |||
| -rwxr-xr-x | src/code/build.sh | 1 | ||||
| -rw-r--r-- | src/code/sim86.cpp | 14 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/build/sim86 b/src/build/sim86 Binary files differindex c3dc369..14cb6ef 100755 --- a/src/build/sim86 +++ b/src/build/sim86 diff --git a/src/code/build.sh b/src/code/build.sh index eb49392..5d5a598 100755 --- a/src/code/build.sh +++ b/src/code/build.sh @@ -7,6 +7,7 @@ Compiler="clang" CompilerFlags=" -g +-fdiagnostics-absolute-paths -nostdinc++ -DSIM86_INTERNAL " diff --git a/src/code/sim86.cpp b/src/code/sim86.cpp index e7cc2da..0fca8a5 100644 --- a/src/code/sim86.cpp +++ b/src/code/sim86.cpp @@ -75,7 +75,19 @@ Run8086(psize DisassemblySize, u8 *Disassembly) Assert(0); } - *Destination = *Source; + if(Decoded.Flags & Inst_Wide) + { + s32 Old = *Destination; + *Destination = *Source; + + printf("%4x->%4x\n", Old, *Destination); + + } + else + { + Assert(0); + } + } else { |
