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/DEC.ts | |
parent | 0424cc4e5b5aeffd56f680f36333a4a27fc43a76 (diff) |
wdc65c02 memory bit instructions
Diffstat (limited to 'instructions/DEC.ts')
-rw-r--r-- | instructions/DEC.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/instructions/DEC.ts b/instructions/DEC.ts index 9f14487..2f9d7a9 100644 --- a/instructions/DEC.ts +++ b/instructions/DEC.ts @@ -6,5 +6,6 @@ export default function (this: The65c02, mode: string) { this.read(); const res = this.io.data.num() - 1; this.io.data.set(res & 0xFF); + this.write(); this.flagZN(res & 0xFF) } \ No newline at end of file |