summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-10-12 15:18:42 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-10-12 15:18:42 +0200
commita068e5ace6374583f79973374a7581b0d87a47dd (patch)
treeb2bd93bc2d2f9bf994e5898c2b72f54ad5e5e655 /src/code
parentea20bd9b5bcff9db1d86d83188e1e899799f324b (diff)
checkpoint
Diffstat (limited to 'src/code')
-rwxr-xr-xsrc/code/build.sh1
-rw-r--r--src/code/sim86.cpp14
2 files changed, 14 insertions, 1 deletions
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
{