Back
MASM : STACK : SXOR
SXOR:

Syntax:

  • SXOR
Description:

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

Stack before SXOR:

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

Stack after SXOR:

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: SXOR

	  
	STKC
	----
	XOR 

	  
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

SXOR                  !! Performs the SXOR operation 
                      !! as described above

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