mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-18 22:06:01 +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:
parent
3954b1647f
commit
96b2542ea6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user