mirror of
https://github.com/pevans/erc-c.git
synced 2024-08-19 17:29:34 +00:00
Carry must be unset in this test
This commit is contained in:
parent
60ff0e5781
commit
522905b39c
@ -52,6 +52,7 @@ Test(mos6502_addr, addr_mode_aby_carry0)
|
||||
SET_PC_BYTE(cpu, 1, 0x30);
|
||||
SET_PC_BYTE(cpu, 2, 0x12);
|
||||
cpu->Y = 4;
|
||||
cpu->P = cpu->P & ~MOS_CARRY;
|
||||
cr_assert_eq(mos6502_resolve_aby(cpu), 111);
|
||||
}
|
||||
|
||||
@ -61,7 +62,6 @@ Test(mos6502_addr, addr_mode_aby_carry1)
|
||||
SET_PC_BYTE(cpu, 1, 0x30);
|
||||
SET_PC_BYTE(cpu, 2, 0x12);
|
||||
cpu->Y = 3;
|
||||
cpu->P = cpu->P | MOS_CARRY;
|
||||
cr_assert_eq(mos6502_resolve_aby(cpu), 111);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user