Professional Documents
Culture Documents
Aim: Write a program to find the sum of squares of the ‘n’ numbers.
Procedure:
1.Enter the program in 8086 micro processors kit in .A mode at ------- location.
2.Enter the input in .S(MD or MP for micro controller) mode at ------ location.
3.Execute the program using .G enter, after that give program starting address.
4.note down the ouput.
RESULT:
Viva questions:
1.Define Microprocessor?
2. What is the use of addressing modes?
3. Write the difference between 8085 and 8086.
4. What is INT0 instruction?
5.What is MOV,PUSH&POP instruction’s?
2. ARITHMETIC MEAN OF ‘N’ NUMBERS & PACKED BCD TO UNPACKED
BCD
INPUT: 4000-10
4001-01
4002-02
4003-03
4004-04
4005-05
4006-06
4007-07
4008-08
4009-09
400A-0A
400B-0B
400C-0C
400D-0D
400E-0E
400F-0F
4010-10
DATA SEGMENT
BCD DB 35H
UNBCD DB ‘00’
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
Viva questions:
1. What is MASM?
2. What is the purpose of ASSUME directive?
3. What is the use of DS and ES registers of 8086.
4. What are the Arithmetic instructions?
5. What is CMP instruction What it performs?
3.LENGTH OF STRING, MOVING OF STRING ONE LOCATION TO
ANOTHER LOCATION, COMPARISION OF STRING
DATA SEGMENT
STR1 DB "THE KING","$"
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
CODE ENDS
END START
Procedure:
1.Enter the program in Computer and save as file name.asm
2.for Execution, Press alt F, then quit. Then type
(i) TASM file name.asm, press enter
(ii) TLINK file name.obj, press enter
(iii) TD file name.exe,enter
3.After that directly press F9 for the results.
4.Note down the results.
Aim: To move the string from one location to another location.
DATA SEGMENT
STR1 DB "RVRJC"
STR2 DB 05 DUP(0)
COUNT EQU 05
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
Procedure:
1.Enter the program in Computer and save as file name.asm
2.for Execution, Press alt F, then quit. Then type
(i) TASM file name.asm, press enter
(ii) TLINK file name.obj, press enter
(iii) TD file name.exe,enter
3.After that directly press F9 for the results.
4.Note down the results.
Aim: To perform the comparison of two strings.
DATA SEGMENT
NAME1 DB "ASSEMBLERS"
NAME2 DB "ASSEMBLERS"
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
LP: INT 03
CODE ENDS
END START
Procedure:
1.Enter the program in Computer and save as file name.asm
2.for Execution, Press alt F, then quit. Then type
(i) TASM file name.asm, press enter
(ii) TLINK file name.obj, press enter
(iii) TD file name.exe,enter
3.After that directly press F9 for the results.
4.Note down the results.
Viva questions:
1. How do you calculate physical address in 8086?
2. List the string instructions 0f 8086?
3. Why memory segmentation required in 8086 micro processor?
4. Write the machine code of MOV AX,BX.
5. What is LOOP instruction?
4. ADDITION OF TWO NUMBERS USING PROCEDURES
DATA SEGMENT
A DB 09H
B DB 06H
C DB 00H
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AL,A
MOV BL,B
CALL SUM
SUM PROC NEAR
ADD AL,BL
MOV C,AL
SUM ENDP
INT 03H
CODE ENDS
END START
Procedure:
NEAR PROCEDURE
1.Enter the program in Computer and save as file name.asm
2.for Execution, Press alt F, then quit. Then type
(i)TASM file name.asm, press enter
(ii) TLINKfile name.obj, press enter
(iii) TD file name.exe,enter
3.After that directly press F9 for the results.
4.Note down the results.
Procedure:
FAR PROCEDURE
1.Enter the program in Computer in two separate files and save as file name1.asm
and file name2.asm
2.for Execution, Press alt F, then quit. Then type
(i) TASM file name1.asm, press enter
TASM filename2.asm press enter
(ii) TLINK file name1+file name2.obj, press enter
(iii) TD file name1.exe,enter
3.After that directly press F9 for the results.
4.Note down the results
Viva questions:
1. What is the difference between procedure and macro?
2. What is the difference between CALL and INT instruction?
3. What will be the context of stack pointer (SP) after a PUSH operation andafter a POP
operation?
4. What is the difference between near and far procedures.
5. What are the different types of call instruction used in this procedure?
5.SORTING OF NUMBERS IN ASENDING & DECENCING ORDER
Procedure :
1.Enter the program in 8086 micro processors kit in .A mode at ------- location.
2.Enter the input in .S mode at ------ location.
3.Execute the program using .G enter, after that give program starting address.
4.note down the ouput. In .s mode at location ----.
RESULT:
INPUT: 4000-05
4001-67
4002-78
4003-34
4004-45
4005-80
OUTPUT: 4000-05
4001-34
4002-45
4003-67
4004-78
4005-80
Aim: Write a program to sort the ‘n’ numbers in descending order
Procedure :
1.Enter the program in 8086 micro processors kit in .A mode at ------- location.
2.Enter the input in .S mode at ------ location.
3.Execute the program using .G enter, after that give program starting address.
4.note down the ouput.in .s mode at location ------
RESULT:
INPUT: 4000-05
4001-67
4002-78
4003-34
4004-45
4005-80
OUTPUT: 4000-05
4001-80
4002-78
4003-67
4004-45
4005-34
Viva questions:
1. What is CLD instruction?
2. What is XCHG instruction?
3. What is the other instruction used for LEA instruction?
4. Write some of the conditional and unconditional JMP instruction’s?
5. What is the register used for count?
6 SEPERATION OF THE POSITIVE, NEGETIVE AND ZERO NUMBERS
Aim: To determine the number of positive, negative and zero numbers in a given array.
DATA SEGMENT
ARRAY DW 10H,20H,-05H,23H,00H,12H,-12H,-07H,20H
NP DB (?)
NN DB (?)
NZ DB (?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
L2: INC AH
JMP END1
L3: INC DL
Viva questions:
1. Define Interrupt.
2. What are the priorities of various 8086 Interrupts?
3. What is an Interrupt vector table?
4. When interrupt is executed what about the stack pointer and trap flag?
5. What are the different types of interrupts.
7. KEYBOARD INTERFACING USING 8086 MICRO PROCESSOR
Viva questions:
1. Explain any three assembler directives.
2. Explain the control word format of 8255
3. Explain about IN instruction.
4. Explain about OUT instruction.
5. What are the methods of interfacing I/o devices.
8. DUAL DAC INTERFACE USING 8086 MICRO PROCESSOR
Aim: To interface the dual digital to analog converter with 8086 micro processor.
Viva questions:
1. Define the term resolution w.r.t to D/A converters.
2. Mention different types of A/D converters.
3. What is interfacing?
4. Explain about the i/o mapped interfacing.
5. What is the use of MRDC and MRTC signals.
9. STEPPER MOTOR INTERFACE USING 8086 MICRO PROCESSOR
Viva questions:
1. Explain the steps in interfacing an i/o device.
2. What is the use of RESET pin in case of interfacing.
3. In 8255 what is the another name for mode1.
4. Explain the salient features of mode 2 of 8255.
5. what is IBF.
10. MULTIPLICATION OF TWO NUMBERS USING 8051 MICRO
CONTROLLER
Aim: To perform the multiplication of two numbers using 8051 micro processor.
Apparatus: 8051 Micro controller trainer.
Result:
9000 – 02
9001 – 03
9002 – 00
9003 – 06
Viva questions:
1. What are the interrupts of 8051 micro controller.
2. Explain the Programme status word of 8051 micro controller.
3. What is the use of B register in 8051 micro controller.
4. What is DPTR in 8051 micro controller.
5. Explain the addressing modes in 8051 micro controller.
Procedure for Kit:
1.Enter the program in 8086 micro processors kit in .A mode at ------- location.
2.Enter the input in .S(MD or MP for micro controller) mode at ------ location.
3.Execute the program using .G enter, after that give program starting address.
4.note down the ouput.
Result: