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.
25 lines
508 B
25 lines
508 B
package jode;
|
|
|
|
public class DupOperator extends Instruction {
|
|
int count, depth;
|
|
|
|
public DupOperator(int a, int l, int depth, int count) {
|
|
super(a,l);
|
|
this.count = count;
|
|
this.depth = depth;
|
|
}
|
|
|
|
public int getCount(){
|
|
return count;
|
|
}
|
|
|
|
public int getDepth(){
|
|
return depth;
|
|
}
|
|
|
|
public void dumpSource(TabbedPrintWriter tpw, CodeAnalyzer ca)
|
|
throws java.io.IOException
|
|
{
|
|
tpw.println("dup"+count+"_x"+depth+";");
|
|
}
|
|
}
|
|
|