Experiment No. 1: 1. AIM: Write An 8086 Assembly Level Program To Perform
Experiment No. 1: 1. AIM: Write An 8086 Assembly Level Program To Perform
1
1. AIM: Write an 8086 assembly level program to perform:
(a) Multiplication of two bytes.
(b) Multiplication of two words.
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
INT 3 ; Product in AX
INT 3 ; exit
EXPERIMENT NO. 2
1. AIM: Write a program in 8086 assembly language to obtain a packed
BCD byte from two ASCII encoded digits.
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4. General Information:
This program produces a packed BCD byte from two ASCII encoded digits. The first
ASCII digit (5) is located in AL register and the second ASCII (9) is located in the BL
register. The result (packed BCD) is stored in the AL register.
5. Program:
INT 3 ; exit
EXPERIMENT NO. 3
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
MOV CH, 09 H ; CH = 09 H
AAS ; results:
; AL = 0000 0100 = BCD 04
; CF = 0 no borrow required
INT 3
EXPERIMENT NO. 4
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4(a) PROGRAM:
3. A suggestive program is provided for your reference. Please debug this program
and performs correct operations.
4. PROGRAM:
EXIT: INT 3
EXPERIMENT NO. 6
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4. PROGRAM:
MOV CX, 32 ; no. of characters to change
B20
MOV AH, (BX) ; character from TITLE
CMP AH, 61 H ; is it
JB B30 ; lower
JA B30 ; letter?
B30
INC BX ; set for next character
INT 3
EXPERIMENT NO. 7
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4. PROGRAM:
CLC ; no carry initially
JCXZ FINISH
FINISH: INT 3
EXPERIMENT NO. 8
1. AIM: Write an 8086 assembly level program to perform ASCII to Binary conversion.
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4. PROGRAM:
B20:
MUL CX
MOV MULT10, AX
INT 3
EXPERIMENT NO 9
1. AIM: Design an 8255 control word to configure 8255 in mode 0, i.e. simple input
output mode. All the ports are in output mode. Write an assembly
level program to transmit 55 H to Port A, AA H to Port B and CC H to Port C.
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4. PROGRAM:
MOV AL, 80 H ; mode 0, all port in output mode
OUT CMD_PORT_55, AL
OUT PORTA_55, AL
OUT PORTB_55, AL
OUT PORTC_55, AL
CALL SAVE_REG
1. AIM: Write an 8086 assembly level program to configure 8253 counter 0 in mode 0,
i.e. interrupt on terminal count. Write a program to Read / load lower 8 bits
and then higher 8 bits of the counter.
3. A suggestive program is provided for your reference. Please debug this program and
performs correct operations
4. PROGRAM;
MOV AL, 07 FH ; Unmask IRQ 7
OUT CMD_PORT_53,
OUT CMD_PORT_53, AL
MOV DL, AL
MOV DH, AL
JMP B_1