Suppongo che il primo byte dopo l'opcode di ISTORE contenga la specifica della modalita' di indirizzamento. Nei vari casi il formato sara' come descritto: immediata ISTORE 0x00 val var diretta ISTORE 0x01 ind var stack ISTORE 0x02 var dove reg=0x00 per registro OPC istore1 H=LV \\per il futuro assegnamento a var istore2 PC=PC+1; fetch \\estrazione byte val/ind/var istore3 OPC=MBRU-1; if (N) goto istoreImm1; else goto istore4 //controllo se modalita'=immediata istore4 Z=OPC; if (Z) goto istoreDir1; else goto istoreSt1 //controllo se modalita'=diretta o registro indiretta istoreImm1 PC=PC+1; fetch \\estrazione byte var istoreImm2 MDR=MBR \\val in MDR istoreImm3 PC=PC+1; fetch \\estrazione next opcode istoreImm4 MAR=MBRU+H; wr; goto Main1 \\scrittura val in var istoreDir1 PC=PC+1; fetch \\estrazione byte var istoreDir2 MAR=MBRU; rd \\lettura M[ind] istoreDir3 PC=PC+1; fetch \\estrazione next opcode istoreDir4 MAR=MBRU+H; wr; goto Main1 istoreSt1 MAR=SP=SP-1; rd \\lettura nuova cima Stack istoreSt2 MDR=TOS istoreSt3 MAR=MBRU+H; wr \\scrittura TOS in var istoreSt4 PC=PC+1; fetch \\estrazione next opcode istoreSt5 TOS=MDR; goto Main1 \\aggiornamento TOS