Mirror of the JODE repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jode/jode/jode/expr/Instruction.java

34 lines
632 B

package jode;
public abstract class Instruction {
int addr,length;
Instruction(int a, int l) {
addr = a;
length = l;
}
public int getAddr() {
return addr;
}
public void setAddr(int addr) {
this.addr = addr;
}
public int getLength() {
return length;
}
public void setLength(int length) {
this.length = length;
}
public int[] getSuccessors() {
int[] result = { addr + length };
return result;
}
public abstract void dumpSource(TabbedPrintWriter tpw, CodeAnalyzer ca)
throws java.io.IOException;
}