1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 05:49:24 +00:00

We switched the logic for C015

This commit is contained in:
Peter Evans 2018-01-31 00:20:37 -06:00
parent a53ee9698b
commit ce405531b8

View File

@ -72,9 +72,9 @@ Test(apple2_pc, write)
Test(apple2_pc, switch_read) Test(apple2_pc, switch_read)
{ {
mach->memory_mode = MEMORY_DEFAULT; mach->memory_mode = MEMORY_DEFAULT;
cr_assert_eq(vm_segment_get(mach->main, 0xC015), 0);
mach->memory_mode = MEMORY_SLOTCXROM;
cr_assert_eq(vm_segment_get(mach->main, 0xC015), 0x80); cr_assert_eq(vm_segment_get(mach->main, 0xC015), 0x80);
mach->memory_mode = MEMORY_SLOTCXROM;
cr_assert_eq(vm_segment_get(mach->main, 0xC015), 0);
cr_assert_eq(vm_segment_get(mach->main, 0xC017), 0); cr_assert_eq(vm_segment_get(mach->main, 0xC017), 0);
mach->memory_mode = MEMORY_SLOTC3ROM; mach->memory_mode = MEMORY_SLOTC3ROM;