Back
MASM : PRAGMAS : PRAGMA_STK_XX
PRAGMA_STK_XX:

Syntax:

  • PRAGMA_STK_C3C4
  • PRAGMA_STK_E3C4
  • PRAGMA_STK_C3E4
  • PRAGMA_STK_E3E4
Description:

The stack pragmas

  • PRAGMA_STK_C3C4
  • PRAGMA_STK_E3C4
  • PRAGMA_STK_C3E4
  • PRAGMA_STK_E3E4

either enable (C), or disable (E) conditioning for Ports 3 and 4, until another stack pragma is encountered.

Microcode Pattern:

Takes 0 cycles to execute.
    Example: PRAGMA_STK_C3E4 (Microcode for the example below)

	  
 DISP    C5 MCC STKC FLW IOC  AGU BS5 P5 BS4 C4 P4 MPC  BS3 C3 P3 P2 P1 P0
---------------------------------------------------------------------------
55555555 0   -   -    -   -    -   0  00  0   0 00 IADD  0   0 00 00 cc bb
55555555 0   -   -    -  A2RF  D   0  00  0   0 00   -   0   0 00 00 00 00
00000000 0   -   -    -   -    -   0  00  3   0 aa   -   0   0 00 00 00 00
00000000 0   -   -    -   -    -   0  00  0   0 00   -   0   0 00 00 00 00
00000000 0   -   -    -   -    -   0  00  0   0 00   -   3   1 aa 00 00 00

	  
Exceptions :

None

Example :

PRAGMA_STK_C3E4                  
AGU_D ZERO 0x5555555555555555    
ATR   0xAA 3                    !! Port 4 is not conditioned 
                                !! (see C4 in the micro-code pattern) 
IADD  0xAA 3 0xBB 0xCC          !! Port 3 is conditioned (see C3 in
                                !! the micro-code pattern)

APE Group Zeuthen. 2003
$Id: pragma_stk_masm.php,v 1.2 2004/08/04 09:44:12 noe Exp $
$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $