FreeBSD/sys/contrib/x86emu/x86emu.c
/*
 * REMARKS:
 * Implements the MUL instruction and side effects.
 */
Implements the MUL instruction and side effects.
Implements the MUL instruction and side effects .
static void 
mul_byte(struct x86emu *emu, uint8_t s)
{
	uint16_t res = (uint16_t) (emu->x86.R_AL * s);
	emu->x86.R_AX = res;
	if (emu->x86.R_AH == 0) {
		CLEAR_FLAG(F_CF);
		CLEAR_FLAG(F_OF);
	} else {
		SET_FLAG(F_CF);
		SET_FLAG(F_OF);
	}
}
static void mul_byte ( struct x86emu * emu , uint8_t s ) { uint16_t res = ( uint16_t ) ( emu -> x86 . R_AL * s ) ; emu -> x86 . R_AX = res ; if ( emu -> x86 . R_AH == 0 ) { CLEAR_FLAG ( F_CF ) ; CLEAR_FLAG ( F_OF ) ; } else { SET_FLAG ( F_CF ) ; SET_FLAG ( F_OF ) ; } }
REMARKS:
 Implements the MUL instruction and side effects.
REMARKS : Implements the MUL instruction and side effects .