Engine class

Base machine that is compatible with Z-Machine V1.

Mixed-in types
Implementers

Constructors

Engine()

Properties

callStack Stack
final
currentWindow int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
log Logger
Gets the log for output.
no setterinherited
logName String
Sets the logger and name for this Loggable mixin instance.
no getterinherited
maxFileLength int
no setter
mem MemoryMap
getter/setter pair
ops Map<int, Function>
getter/setter pair
outputStream1 bool
getter/setter pair
outputStream2 bool
getter/setter pair
outputStream3 bool
getter/setter pair
outputStream4 bool
getter/setter pair
programCounter int
Z-Machine Program Counter
getter/setter pair
propertyDefaultsTableSize int
no setter
r DRandom
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack Stack
final
version zMachineVersions
no setter

Methods

add() → void
and() → void
assertNotMarker(dynamic m) → dynamic
branch(bool testResult) → void
callVS() → void
clearAttr() → void
dec() → void
decChk() → void
div() → void
doReturn(dynamic result) → void
fileLengthMultiplier() int
getChild() → void
getNextProp() → void
getParent() → void
getProp() → void
getPropAddr() → void
getPropLen() → void
getSibling() → void
inc() → void
incChk() → void
insertObj() → void
je() → void
jeV() → void
jg() → void
jin() → void
jl() → void
jump() → void
jz() → void
load() → void
loadByte() → void
loadWord() → void
mod() → void
mul() → void
newline() → void
nop() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
not() → void
notFound() → void
or() → void
pack(int unpackedAddr) int
pcHex({int offset = 0}) String
peekVariable(int? varNum) int?
piracy() → void
pop() → void
printAddr() → void
printChar() → void
printf() → void
printNum() → void
printObj() → void
printPAddr() → void
printRet() → void
pull() → void
push() → void
putProp() → void
quit() → void
random() → void
read() → void
readb() int
Reads 1 byte from the current program counter address and advances the program counter programCounter to the next unread address.
readLocal(int local) int
readVariable(int varNum) int
readw() int
Reads 1 word from the current program counter address and advances the program counter programCounter to the next unread address.
removeObj() → void
restart() → void
restore() → void
ret() → void
retPopped() → void
rfalse() → void
rtrue() → void
save() → void
sendStatus() → void
setAttr() → void
showStatus() → void
store() → void
storebv() → void
storewv() → void
sub() → void
test() → void
testAttr() → void
toString() String
A string representation of this object.
inherited
unpack(int packedAddr) int
verify() → void
visitHeader() → void
visitInstruction() → void
Reads the next instruction at memory location programCounter and executes it.
visitOperandsLongForm() List<Operand>
visitOperandsShortForm() Operand
visitOperandsVar(int howMany, bool isVariable) List<Operand>
visitRoutine(List<int?> params) → void
writeVariable(int varNum, int? value) → void
Writes value to varNum either global or local.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

doMod(dynamic a, dynamic b) int

Constants

gameFalse → const int
Z-Machine False = 0
gameTrue → const int
Z-Machine True = 1
stackMarker → const int
stackPointer → const int