SOR pops the top and next-to-top levels of the stack,
performs the logical OR operation on the popped values,
and pushes the result back onto the stack:
Stack before SOR:
High Bank |
Low Bank |
|
 |
A |
B |
Top |
C |
D |
Next 1 |
E |
F |
Next 2 |
 |
Stack after SOR:
High Bank |
Low Bank |
|
 |
A|C |
B|D |
Top |
E |
F |
Next |
 |
Note: A, B, C, D, E, F denote TRUE or FALSE.
Takes 1 cycles to execute.
Example: SOR
STKC
----
OR
No exceptions.
IPUSHEQ 255 3 0xa 0xb !! Pushes on both banks of
!! the stack integer
!! condition for equality
IPUSHEQ 255 3 0xc 0xd !! Pushes on both banks of
!! the stack integer
!! condition for equality
SOR !! Performs the SOR operation
!! as described above