# HG changeset patch # User Michael Pavone # Date 1585884729 25200 # Node ID 53faef14cbdb2b85d3b0aa56b731f602ef86d5e0 # Parent 5b94e0e7c5a528f95a9b562a540d230f15e51196 Don't lockup on writes to !TIME or !FDC regions regardless of whether anything is mapped there diff -r 5b94e0e7c5a5 -r 53faef14cbdb genesis.c --- a/genesis.c Thu Apr 02 20:17:08 2020 -0700 +++ b/genesis.c Thu Apr 02 20:32:09 2020 -0700 @@ -1120,7 +1120,7 @@ gen->tmss_lock[location >> 1 & 1] = value; } else if (has_tmss && location == 0xA14100) { //TODO: implement TMSS control register - } else { + } else if (location < 0xA12000 || location >= 0xA13100 || (location >= 0xA12100 && location < 0xA13000)) { fatal_error("Machine freeze due to unmapped write to %X\n", location); } return vcontext; @@ -1142,7 +1142,7 @@ } } else if (has_tmss && (location == 0xA14100 || location == 0xA14101)) { //TODO: implement TMSS control register - } else { + } else if (location < 0xA12000 || location >= 0xA13100 || (location >= 0xA12100 && location < 0xA13000)) { fatal_error("Machine freeze due to unmapped byte write to %X\n", location); } return vcontext;