use of com.kasirgalabs.etumulator.lang.LabelError in project ETUmulator by kasirgalabs.
the class ETUmulatorController method runButtonOnAction.
@FXML
private void runButtonOnAction(ActionEvent event) {
processor.stop();
processorUnits.reset();
Assembler assembler = new Assembler(memory);
ExecutableCode executableCode;
try {
executableCode = assembler.assemble(document.getText() + "\n");
} catch (SyntaxError | LabelError | NumberFormatException ex) {
System.err.println(ex.getMessage());
return;
}
processor.run(executableCode);
}
Aggregations