mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-22 14:30:45 +00:00
Oh, little-endian issues; you are my bane
This commit is contained in:
parent
68b1b79549
commit
04aab568df
@ -29,8 +29,8 @@ Test(mos6502_loadstor, pha)
|
||||
cpu->A = 0x24;
|
||||
mos6502_handle_pha(cpu, 0);
|
||||
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x00);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x24);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x24);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x00);
|
||||
}
|
||||
|
||||
Test(mos6502_loadstor, php)
|
||||
@ -38,8 +38,8 @@ Test(mos6502_loadstor, php)
|
||||
cpu->P = 0x43;
|
||||
mos6502_handle_php(cpu, 0);
|
||||
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x00);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x43);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x43);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x00);
|
||||
}
|
||||
|
||||
Test(mos6502_loadstor, pla)
|
||||
|
Loading…
Reference in New Issue
Block a user