Study of 8086
Study of 8086
Study of 8086
2
ADDITION OF TWO 8 BIT NUMBERS
Aim:
To write a program for adding the given two 8- bit number and store the result
in the memory .
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Procedure:
Result:
Aim:
To write an assembly language program to add the given two 16- bit number
with carry and store the result in the memory .
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Result:
Thus the 16-bit addition with carry is performed.
Aim:
To write an assembly language program to subtract the given 8 bit number and
to store the result in the memory .
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Result:
BCD SUBTRACTION
Aim:
To write an assembly language program to subtract the given BCD numbers
and to store the result in the memory.
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Result:
8 – BIT MULTIPLICATION
Aim:
To write a program for multiplying the given two 8- bit number and store the
result in the memory.
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Procedure:
Result:
BCD MULTIPLICATION
Aim:
To write a program for multiplying the given two 8-bit BCD number and
store the result in the memory.
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Result:
EX.NO.8
8 BIT DIVISION
Aim:
To write a program for dividing the given 8- bit number and store the result in
the memory
Specifications:
Microprocessor :Intel 8085
Operating Frequency :3.012MHz
User RAM Area :4100-5FFF
Algorithm:
Program:
ADDRESS HEX LABEL MNEMONICS OPERAND COMMENTS
CODE
4100 3A,00,42 LDA 4200 Load the accumulator with
data in 4200
4103 48 MOV C,A Move the contents of the
accumulator to C Register
4104 3A,01,42 LDA 4201 Load the accumulator with
data in 4201
4107 16,00 MVI D,00 Clear D Register
4109 91 SUB C Subtract the content of the
Loop
C Register to accumulator.
410A 14 INR D
Increment D Register
410B B9 CMP C Compare with C reg
410C D2,09,41 JNC Loop If no carry jump to loop
410F 32,02,42 STA 4202 Store the content of A to
the location 4202
4111 7A MOV A,D Move the contents of the
D Register to the A
4112 32,03,42 STA 4203 Store the content of A to
the location 4203
4115 76 HLT Terminate the program
Procedure:
Result:
EX.NO.9
BLOCK MOVE AND REVERSING AN ARRAY OF ELEMENTS
Aim:
Specification:
Algorithm:
Block Move:
Program:
Block Move:
ADDRESS HEXCODE LABEL MNEMONIC OPERAND COMENTS
4100 0E,05 MVI C,05 Move immediately the data
05H to the register C.
4102 21.00,42 LXI H,4200 Load the HL-register pair
with data.
4105 01,00,43 LXI D,4300 Load the DE-register pair
with data.
4108 7E Loop MOV A,M Move the contents of
memory to the accumulator.
4109 12 STAX D Store the content of the DE
register pair.
410A 23 INX H Increment the HL-register
pair.
410B 13 INX D Increment the DE-register
pair.
410C 0D DCR C Decrement the register-C.
410D C2,08,41 JNZ Loop If no zero jump to the loop.
4110 76 HLT Stop the program.
Procedure:
Block Move and Reversing An Array Of Element:
Result:
Block Move:
Ex.No.10
Aim:
To write an assembly language program to perform ascending order and
descending order.
Specification:
Algoritham:
Program:
Program:
Procedure:
Ascending Order And Descending Order:
Result:
Thus the ascending order and descending order are executed successfully and
the output is verified
Ascending Order:
Descending Order:
TRAFFIC CONTROLLER
Aim:
To write an assembly language program to do traffic signal controller and
store result in memory.
Specification:
Algorithm:
Program:
ADDRESS HEXCODE LABEL MNEMONICS OPERAND COMMENTS
4100 21,00,45 Start LXI H,4500 Load the HL-register pair
4103 OE,OC MVI C,OC Move data OC to C register
4105 7E MOV A,M Move HL contents to
accumulator
4106 D3,OF OUT CNT Count the value
4108 23 INX H Increment HL pair
4109 7E Loop1 MOV A,M Move the content of M to
A-register
410A D3,OC OUT A Out A port
410C 23 INX H Increment HL register pair
410D 7E MOV A,M Move the content of M to
accumulator
410E D3,OD OUT B Out B port
4110 CD,1B,41 CALL Delay Call the Delay
4113 23 INX H Increment HL pair
4114 OD DCR C Decrement the C register
4115 C2,09,41 JNZ LOOP1 If no zero jump to loop
4118 C3,00,41 JMP Start Jump to Start
411B C5 Delay PUSH B Push B register
411C OE,05 MVI C,05 Move data 05 to C register
411E 11,FF,FF Loop3 LXI D,FF,FF Load the DE-pair
4121 1B Loop2 DCX D Decrement D-register
4122 7A MOV A,D Move D-register to
accumulator
4123 B3 ORA E OR the E-register
4124 C2,21,41 JNZ Loop2 If no zero jump to Loop2
4127 OD DCR C Decrement C-register
4128 C2,1E,41 JNZ Loop3 If no zero jump to Loop3
412B C1 POP B Pop the B-register
412C C9 RET Return
Procedure:
Result:
Ex.No.12
STUDY OF 8086 MICROPROCESSOR
Aim:
To study about the operation of 8086 Microprocessor
Specification:
1. Processor, Clock Frequency: Intel 8086/8088CPU at 5/4.77 MHz Clock
2. Memory:
MONITOR EPROM : F000:0000-3FFF for 16K
EPROM EXPANSION : F000:0000-1FFF for 64K
SYSTEM RAM : 0000:1000-3FFF for 16K
SYSTEM RAM EXPANSION : 0000:1000-FFFF for 64K
INTERRUPT VECTORS : 0000:0000-03FF
STACK/DATA AREA : 0000:0400-0FFF
(MONITOR,ASM/DSM,EDITOR)
3. PERIPHERALS:
PARALLEL I/O : 48 I/O lines using two numbers of 8255
SERIAL : one number of RS232C – Serial Interface using 8251A
USART
Timer : 3 Channel 16- Programmable Timer 8253. Channel 0
used as baud rate generator for the Serial Port
4. DISPLAY : 16*2 LCD DISPLAY
5. KEYBOARD : IBM PC-AT KEYBOARD
6. AUDIO CASSETTE INTERFACE WITH FILE MANAGEMENT
7. SYSTEM POWER CONSUMPTION: +5V : 1.5 Amps
8. POWER SUPPLY SPECIFICATIONS:
Model : SMPS-01
Mains : 230V AC at 50Hz
Input : 230V AC at 50H
Output : +5Volts, 3 Amps regulated
+12Volts, 250 mA regulated
-12Volts, 250 mA regulated
+30Volts, 250mA regulated
9. PHYSICAL CHARACTERISTICS:
M -86/88 LCD PCB : 830mm*680mm
10. Bus Expansion:
A new concept of VXT_Bus has been incorporated in M – 86/88 LCD
which facilitates addition of extra hardware on to M-86/88 LCD. An
unlimited number of Add-On Boards can be added to this expansion bus.
All buffered address, data and control signals are brought out to this bus.
The trainer provision for one VXT_Bus connectors.
Syntax:
#IB <Port ADDR ><CR>
# IB - Input Byte command Word
<Port ADDR> - Valid Input address
<CR> - Carriage Return
Output command:
Function:
This command Outputs data to the desired Port.
Syntax:
#OB <Port ADDR ><Data><CR>
#OB - Output Byte command Word
<Port ADDR> - Valid Output address
<Data> - Output Data
<CR> - Carriage Return
RESULT:
Thus, the operation of 8086 microprocessor is studied.