Professional Documents
Culture Documents
8086
SL NAME OF THE EXERCISE PAGE DATE OF DATE OF SIGNATURE REMARKS
NO. NO. PRACTICE SUBMISSION
1 Assembly language
program to add two
binary number each of 1
bytes long( without and
with carry)
2 Assembly language
program to add two
binary number each of 2
bytes long( without and
with carry)
3 Assembly language
program to find the
maximum number in a
given array.
4 Assembly language
program to add array of 1
bytes numbers.
5 Assembly language
program to add array of 2
bytes numbers.
6 Assembly language
program to short in
ascending order.
EXERCISE- 1
Title: Assembly language program to add two binary number each of 1 bytes
long( without and with carry)
PROGRAM 1:
MOV [3000H],11010000B
MOV [3002H],01100000B
MOV CX, 0000
MOV AX, [3000H]
MOV BX, [3002H]
ADD AX, BX
JNC NEXT
INC CX
NEXT:MOV [3004H], AX
MOV [3006H], CX
HLT
OUTPUT:
PROGRAM 2:
MOV [3000H],01010000B
MOV [3002H],01100010B
MOV CX, 0000
MOV AX, [3000H]
MOV BX, [3002H]
ADD AX, BX
JNC NEXT
INC CX
NEXT:MOV [3004H], AX
MOV [3006H], CX
INT 3
OUTPUT:
PRECAUTIONS TO BE FOLLOWED:
Title: Assembly language program to add two binary number each of 2 bytes
long( without and with carry)
PROGRAM:
MOV [3000H],1101100011000000B
MOV [3002H],0110011101010100B
ADD AX, BX
JNC NEXT
INC CX
NEXT:MOV [3004H], AX
MOV [3006H], CX
HLT
OUTPUT:
PRECAUTIONS TO BE FOLLOWED:
PROGRAM:
MOV CX,[SI]
INC SI
BACK: INC SI
CMP AL,[SI]
JAE GO
MOV AL,[SI]
MOV [0350H],AL
HLT
OUTPUT:
PRECAUTIONS TO BE FOLLOWED:
PROGRAM:
OUTPUT:
PRECAUTIONS TO BE FOLLOWED:
PROGRAM:
OUTPUT:
PRECAUTIONS TO BE FOLLOWED:
PROGRAM:
MOV DI,0402H
MOV SI,0300H
MOV DX,[SI]
HERE: MOV SI,0300H
MOV AX,0FFFFH
MOV CX, [SI]
BACK: INC SI
INC SI
CMP AX,[SI]
JB GO
MOV AX, [SI]
MOV BX, SI
GO: LOOP BACK
MOV [DI], AX
MOV SI, BX
MOV [SI],0FFFFH
INC DI
INC DI
DEC DX
JNZ HERE
HLT
INPUT:
OUTPUT:
PRECAUTIONS TO BE FOLLOWED:
8051
SL NAME OF THE EXERCISE PAGE DATE OF DATE OF SIGNATURE REMARKS
NO. NO. PRACTICE SUBMISSION
1 Assembly language
program to add two 8 bit
numbers.
2 Assembly language
program to add two 16 bit
numbers.
EXERCISE- 1
PROGRAM :
ORG 100H
MOV A, #95H
ADD A, #87H
MOV 52H, A
CLR A
RLC A
MOV 53H, A
HERE: SJMP HERE
END
OBSERVATION TABLE:
PRECAUTIONS TO BE FOLLOWED:
1. Check rules/syntax of assembly programming
EXERCISE- 2
PROGRAM :
ORG 100H
CLR C
ADDC A, @R1
MOV @R0, A
INC R0
INC R1
DJNZ R2,LOOP
END
OBSERVATION TABLE:
INPUT OUTPUT