mirror of https://github.com/contiki-ng/mspsim
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:
parent
5c99cf6b6b
commit
406cd1a3da
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue