mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 23:29:43 +00:00
Fix for other VM/display tests
This commit is contained in:
parent
bc643bfbdb
commit
2aa2648d30
@ -1198,13 +1198,13 @@ TEST test_HIRES_on(bool flag_80store, bool flag_page2) {
|
||||
|
||||
if (flag_80store) {
|
||||
if (flag_page2) {
|
||||
switch_save = switch_save & ~(SS_HGRRD|SS_HGRWRT);
|
||||
ASSERT((void *)base_hgrrd == (void *)(apple_ii_64k[0]));
|
||||
ASSERT((void *)base_hgrwrt == (void *)(apple_ii_64k[0]));
|
||||
} else {
|
||||
switch_save = switch_save | (SS_HGRRD|SS_HGRWRT);
|
||||
ASSERT((void *)base_hgrrd == (void *)(apple_ii_64k[1]));
|
||||
ASSERT((void *)base_hgrwrt == (void *)(apple_ii_64k[1]));
|
||||
} else {
|
||||
switch_save = switch_save & ~(SS_HGRRD|SS_HGRWRT);
|
||||
ASSERT((void *)base_hgrrd == (void *)(apple_ii_64k[0]));
|
||||
ASSERT((void *)base_hgrwrt == (void *)(apple_ii_64k[0]));
|
||||
}
|
||||
} else {
|
||||
ASSERT(base_hgrrd == save_base_hgrrd); // unchanged
|
||||
|
8
src/vm.c
8
src/vm.c
@ -313,13 +313,13 @@ GLUE_C_READ(iie_hires_on)
|
||||
|
||||
if (softswitches & SS_80STORE) {
|
||||
if (softswitches & SS_PAGE2) {
|
||||
softswitches &= ~(SS_HGRRD|SS_HGRWRT);
|
||||
base_hgrrd = apple_ii_64k[0];
|
||||
base_hgrwrt = apple_ii_64k[0];
|
||||
} else {
|
||||
softswitches |= (SS_HGRRD|SS_HGRWRT);
|
||||
base_hgrrd = apple_ii_64k[1];
|
||||
base_hgrwrt = apple_ii_64k[1];
|
||||
} else {
|
||||
softswitches &= ~(SS_HGRRD|SS_HGRWRT);
|
||||
base_hgrrd = apple_ii_64k[0];
|
||||
base_hgrwrt = apple_ii_64k[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user