showMemory method Null safety

  1. @override
String showMemory()
override

Give the string displayed by the MEM key

Implementation

@override
String showMemory() {
  int b = _memory.program.bytesToNextAllocation;
  String r = _numRegisters.toString().padLeft(3, '0');
  return 'p-$b r-$r ';
}