Minor optimization: removed obsolete warnings since IOSegment will ensure that write is only called with correct addresses

This commit is contained in:
Niclas Finne 2013-03-08 17:28:16 +01:00
parent 1a8cd84cdd
commit 4c73f03139
1 changed files with 0 additions and 3 deletions

View File

@ -347,9 +347,6 @@ public class IOPort extends IOUnit {
public void write(int address, int data, boolean word, long cycles) {
int iAddress = address - offset;
if (iAddress < 0 || iAddress >= portMap.length) {
throw new EmulationException("Writing to illegal IO port address at " + getID() + ": $" + Utils.hex(address, 4));
}
PortReg fun = portMap[iAddress];
if (DEBUG) {
log("Writing to " + getID() + fun +