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:
parent
42394fee80
commit
4beff0bff8
@ -37,8 +37,8 @@ Test(mos6502, next_byte)
|
||||
Test(mos6502, push_stack)
|
||||
{
|
||||
mos6502_push_stack(cpu, 0x1234);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x12);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x34);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0100), 0x34);
|
||||
cr_assert_eq(vm_segment_get(cpu->memory, 0x0101), 0x12);
|
||||
}
|
||||
|
||||
Test(mos6502, pop_stack)
|
||||
|
Loading…
Reference in New Issue
Block a user