1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-27 00:30:26 +00:00

Minor cleanliness improvement.

This commit is contained in:
Thomas Harte 2020-12-11 21:43:13 -05:00
parent 3b2e97e77c
commit 6e9d517c26

View File

@ -137,12 +137,13 @@ template <typename Machine> 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) {