I have learned in this Experiment

I have learned in this Experiment

by Raihan Kabir -
Number of replies: 0

I have Learned in this Experiment:-

*Using MUL and DIV in assemble Language. 

★Multiplication: If two bytes are multiplied, the product is a word (16 bits). 

Syntax: MUL source Multiplier is kept in source byte, 

multiplicand in AL and the 16 bit product in AX The 

source may be a byte register, a memory byte, but not a constant 

MUL affects 2 flags CF and OF CF/OF=0, if the upper. 

half of the result is zero otherwise 1 

*Division: Syntax: DIV divisor 

The quotient and the remainder have the same size as 

the divisor. Divisor is kept in 8 bit register or memory, 

dividend is kept in AX, quotient in AL and the remainder in AH 

DIV does not affect flags.