Passa al contenuto principale

V. Set di istruzioni

I mnemonici e il significato degli operatori sono i seguenti:

CategoriaMnemonicoSignificato
it/id refLD <num>riferimento a letterale o identificatore -> TOS
int constIC <num>piccola costante intera in complemento a due -> TOS
addressAD <num>indirizzo -> TOS
null parameterNULLattributo del termine mancante
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, ritorna al chiamante con x
branch trueBTTOS = AD x, AD x -> contatore di istruzioni
branch falseBFTOS = AD x, AD x -> contatore di istruzioni
branchBUTOS = AD x, AD x -> contatore di istruzioni
compare equalCEQTOS = x,y, (y.EQ.x) -> flag TRUE/FALSE
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) -> uscita
call inputIN (INC = confronto, INN = senza confronto)TOS = r,t,v,l, (r,t,v,l) -> TOS
current -> initialSCIPCIP -> IIP (memorizza puntatore di ingresso corrente - puntatore di ingresso iniziale)
initial -> currentSICPIIP -> CIP (memorizza puntatore di ingresso iniziale - puntatore di ingresso corrente)