1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-10-01 09:57:47 +00:00

CARRY should be set if oper > 0

This error became apparent once we added the missing modify_status
function to some instructions.
This commit is contained in:
Peter Evans 2017-12-09 14:47:49 -06:00
parent 3954b1647f
commit 96b2542ea6

View File

@ -76,7 +76,7 @@ Test(mos6502_bits, lsr)
cpu->last_addr = 123;
mos6502_handle_lsr(cpu, 22);
cr_assert_eq(vm_segment_get(cpu->memory, 123), 11);
cr_assert_eq(cpu->P & CARRY, 0);
cr_assert_eq(cpu->P & CARRY, CARRY);
}
Test(mos6502_bits, ora)