PRINT Microprocessor Manual
PRINT Microprocessor Manual
PRINT Microprocessor Manual
LABORATORY
Experiment Number: 1
To write an assembly language program to addition of two byte using 8086 and store the
result in memory.
APPARATUS REQUIRED
ALGORITHAM:
Initialize Ax register
Initialize Bx register
Do addition operation
Store in Ax register
PROGRAM:
OUTPUT:
INPUT OUTPUT
800E END
ADDRESS DATA ADDRESS DATA
8500 8520
8501 8521
8502
CC INT 3
8503
2
EC8681(CSE&IT) MICROPROCESSORS AND MICROCONTROLLERS
LABORATORY
RESULT
Experiment Number: 2
To write an assembly language program to subtraction of two byte data using 8086 and
store the result in memory.
APPARATUS REQUIRED
ALGORITHM:
Initialize Ax register
Initialize Bx register
Do subtraction operation
Store in Ax register
PROGRAM:
OUTPUT:
INPUT OUTPUT
8000 ADDRESS
ADDRESS DATA ADDRESS DATA
IN SI AS
8500 8520
8500
8501 8521
8502
BE 00 85 MOV SI,8500
8003 AD LODSW LOAD THE FIRST DATA
8004 89 C3 MOV BX,AX
8006 AD LODSW LOAD THE SECOND DATA
8007 29 D8 SUB BX,AX SUBTRACT TWO DATA
8009 BF 20 85 MOV DI,8520 ADDRESS IN DI AS 8520 FOR
STORING RESULT
800C 89 05 MOV [DI],BX RESULT IN 8520
800E CC INT 3 END
8503
4
EC8681(CSE&IT) MICROPROCESSORS AND MICROCONTROLLERS
LABORATORY
RESULT
5
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8500 8520
8501 8521
8502
3
MULTIPLICATION OF TWO BYTE DATA USING 8086
Date of the experiment :
APPARATUS REQUIRED
Initialize Ax register
Initialize Bx register
Do multiplication operation
Store in Ax register
PROGRAM:
Experiment Number:
8503
7
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8500 8520
8501 8521
8502
RESULT
4
DIVISION USING 8086 Date
of the experiment :
APPARATUS REQUIRED
Initialize Ax register
Initialize Bx register
Do division operation
Store in Ax register
PROGRAM
8
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
9
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8504 8500
8507 8502
RESULT
5
AVERAGE OF AN ARRAY USING 8086 Date
of the experiment :
10
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
APPARATUS REQUIRED
PROGRAM
11
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
9000
9001
9002
9003
9004
9005
12
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
RESULT
6
SUM OF N CONSECUTIVE NUMBERS USING 8086 Date
of the experiment :
APPARATUS REQUIRED
PROGRAM
13
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
8011 89 05 MOV [DI],AX
8013 CC INT 3 END
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8001 8500
14
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
RESULT
7
MOVE A DATA BLOCK USING 8086 Date
of the experiment :
APPARATUS REQUIRED
PROGRAM
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
16
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
RESULT
8
BCD TO HEXADECIMAL CONVERSION USING 8086
Date of the experiment :
17
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OBJECTIVE (AIM) OF THE EXPERIMENT
To write an assembly language program to BCD to Hexadecimal conversion using 8086
and store the result in memory.
APPARATUS REQUIRED
PROGRAM
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8001 8001
RESULT:
18
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
Experiment Number: 9
APPARATUS REQUIRED
PROGRAM
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8001 8001
19
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
RESULT:
20
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number: 10
APPARATUS REQUIRED
PROGRAM
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
8001 8001
RESULT:
21
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number: 11
APPARATUS REQUIRED
Move SI to CL reg
Decrement CL reg
Move data to SI
Decrement CH register
Increment SI register
Move SI to register
Exchange AL to BL register l
PROGRAM
23
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
9000 9000
9001 9001
90029 90029
9003 9003
9004 9004
9005 9005
9006 9006
9007 9007
9008 9008
9009 9009
RESULT:
24
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number: 12
To write an assembly language program to sorting an given array in ascending order using
8086 and store the result in memory.
APPARATUS REQUIRED
ALGORITHM:
Move SI to CL reg
Decrement CL reg
Move data to SI
Decrement CH register
Increment SI register
Move SI to register
Exchange AL to BL register l
25
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Jump if no zero means return
PROGRAM
26
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
9000 9000
9001 9001
90029 90029
9003 9003
9004 9004
9005 9005
9006 9006
9007 9007
9008 9008
9009 9009
RESULT:
27
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
28
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
13
: SEARCHING LARGEST NUMBER USING 8086 Date
of the experiment :
APPARATUS REQUIRED
Move SI to CL register
Decrement CL register
Move data to SI
Decrement CH register
Increment SI register
Move SI to register
Exchange AL to BL register l
29
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
PROGRAM
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
9000 9500
9001
9002
9003
9004
9005
9006
9007
9008
9009
30
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
RESULT:
14
: SEARCHING A SMALLEST NUMBER USING 8086 Date
of the experiment :
APPARATUS REQUIRED
PROGRAM
31
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
9000 8500
9001
90029
9003
9004
9005
9006
9007
9008
9009
32
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
RESULT:
15
: MATRIX ADDITION USING 8086 Date
of the experiment :
APPARATUS REQUIRED
33
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:
PROGRAM
8011 46 INC SI
8012 FE C9 DEC CL
8014 75 F2 JNZ 8008 Loop Continues Until All Elements
Of The Matrix Are Added
8015 CC INT 3 end
34
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA ADDRESS DATA
9000 8500 8500
9001 8501 8501
9 8502 8502
9002
9003 8503 8503
9004 8504 8504
RESULT:
35
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number: 16
APPARATUS REQUIRED
PROGRAM
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
RESULT:
36
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number: 17
To write an assembly language program to move a data block from one location to
another using MASM and store the result in memory.
APPARATUS REQUIRED
PROGRAM
.MODEL SMALL
.DATA
Array1 DW 1111h,2222h,3333h,4444h,5555h Array2 DW 5
DUP (0)
Count DW 0005H
.CODE
MOV AX,@DATA
MOV DS,AX
LEA SI,Array1
LEA DI,Array2
MOV CX,Count
37
NEXT: MOV AX,[SI]
MOV [DI],AX
INC SI INC SI
INC DI
INC DI
LOOP NEXT
MOV AH,4Ch
INT 21h
END
RESULT
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number: 18
Title of
the experiment : STRING MANIPULATION
1) Moving Block Of Data From One Memory Location To Another Memory Location
AIM: To write an alp for transfer block of data from one memory location to another memory
location. APPARATUS:
2.KEYBOARD ----1
PROGRAM:
A) By using MASM: ASSUME CS:
CODE
CODE SEGMENT
REP
MOVSB
INT 03
CODE ENDS
END START
39
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB B)
By using 8086 kit:
MEMORY OP-CODE LABEL MNEMONIC
LOCATION
4000 MOV SI,2000
MOV DI,2008
MOV CX,0008
REP
MOVSB
INT 3
OUTPUT:
Input output
MEMORY Data MEMORY Data
LOCATION LOCATION
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
2) REVERSE OF A DATA:
AIM: To write a alp for reverse of a given string
APPARATUS:
2. KEYBOARD ----1
PROGRAM:
A) By using MASM: ASSUME CS:
CODE
CODE SEGMENT
DEC SI
INC DI
DEC CX
JNZ UP
INT 3
CODE ENDS
END START
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB B)
By using 8086 kit:
MEMORY OP-CODE LABEL MNEMONIC
LOCATION
4000 MOV SI,2000
MOV DI,2008
MOV CX,0008
ADD SI,07
UP MOV AL,[SI]
MOV [DI],AL
DEC SI
INC DI
DEC CX
JNZ UP
INT 3
OUTPUT:
Input output
MEMORY Data MEMORY Data
LOCATION LOCATION
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB ----1 ----1
3) INSERT A BYTE IN A GIVEN STRING
AIM: Write an alp for insert a new byte in a given string. -----1
APPARATUS:
2. KEYBOARD
3. PERSONAL COMPUTER
PROGRAM:
A) By using MASM: ASSUME CS:
CODE
CODE SEGMENT
END START
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB By
using 8086 kit:
Input output
MEMORY Data MEMORY Data
LOCATION LOCATION
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB ----1
4) DELETE A BYTE IN A GIVEN STRING
APPARATUS: KEYBOARD
PERSONAL COMPUTER-----1
1.
2.
3.
PROGRAM:
B) By using MASM: ASSUME CS:
CODE
CODE SEGMENT
END START
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB C)
By using 8086 kit:
MEMORY OP-CODE LABEL MNEMONIC
LOCATION
4000 MOV SI,2000
MOV DI,3000
MOV BX,5000
MOV CX,0005
CLD
L1 MOV AL,[SI]
CMP AL,[BX]
JZ L2
MOVSB
LOOP L1
JMP L3
L2 INC SI
DEC CX
REP
MOVSB
L3 INT 3
OUTPUT:
Input output
MEMORY Data MEMORY Data
LOCATION LOCATION
RESULT
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:19
Title of the experiment : PASSWORD CHECKING, PRINT RAM SIZE AND SYSTEM DATE
APPARATUS REQIURED:
1. MASM ----1
2. KEYBOARD ----1
PROGRAM:
;PASSWORD IS MASM1234
DATA SEGMENT
PASSWORD DB 'MASM1234'
NEW DB 10,13,'$'
INST DB 10 DUP(0)
DATA ENDS
MOV AX,DATA
MOV DS,AX
LEA DX,MSG1
MOV AH,09H
55
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
INT 21H MOV SI,00 UP1:
MOV AH,08H
INT 21H
CMP AL,0DH
JE DOWN
MOV [INST+SI],AL
MOV DL,'*'
MOV AH,02H
INT 21H
INC SI
MOV AL,[INST+BX]
MOV DL,[PASSWORD+BX]
CMP AL,DL
JNE FAIL
INC BX
LOOP CHECK
LEA DX,MSG2
MOV AH,09H
LEA DX,MSG3
CODE ENDS
END START
END
56
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
.MODEL small
.CODE
Today PROC
MOV DS, AX
MOV AH, 09h ; 09h call to display string (DX > AH > DOS)
MOV CL, DL
; Quotient will be in AX
57
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
; Remainder will be in DX
; Quotient will be in AX
; Remainder will be in DX
58
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
MOV CX, 0 ; Initialize the counter MOV
BX, 10 ; Set up the divisor divided:
; Quotient will be in AX
; Remainder will be in DX
MVI A, 24H
MVI A, 12H
MVI A, 09H
MVI A, 12H
OUT PA: Send data on port A to glow Y1 and Y2 OUT PB: Send
data on port B to glow Y3 and Y4 MVI C, 0AH: Load multiplier
count (10ıο) for delay
JMP START
Delay Subroutine:
MOV A, D
JNZ DELAY
Ram size:
ORG 0000H
CLR PSW3
CLR PSW4
CPL A
ADD A, #01H
MOV A,R3
61
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
AGAIN: SJMP AGAIN
62
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
RESULT:
Experiment Number:20
APPARATUS REQIURED:
1. MASM ----1
2. KEYBOARD ----1
PROGRAM:
.MODEL SMALL
.DATA
.CODE
MOV DX,@DATA
MOV DS,DX
LEA DX,MSGIN
MOV AH,09H
INT 21H
IN1:
MOV AH,01H
INT 21H
CMP AL,0DH ; JE NXT
63
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
SUB AL,30H
MOV DL,AL
MOV AX,BX
MOV CL,0AH
MUL CL
MOV BX,AX
AND DX,00FFH
ADD BX,DX
MOV DELAYTIME,BX
LOOP IN1
MOV DL,10
MOV AH,02H
INT 21H
LEA SI,MSG1
Delay:
MOV AH, 0
INT 1Ah
SUB DX, BX
CMP DI, DX
JA Delay
LOOP LP
END
64
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
RESULT:
Experiment Number:21
To write an assembly language program to add two 8- bit numbers using 8051.
APPARATUS REQUIRED
PROGRAM:
OUTPUT:
INPUT OUTPUT
65
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
ADDRESS DATA ADDRESS DATA
4101
4104
4500
RESULT:
66
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:22
Title of the experiment :8–BIT SUBTRACTION USING 8051
To write an assembly language program to subtract two8- bit numbers using 8051.
APPARATUS REQUIRED
PROGRAM:
OUTPUT:
INPUT OUTPUT
RESULT:
Experiment Number:23
67
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
APPARATUS REQUIRED
PROGRAM:
OUTPUT:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
4101 4500
4104 4501
RESULT:
Experiment Number:24
APPARATUS REQUIRED
68
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
2 Keyboard 1
PROGRAM:
OUTPUT:
INPUT OUTPUT
69
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:25
APPARATUS REQUIRED
PROGRAM
2
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:26
To write an assembly language program for traffic light control using 8086.
APPARATUS REQUIRED
PROGRAM
3
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
951E B0 AA MOV AL,AA
9520 EE OUT DX,AL
9521 E8 31 00 CALL DELAY2
9524 BA 20 FF MOV DX,FF20
9527 B0 11 MOV AL,11
9529 EE OUT DX,AL
952A BA 22 FF MOV DX,FF22
952D B0 CC MOC AL,CL
952F EE OUT DX,AL
9530 E8 2F 00 CALL DELAY1
9533 BA 20 FF MOV DX,FF20
9536 B0 AA MOV AL,AA
9538 EE OUT DX,AL
9539 BA 22 FF MOV DX,FF22
953C B0 AA MOV AL,AA
953E EE OUT DX,AL
953F E8 31 00 CALL DELAY2
9542 EB C1 JMP LOOP1
9544 BB 0F FF DELAY 1 MOV BX,0FFF
9547 B0 FF LOOP2 MOV AL,FF
9549 90 LOOP3 NOP
954A 90 NOP
954B 90 NOP
954C 90 NOP
954D FE C8 DEC AL
954F 75 F8 JNZ LOOP3
9551 4B DEC BX
9552 75 F3 JNZ LOOP2
9554 C3 RET
9555 BB 10 00 DELAY2 MOV BX,1000
9558 B0 FF LOOP4 MOV AL,FF
955A 90 LOOP5 NOP
955B 90 NOP
955C 90 NOP
955D 90 NOP
955E FE C8 DEC AL
9560 75 F8 JNZ LOOP5
9562 4B DEC BX
9563 75 F3 JNZ LOOP4
8015 CC INT 3
4
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Experiment Number:27
To write an assembly language program for stepper motor control using 8086.
APPARATUS REQUIRED
PROCEDURE
1. Connect the 5V supply to the trainer kit and stepper motor chord.
2. Connect the +12V supply to the power bit wire(yellow color ) in the chord.
3. Connect the corresponding grounds.
4. Connect the 26-pin FRC from the kit to the chord.
5. Switch on the power supply.
6. Assemble the program and execute it.
7. The stepper motor will start rotating either in clockwise or anticlockwise direction based
in the order of the coil excitation.
8. Switch off the power supply and remove all the connections.
5
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
PROGRAM
6
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
RESULT
Experiment Number:28
To write an assembly language program for ADC and DAC interface using 8086.
APPARATUS REQUIRED
1).ADC INTERFACE:
PROCEDURE
1. Connect the 9 pin D type connector from the ADC module to the kit.
2. Connect the 26-pin connector from the ADC module to kit.
3. Connect the keyboard to the kit.
4. Switch on the power supply.
7
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
5. Assemble your program.
6. Vary the potentiometer in the ADC card(0 to 5V).
7. Execute it and view the output count in the accumulator, which will be displayed in the
LCD display.
8. Vary the pot , execute the program and measure the count value in the accumulator.
9. Take number of readings and if required draw the graph, ADC input volts Vs counts to
check the linearity.
10. After enough of reading have been taken reduce the pot to its minimum value.
11. Switch off the power supply and remove all the connections.
PROGRAM
PROCEDURE
1. Connect the 9 pin D type connector from the DAC module to the kit.
2. Connect the 26-pin connector from the DAC module to kit.
3. Connect the keyboard to the kit.
8
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
4. Switch on the power supply.
5. Assemble your program.
6. Execute it and measure the output voltage/ waveform at the front panel of the DAC
module.
7. Vary the digital count, execute the program and measure the output analog voltage.
8. Take number of readings and if required draw the graph, DAC input count Vs output
voltage to check the linearity.
9. Switch off the power supply and remove all the connection.
PROGRAM
ADDRESS OPCODE LABEL MNEMONICS COMMENTS
2000 BA 26 FF MOV DX,FF26
2003 B0 80 MOV AL,80
2005 EE OUT DX,AL
2006 BA 22 FF LOOP 1 MOV DX,FF22
2009 B0 FF MOV AL,FF
200B EE OUT DX,AL
200C CC INT 3
RESULT
Experiment Number:29
To write an assembly language program for keyboard and display interface using 8086.
APPARATUS REQUIRED
10
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
8011 B0 00 MOV AL,00
8013 EE LOOP 1 OUT DX,AL
8014 FE CC DEC AH
8016 75 FB JNZ 8013(LOOP 1)
8018 BA 50 FF MOV DX,FF50
801B B1 06 MOV CL,06
801D BB 00 20 MOV BX,2000
8020 8A 07 LOOP 2 MOV AL,[BX]
8022 EE OUT DX,AL
8023 43 INC BX
8024 FE C9 DEC CL
8026 75 F8 JNZ 8020(LOOP 2)
8028 CC INT 3
RESULT
Experiment Number:30
To write an assembly language program for Serial Communication interface using 8086.
11
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
APPARATUS REQUIRED
PROGRAM
MEMORY OPCODE PNEMONICS
111A EC IN AL,DX
111D 74 F8 JZ CHECK
1122 EC IN AL,DX
1125 46 INC SI
12
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
112A FE C9 DEC CL
112E CD 02 INT 3
1130 CD 02 INT 3
ADDRESS DATA
1500 48H,45H,4CH,4CH
1504 4FH,2DH,38H,30H
1508 38H,35H,0AH,0DH
150C END
RESULT
Experiment Number:31
13
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
Title of the experiment :DIGITAL CLOCK USING 8086
PROGRAM:
ASSUME CS: CODE
CODE SEGMENT
.MODEL SMALL
.STACK 100H
.DATA
TIME_BUF DB ‟00:00:00$‟
CODE
MAIN PROC
MOV AX,@DATA MOV DS, AX
LEA BX, TIME_BUF
CALL GET_TIME
LEA DX, TIME_BUF
MOV AH, 09H
INT 21H
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
RESULT
14
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
1. Mention the general purpose registers in 8085 microprocessor.
2. What is the function of accumulator?
3. What are the flag registers available in 8085?
4. What is buffer?
5. Mention the groups of 8085 pin signals.
6. Explain the function of program counter.
7. What is the function of SP?
8. What is memory?
9. What are the types of memory?
10. What is memory word?
11. What are the programming registers in 8085?
12. Mention the types of 8085 instruction set.
13. Write any two data transfer instructions of 8085.
14. What is memory address?
15. What is Opcode?
16. What is Operand?
17. What is stack?
18. How many memory locations can be addressed by a microprocessor with 14 address lines?
19. How many address lines are necessary to address two megabytes (2048K) of memory?
20. How many address lines are necessary to address two megabytes(2048K) of memory?
21. What is the purpose of branch instructions in 8085 microprocessor?
22. What is the use of programming technique
23. How many memory locations are available in 8086 microprocessor?
24. What are the flags available in 8086 microprocessor?
25. What are the general purpose registers in 8086?
26. What are the functional units in 8086?
27. What is the purpose of BIU?
28. What is the purpose of EU?
29. What is the purpose of segment register?
30. What are the segment registers in 8086?
31. What is the function of IP?
32. What is the function of control unit?
33. What is the use of base pointer register?
34. Mention the index registers of 8086.
35. What is effective address?
36. What are the assembly language program development steps?
37. What are the instructions types of 8086 mp?
38. Write any two data transfer instructions?
39. Write any two arithmetic instructions.
40. Write any two bit manipulation instructions.
41. Write any two string manipulation instructions.
42. Define CALL and RET.
43. Write any two processor control instructions.
44. Mention any four initialization list in the 8086 program.
45. What are the assembly language program development tools?
46. What is an assembler directive?
47. Define SEGEMNT and ENDS.
48. Define EQU and DB directive.
49. What is editor?
50. Define assembler.
51. Define Linker.
52. What is locator?
53. What is debugger?
15
IT6411 & CS6412 MICROPROCESSOR & MICROCONTROLLER LAB
54. What is emulator?
55. What are the advantages of segment registers?
56. Define the trap flag.
57. What is effective address?
58. What is physical address?
59. What is operand?
60. What are the types of addressing modes?
61. Define register addressing mode.
62. What is the purpose of register addressing mode?
63. What is immediate addressing mode?
64. Define direct addressing mode.
65. Define register indirect addressing mode.
66. What is index addressing mode?
67. What is base index addressing mode?
68. What is the use of CMP instruction?
69. Mention the two operation modes of 8086 processor.
70. What is minimum mode?
71. What is maximum mode?
72. What is machine cycle?
73. What is instructions cycle?
74. What are the minimum mode signals?
75. What are the maximum mode signals?
76. What is the purpose of INTR pin?
77. What is the function of BHE/S7 pin?
78. How minimum mode or maximum mode is is selected?
79. What are the two modes of 8086 and how do you configure 8086 to work in these modes?
80. How do you classify the programmed I/O data transfer scheme?
81. Give the function of the following pins-Ready, ALE.
82. What is a machine cycle initiated? How many T states does each machine cycle contain in 8086?
83. What do you understand by handshaking?
84. Explain real mode and protected mode of operations?
85. Which signals are used by 8086 microprocessor to specify the current segment portion of the
address referred?
86. Can the 8086 microprocessor operate on more than one instruction at a time? If so, explain how it
is done.
87. Why word type of data has to be stored starting from an even address in 8086?
88. Mention the function of RQ/GT.
89. What are the display modes supported by the 8279 chip?
90. Name any two coprocessors and their use.
91. Give the format of program clock word of 8279 and mention its purpose.
92. Mention any two coprocessors and their use.
93. What is 2 key lockout and n key rollover?
94. Name the two types of CRT display systems.
95. What do you mean by leading edge and trailing edge problems in hexadecimal keyboards?
96. State any two main functions of a CRT controller.
16