Zum Hauptinhalt springen

V. Befehlssatz

Die Mnemonics und die Bedeutungen der Operatoren lauten wie folgt:

KategorieMnemonicBedeutung
it/id refLD <num>Literal- oder Bezeichnerreferenz -> TOS
int constIC <num>kleine Zweierkomplement-Ganzzahlkonstante -> TOS
addressAD <num>Adresse -> TOS
null parameterNULLfehlendes Term-Attribut
addADDTOS = x,y, x + y -> TOS
subtractSUBTOS = x,y, x - y -> TOS
multiplyMULTOS = x,y, x * y -> TOS
divideDIVTOS = x,y, x/y -> TOS
concatenateCONTOS = x,y, x||y -> TOS
unary minusUNINTOS = x, -x -> TOS
load id valueLIVTOS = LD x, V(LD x) -> TOS
load id lengthLILTOS = LD x, V(LD x) -> TOS
load id typeLITTOS = LD x, V(LD x) -> TOS
look up labelLVLTOS = x, AD x -> TOS
stoSTOTOS = x,y, y -> x
returnRETTOS = x, Rückkehr zum Aufrufer mit x
branch trueBTTOS = AD x, AD x -> Befehlszähler
branch falseBFTOS = AD x, AD x -> Befehlszähler
branchBUTOS = AD x, AD x -> Befehlszähler
compare equalCEQTOS = x,y, (y.EQ.x) -> TRUE/FALSE-Flag
compare not equalCNETOS = x,y, (y.NE.x) -> T/FF
compare <=CLETOS = x,y, (y.LE.x) -> T/FF
call outputOUTTOS = r,t,v,l, (r,t,v,l) -> Ausgabe
call inputIN (INC = Vergleich, INN = kein Vergleich)TOS = r,t,v,l, (r,t,v,l) -> TOS
current -> initialSCIPCIP -> IIP (aktuellen Eingabezeiger - Anfangszeiger speichern)
initial -> currentSICPIIP -> CIP (Anfangszeiger - aktuellen Eingabezeiger speichern)