z80-tools/src/nl/grauw/glass/directives/Equ.java

17 wiersze
382 B
Java

package nl.grauw.glass.directives;
import nl.grauw.glass.AssemblyException;
import nl.grauw.glass.Line;
import nl.grauw.glass.Scope;
public class Equ extends Directive {
@Override
public void register(Scope scope, Line line) {
if (line.getLabel() == null)
throw new AssemblyException("Equ without label.");
scope.addSymbol(line.getLabel(), line.getArguments());
}
}