added emulation exception when writing to PxIN - typically a bug so exception is default - and only - behavior currently

git-svn-id: https://mspsim.svn.sourceforge.net/svnroot/mspsim/mspsim@763 23d1a52b-0c3c-0410-b72d-8f29ab48fe35
This commit is contained in:
joxe 2010-09-27 20:23:35 +00:00
parent 5c99cf6b6b
commit 406cd1a3da
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ public class IOPort extends IOUnit {
if (iAddress == IN) {
logw("WARNING: writing to read-only " + getID() + "IN");
throw new EmulationException("Writing to read-only " + getID() + "IN");
} else {
memory[address] = data & 0xff;
if (word) {