@aptre/v86 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptre/v86",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "license": "BSD-2-Clause",
5
5
  "description": "x86 PC emulator and x86-to-wasm JIT, running in the browser",
6
6
  "homepage": "https://github.com/aperturerobotics/v86",
package/src/cpu.ts CHANGED
@@ -726,7 +726,7 @@ export class CPU {
726
726
  state[26] = this.flags[0]
727
727
  state[27] = this.flags_changed[0]
728
728
  state[28] = this.last_op1[0]
729
-
729
+ state[29] = this.last_result[0]
730
730
  state[30] = this.last_op_size[0]
731
731
 
732
732
  state[37] = this.instruction_pointer[0]
@@ -945,7 +945,7 @@ export class CPU {
945
945
  this.flags[0] = state[26]
946
946
  this.flags_changed[0] = state[27]
947
947
  this.last_op1[0] = state[28]
948
-
948
+ if (state[29] !== undefined) this.last_result[0] = state[29]
949
949
  this.last_op_size[0] = state[30]
950
950
 
951
951
  this.instruction_pointer[0] = state[37]