Files
cc65/src
Sidney Cadot 1d9d056da5 Fixed behavior of the 65C02 "BIT #imm" instruction.
The BIT #imm instruction behaves differently from the BIT instruction with other
addressing modes, in that it does /not/ set the N and V flags according to the
value of its operand. It only sets the Z flag, in accordance to the value of
(A & operand).

This is corroborated in two ways:

- The 65x02 test suite;
- Documentation about BIT #imm such as http://www.6502.org/tutorials/65c02opcodes.html

This patch implements the correct behavior for BIT with immediate addressing.
The patched version passes the 65x02 test suite for 65C02 opcode 0x89.
2024-11-30 23:46:19 +01:00
..
2022-04-17 16:07:09 +02:00
2022-04-17 16:07:09 +02:00
2022-12-30 17:25:47 +02:00
2024-02-15 09:03:46 +01:00
2022-04-17 16:07:09 +02:00
2023-04-19 09:15:03 +02:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-09-23 14:26:08 +03:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00
2023-12-14 14:25:35 -08:00