summaryrefslogtreecommitdiff
path: root/src/vm/core.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-05-22 23:56:50 -0500
committersanine <sanine.not@pm.me>2023-05-22 23:56:50 -0500
commit6a4548df5e405adb080320080c67b7054b75bcaf (patch)
treee75502d7fde865d27a689a14794b023ad3bc88d0 /src/vm/core.js
parentc1709249728cb9ad7011b0d39d18ad87d4636f4b (diff)
implement MOV
Diffstat (limited to 'src/vm/core.js')
-rw-r--r--src/vm/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/core.js b/src/vm/core.js
index 399cfc6..074e156 100644
--- a/src/vm/core.js
+++ b/src/vm/core.js
@@ -11,8 +11,8 @@ class Core {
for (let i=0; i<size; i++) {
this.data[i] = {
opcode: Op.DAT,
- a: { value: 0, mode: AddrMode.Direct },
- b: { value: 0, mode: AddrMode.Direct },
+ a: { value: 0, mode: AddrMode.Immediate },
+ b: { value: 0, mode: AddrMode.Immediate },
};
}
}