@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/dist/v86.browser.js +2 -0
- package/dist/v86.browser.js.map +2 -2
- package/dist/v86.js +2 -0
- package/dist/v86.js.map +2 -2
- package/package.json +1 -1
- package/src/cpu.ts +2 -2
package/package.json
CHANGED
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]
|