/*[ sahf.c LOCAL CHAR SccsID[]="@(#)sahf.c 1.5 02/09/94"; SAHF CPU functions. ------------------- ]*/ #include #include #include #include #include #include #include #include #include #include #include #include /* ===================================================================== EXTERNAL ROUTINES STARTS HERE. ===================================================================== */ GLOBAL VOID SAHF() { IU32 temp; /* 7 6 5 4 3 2 1 0 */ /* AH = */ temp = GET_AH(); SET_SF((temp & BIT7_MASK) != 0); SET_ZF((temp & BIT6_MASK) != 0); SET_AF((temp & BIT4_MASK) != 0); SET_PF((temp & BIT2_MASK) != 0); SET_CF((temp & BIT0_MASK) != 0); }