summary refs log tree commit diff
path: root/instructions/CMB7.ts
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-04-03 10:04:09 +0300
committerWlodekM <[email protected]>2025-04-03 10:04:09 +0300
commit22bf543c4feca33cfcd68c57de516761bb64a553 (patch)
tree88600a6cde308d907bfecb8d5e0b0588670b198f /instructions/CMB7.ts
parent0424cc4e5b5aeffd56f680f36333a4a27fc43a76 (diff)
wdc65c02 memory bit instructions
Diffstat (limited to 'instructions/CMB7.ts')
-rw-r--r--instructions/CMB7.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/instructions/CMB7.ts b/instructions/CMB7.ts
new file mode 100644
index 0000000..ad8d0a5
--- /dev/null
+++ b/instructions/CMB7.ts
@@ -0,0 +1,10 @@
+import type The65c02 from "../65c02.ts";
+
+export default function (this: The65c02, mode: string) {
+    const addr = this.getAddr(mode);
+    this.io.address.set(addr);
+    this.read();
+    this.io.data.setBit(7, false)
+    this.write();
+    // this.flagZN(res & 0xFF)
+}
\ No newline at end of file