Back
MASM : STACK : SANY
SANY:

Syntax:

  • SANY
Description:

SANY performs the logical OR 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 SANY:

High Bank Low Bank
A B Top
C D Next

Stack after SANY:

High Bank Low Bank
A|C B|D Top
C D Next

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

Microcode Pattern:

Takes 1 cycles to execute.
    Example: SANY

	  
	STKC
	----
	 ANY

	  
Exceptions :

No exceptions.

Example :

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

SANY                  !! Performs the SANY operation 
                      !! as described above

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