From 406cd1a3dae9ea01bfd682fd73b6c8a28fbfde4d Mon Sep 17 00:00:00 2001 From: joxe Date: Mon, 27 Sep 2010 20:23:35 +0000 Subject: [PATCH] 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 --- se/sics/mspsim/core/IOPort.java | 1 + 1 file changed, 1 insertion(+) diff --git a/se/sics/mspsim/core/IOPort.java b/se/sics/mspsim/core/IOPort.java index 7be596b..1d27b2a 100644 --- a/se/sics/mspsim/core/IOPort.java +++ b/se/sics/mspsim/core/IOPort.java @@ -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) {