Back
MASM : STACK : SAND
SAND:

Syntax:

  • SAND
Description:

SAND pops the top and next-to-top levels of the stack, performs the logical AND operation on the popped values, and pushes the result back onto the stack:

Stack before SAND:

High Bank Low Bank
A B Top
C D Next 1
E F Next 2

Stack after SAND:

High Bank Low Bank
A&C B&D Top
E F Next

Note: A, B, C, D, E, F denote TRUE or FALSE.

Microcode Pattern:

Takes 1 cycles to execute.
    Example: SAND

	  
	STKC
	----
	AND 

	  
Exceptions :

No exceptions.

Example :

IPUSHEQ 255 3 0x20 0x21  !! Push integer condition
                         !! for equality

IPUSHNE 255 3 0x20 0x22  !! Push integer condition
                         !! for inequality

SAND                     !! Pop 2 previous conditions
                         !! perform AND with them and
                         !! push the result on the
                         !! stack

APE Group Zeuthen. 2003
$Id: sand_masm.php,v 1.4 2004/08/04 09:45:22 noe Exp $
$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $