(Continued from previous page)


bne op1, op2, label
Jump if not equal

ceq op1, op2, dest          NEW
cne op1, op2, dest
clt op1, op2, dest
cgt op1, op2, dest
cle op1, op2, dest
cgt op1, op2, dest
Similar to the above branching instructions but stores the value one in dest if the comparison is true, zero otherwise

print  op1
Prints op1, which must be a literal string or an STR alias that has been declared in the data section

outp op1
Prints op1, which must be a memory address/.

inp op1
Reads a value from stdin and strores it in memory location op1.

foutp, finp                 NEW
Floating point versions of the above                   

param  op1
Pushes op1 onto the parameter stack used to prepare for a function call

call name, count
Execution jumps to the subroutine name, count is the number of parameters that have been pushed onto the stack.

nop
Does nothing

exit
Terminates execution of the program

alloc  n                    NEW           
Adds
n storage locations to the current stack frame.  Could be used anywhere but typically only appears as the first instruction in a subroutine or main program.

(Continued on next page)

Back to top

To contact us:

© Copyright 1999 Vassar College
Poughkeepsie, New York

Web pages  by
Keith Suderman Consulting