ct6502 / apple2ts

Apple II Emulator in TypeScript
Creative Commons Attribution Share Alike 4.0 International
61 stars 10 forks source link

65C02 BIT emulation bug #40

Closed mgolombeck closed 8 months ago

mgolombeck commented 8 months ago

Apple Core Detects bugs in BIT opcode flag operations It seems like the flags of the 65C02 BIT opcodes are not set correctly.

Bildschirmfoto 2024-01-19 um 10 56 42

To Reproduce The following screenshot shows the code that fails of the BIT immediate opcode:

Bildschirmfoto 2024-01-19 um 11 07 47

Further Remarks Flag operations of other BIT addressing modes also fail.

ct6502 commented 8 months ago

I didn't realize that the BIT in Immediate mode only set the Z flag, not N or V! Should be an easy fix. Thanks for logging it.