kopia lustrzana https://github.com/maccasoft/z80-tools
17 wiersze
382 B
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());
|
|
}
|
|
|
|
}
|