The IOR instruction pops the top two elements from the stack, performs a bitwise OR on them, and pushes the result onto the stack.
The microinstructions are listed in the order in which they are executed; not the order in which they are stored in the control store.
0x0b0 SP=MAR=SP-1; rd; goto 0x9 ... 0x009 H=TOS; goto 0xa 0x00a TOS=MDR=H OR MDR; wr; goto 0x2
//--------------------------------------------- // Demonstrate the IOR instruction. // // 1. Clear Memory // 2. Assemble this program. // 3. Reset the computer. // 4. Click the "Display Words" radio button // below the memory display. // 5. Click the "Run" button. // // After running this program // 14 is stored at address 4097 // and the top of the stack is at 4097. //--------------------------------------------- .main bipush 6 // Push 0110 onto the stack bipush 10 // Push 1010 onto the stack ior // Replace top two values with // 0110 | 1010 = 1110 (decimal 14) halt .end-main