1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-10 14:29:30 +00:00

Tests should reflect how carry is handled in ROL/R now

This commit is contained in:
Peter Evans 2018-02-19 21:59:55 -06:00
parent 65f13bb1e4
commit d590a809d8

View File

@ -97,7 +97,7 @@ Test(mos6502_bits, rol)
cpu->eff_addr = 234;
mos6502_handle_rol(cpu, 128);
cr_assert_eq(mos6502_get(cpu, 234), 1);
cr_assert_eq(mos6502_get(cpu, 234), 0);
}
Test(mos6502_bits, ror)
@ -106,6 +106,6 @@ Test(mos6502_bits, ror)
cr_assert_eq(cpu->A, 160);
cpu->eff_addr = 123;
mos6502_handle_ror(cpu, 1);
mos6502_handle_ror(cpu, 0);
cr_assert_eq(mos6502_get(cpu, 123), 128);
}