Exemple #1
0
 private void ioreg(String name, int offset) {
   constants.put(name.toLowerCase(), new Integer(offset));
 }
Exemple #2
0
 private void constant(String name, int value) {
   constants.put(name.toLowerCase(), new Integer(value));
 }
Exemple #3
0
 public void addVariable(String name, int value) {
   constants.put(labelName(name), new Integer(value));
 }
Exemple #4
0
  public void addRegisterName(String name, AbstractToken reg) {
    LegacyRegister register = LegacyRegister.getRegisterByName(reg.image);
    if (register == null) ERROR.UnknownRegister(reg);

    definitions.put(labelName(name), register);
  }
Exemple #5
0
 // <label>
 public void addLabel(AbstractToken name) {
   Item.Label li = new Item.Label(segment, name);
   addItem(li);
   labels.put(name.image.toLowerCase(), li);
 }