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