diff options
author | WlodekM <[email protected]> | 2025-04-03 10:04:09 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2025-04-03 10:04:09 +0300 |
commit | 22bf543c4feca33cfcd68c57de516761bb64a553 (patch) | |
tree | 88600a6cde308d907bfecb8d5e0b0588670b198f /instructions/CMB2.ts | |
parent | 0424cc4e5b5aeffd56f680f36333a4a27fc43a76 (diff) |
wdc65c02 memory bit instructions
Diffstat (limited to 'instructions/CMB2.ts')
-rw-r--r-- | instructions/CMB2.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/instructions/CMB2.ts b/instructions/CMB2.ts new file mode 100644 index 0000000..8d154df --- /dev/null +++ b/instructions/CMB2.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(2, false) + this.write(); + // this.flagZN(res & 0xFF) +} \ No newline at end of file |