public class Label
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
fix()
Fixes the position to which the label points as the current position in
the code buffer
|
void |
register(int pos,
int size)
Registers the label and allocate 2 or 4 bytes in the code buffer.
|
void |
setPosition(int tgt)
Fixes the position to which the label points
|
void |
setRelativePosition(int tgt)
Fixes the position to which the label points
|
Label |
shift(int offset) |
public void fix()
public Label shift(int offset)
public void setRelativePosition(int tgt)
tgt
- the relative position to which the label pointspublic void setPosition(int tgt)
tgt
- the absolute position to which the label pointspublic void register(int pos, int size)