From 8185d7b60c0fe3a694855f6fb7e2f0b7b0a4b502 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Mon, 16 Apr 2012 14:19:24 +0200 Subject: [PATCH] removed obsolete method --- se/sics/mspsim/core/IOUnit.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/se/sics/mspsim/core/IOUnit.java b/se/sics/mspsim/core/IOUnit.java index 7efb39c..6bfea7b 100644 --- a/se/sics/mspsim/core/IOUnit.java +++ b/se/sics/mspsim/core/IOUnit.java @@ -99,23 +99,12 @@ public abstract class IOUnit implements InterruptHandler, Loggable { // write // write a value to the IO unit - public abstract void write(int address, int value, boolean word, - long cycles); + public abstract void write(int address, int value, boolean word, long cycles); // read // read a value from the IO unit public abstract int read(int address, boolean word, long cycles); - // Utility function for converting 16 bits data to correct return - // value depending on address alignment and word/byte mode - public static int return16(int address, int data, boolean word) { - if (word) return data; - // First byte => low byte - if ((address & 1) == 0) return data & 0xff; - // Second byte => hi byte - return (data >> 8) & 0xff; - } - public String getID() { return id; }