cbc/net/loveruby/cflat/asm/DirectMemoryReference.java

22 lines
445 B
Java

package net.loveruby.cflat.asm;
public class DirectMemoryReference extends MemoryReference {
protected Literal value;
public DirectMemoryReference(Label label) {
this.value = new LabelRef(label);
}
public DirectMemoryReference(IntegerLiteral n) {
this.value = n;
}
public Literal value() {
return this.value;
}
public String toString() {
return this.value.toString();
}
}