1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-23 23:32:45 +00:00

Carry is set by default now

This commit is contained in:
Peter Evans 2018-01-23 16:24:16 -06:00
parent a3598ecd16
commit 60ff0e5781

View File

@ -33,6 +33,7 @@ Test(mos6502_addr, addr_mode_abx_carry0)
SET_PC_BYTE(cpu, 1, 0x30);
SET_PC_BYTE(cpu, 2, 0x12);
cpu->X = 4;
cpu->P = cpu->P & ~MOS_CARRY;
cr_assert_eq(mos6502_resolve_abx(cpu), 111);
}
@ -42,7 +43,6 @@ Test(mos6502_addr, addr_mode_abx_carry1)
SET_PC_BYTE(cpu, 1, 0x30);
SET_PC_BYTE(cpu, 2, 0x12);
cpu->X = 3;
cpu->P = cpu->P | MOS_CARRY;
cr_assert_eq(mos6502_resolve_abx(cpu), 111);
}