GOTO -300
MDR = TOS = MDR - H; wr; goto (MBR OR 0x100)
?
142A40897
?
ILOAD j ILOAD n ISUB BIPUSH 7 ISUB DUP IADD ISTORE k
K = CALCULATE(I, J, 42);
IST_ARRAY
in Mic-1. It is just like ISTORE
except that it has an extra byte that is the number words on the stack to store
into consecutive local variables.
IST_ARRAY varnum byte
The instruction will store byte number of words from the stack into consecutive local variables, starting with local variable varnum.
Use symbolic names in conditional branch statements, but supply a table that gives hex addresses for each of these labels. Be sure all the labels have consistent addresses.
The quiz for this homework will be on Thursday, March 24.