SANDBIS performs the logical AND operation on the top
and next-to-top levels of the stack, and updates the top
of the stack with the result:
Stack before SANDBIS:
High Bank |
Low Bank |
|
 |
A |
B |
Top |
C |
D |
Next |
 |
Stack after SANDBIS:
High Bank |
Low Bank |
|
 |
A&C |
B&D |
Top |
C |
D |
Next |
 |
Note: A, B, C, D denote TRUE or FALSE.
Takes 1 cycles to execute.
Example: SANDBIS
STKC
----
AD2
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
SANDBIS !! Performs the SANDBIS
!! operation as described above