initializeSystem method Null safety

  1. @override
void initializeSystem(
  1. OperationMap<Operation> layout,
  2. Operation lbl,
  3. Operation rtn
)
override

Called by our controller, which necessarily happens after the Model exists.

Implementation

@override
void initializeSystem(
    OperationMap<Operation> layout, Operation lbl, Operation rtn) {
  final int opcode =
      (lbl.arg.matches(Operations.n0, false) as ArgDone).opcode;
  program = ProgramMemory16(this, layout, model.returnStackSize, opcode, rtn);
}