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:
parent
a3598ecd16
commit
60ff0e5781
@ -33,6 +33,7 @@ Test(mos6502_addr, addr_mode_abx_carry0)
|
|||||||
SET_PC_BYTE(cpu, 1, 0x30);
|
SET_PC_BYTE(cpu, 1, 0x30);
|
||||||
SET_PC_BYTE(cpu, 2, 0x12);
|
SET_PC_BYTE(cpu, 2, 0x12);
|
||||||
cpu->X = 4;
|
cpu->X = 4;
|
||||||
|
cpu->P = cpu->P & ~MOS_CARRY;
|
||||||
cr_assert_eq(mos6502_resolve_abx(cpu), 111);
|
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, 1, 0x30);
|
||||||
SET_PC_BYTE(cpu, 2, 0x12);
|
SET_PC_BYTE(cpu, 2, 0x12);
|
||||||
cpu->X = 3;
|
cpu->X = 3;
|
||||||
cpu->P = cpu->P | MOS_CARRY;
|
|
||||||
cr_assert_eq(mos6502_resolve_abx(cpu), 111);
|
cr_assert_eq(mos6502_resolve_abx(cpu), 111);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user