diff options
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 |