1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00

Remember that we must obey little-endian order

This commit is contained in:
Peter Evans 2018-01-09 16:00:15 -06:00
parent 42394fee80
commit 4beff0bff8

View File

@ -37,8 +37,8 @@ Test(mos6502, next_byte)
Test(mos6502, push_stack) Test(mos6502, push_stack)
{ {
mos6502_push_stack(cpu, 0x1234); mos6502_push_stack(cpu, 0x1234);
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x12); cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x34);
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x34); cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x12);
} }
Test(mos6502, pop_stack) Test(mos6502, pop_stack)