mirror of
https://github.com/pevans/erc-c.git
synced 2025-08-09 11:25:04 +00:00
Carry must be unset
This commit is contained in:
@@ -88,6 +88,7 @@ Test(mos6502_addr, addr_mode_idy)
|
|||||||
|
|
||||||
SET_PC_BYTE(cpu, 1, 0x12);
|
SET_PC_BYTE(cpu, 1, 0x12);
|
||||||
cpu->Y = 5;
|
cpu->Y = 5;
|
||||||
|
cpu->P &= ~MOS_CARRY;
|
||||||
cr_assert_eq(mos6502_resolve_idy(cpu), 123);
|
cr_assert_eq(mos6502_resolve_idy(cpu), 123);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user