diff --git a/Machines/Apple/AppleII/AuxiliaryMemorySwitches.hpp b/Machines/Apple/AppleII/AuxiliaryMemorySwitches.hpp index 038d33be8..f4ae901d8 100644 --- a/Machines/Apple/AppleII/AuxiliaryMemorySwitches.hpp +++ b/Machines/Apple/AppleII/AuxiliaryMemorySwitches.hpp @@ -137,12 +137,13 @@ template class AuxiliaryMemorySwitches { } break; - case 0xc008: case 0xc009: - if(!is_read && switches_.alternative_zero_page != bool(address & 1)) { - switches_.alternative_zero_page = address & 1; + case 0xc008: case 0xc009: { + const bool alternative_zero_page = address & 1; + if(!is_read && switches_.alternative_zero_page != alternative_zero_page) { + switches_.alternative_zero_page = alternative_zero_page; set_zero_page_paging(); } - break; + } break; case 0xc00a: case 0xc00b: if(!is_read) {