ProgramMemory16 class Null safety

Inheritance

Constructors

ProgramMemory16(Memory16 memory, OperationMap<Operation> layout, int returnStackSize, int _lblOpcode, Operation rtn)

Properties

bytesToNextAllocation → int
read-onlyinherited
currentLine ↔ int
read / writeinherited
hasExtended → bool
read-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
isRunning → bool
read-onlyinherited
lines → int
Number of lines in the program
read-onlyinherited
listing → List<String>
read-onlyinherited
memory → Memory<Operation>
finalinherited
programBytes → int
read-onlyinherited
programListener ↔ ProgramListener
This is a testing hook; tests can override this to tweak behaviors and detect events.
read / writeinherited
returnStackPos → int
read-onlyinherited
returnStackUnderflow → bool
read-onlyinherited
runner ↔ MProgramRunner?
read / writeinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
suspendedProgram ↔ MProgramRunner?
read / writeinherited

Methods

adjustStackForRunStopStarting() → void
A RunStop keypress can resume a program, in which case the return stack should be left undisturbed. It can also start a "new" program run, so we need to be sure the return stack isn't in underflow
inherited
debugReturnStack() → String
inherited
decodeJson(Map<String, dynamic> json) → void
Must be called after the register storage has been read in, so any stray data will be properly zeroed out.
inherited
deleteCurrent() → void
inherited
displayCurrent({bool flash = false, bool delayed = false}) → void
inherited
doNextIf(bool condition) → void
inherited
getAllInstructions() → List<ProgramInstruction<Operation>>
inherited
getCurrent() → ProgramInstruction<Operation>
inherited
gosub(int label) → void
inherited
goto(int label) → void
override
gotoOpCode(int wanted) → void
inherited
importProgram(String listing) → void
inherited
importProgramFromFile(Uint8List original) → void
inherited
incrementCurrentLine() → void
Increment the current line, up to a max of lines, wrapping to 0. To be clear, there are lines+1 possible values.
inherited
insert(ProgramInstruction<Operation> instruction) → void
Insert a new instruction, and increment currentLine to refer to it.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
opcodeAt(int line) → int
inherited
popReturnStack() → void
inherited
reset({bool zeroMemory = true}) → void
inherited
resetReturnStack() → void
inherited
skipIfRunning() → void
inherited
stepCurrentLine(int sign) → void
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](int line) → ProgramInstruction<Operation>
line counts from 1, with a phantom return at line 0
inherited