FreeBSD/sys/contrib/x86emu/x86emu.c
/*
 * REMARKS:
 * Implements the OR instruction and side effects.
 */
Implements the OR instruction and side effects.
Implements the OR instruction and side effects .
static uint8_t 
or_byte(struct x86emu *emu, uint8_t d, uint8_t s)
{
	uint8_t res;	
	res = d | s;
	CLEAR_FLAG(F_OF);
	CLEAR_FLAG(F_CF);
	CLEAR_FLAG(F_AF);
	CONDITIONAL_SET_FLAG(res & 0x80, F_SF);
	CONDITIONAL_SET_FLAG(res == 0, F_ZF);
	CONDITIONAL_SET_FLAG(PARITY(res), F_PF);
	return res;
}
static uint8_t or_byte ( struct x86emu * emu , uint8_t d , uint8_t s ) { uint8_t res ; res = d | s ; CLEAR_FLAG ( F_OF ) ; CLEAR_FLAG ( F_CF ) ; CLEAR_FLAG ( F_AF ) ; CONDITIONAL_SET_FLAG ( res & 0x80 , F_SF ) ; CONDITIONAL_SET_FLAG ( res == 0 , F_ZF ) ; CONDITIONAL_SET_FLAG ( PARITY ( res ) , F_PF ) ; return res ; }
REMARKS:
 Implements the OR instruction and side effects.
REMARKS : Implements the OR instruction and side effects .
/* all operands in native machine order */