Mercurial > repos > blastem
changeset 1915:53faef14cbdb
Don't lockup on writes to !TIME or !FDC regions regardless of whether anything is mapped there
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 02 Apr 2020 20:32:09 -0700 |
parents | 5b94e0e7c5a5 |
children | 6ece1e2c7a15 |
files | genesis.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;