8086 Assembly Language Program-16 Bit multiplication for unsigned numbers

Posted By on September 21, 2014


Download PDF
Exceptions in 8086
PROGRAM TO PERFORM ADDITION AND SUBTRACTION OF TWO BCD NUMBERS

DATA SEGMENT
NUM DW 1234H,1234H
PROD DW 2 DUP(0)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
LEA SI,NUM ; SI pointed to the Multiplicand
MOV AX,[SI] ; Multiplicand has to be in AX register
MOV BX,[SI+2] ; SI+2 pointed to the Multiplier and move it to BX
MUL BX ;Perform the multiplication
MOV PROD,AX ;32 bit product stored in DX-AX registers
MOV PROD+2,DX
MOV AH,4CH
INT 21H
CODE ENDS
END START

Exceptions in 8086
PROGRAM TO PERFORM ADDITION AND SUBTRACTION OF TWO BCD NUMBERS

Download PDF

Posted by Akash Kurup

Founder and C.E.O, World4Engineers Educationist and Entrepreneur by passion. Orator and blogger by hobby

Website: http://world4engineers.com