You are on page 1of 6

MICROPROCESSOR AND MICROCONTROLLER

SHRESTHA SINGH
21BRS1686
PROFESSOR – SHOBA S
EXPERIMENT 4 AND 5
EXPERIMENT 4
AIM-Assembly code for code converters in 8086 processor.

PROCEDURE-
1.Take a 16 bit microprocessor attach to the usb cable.
2.Type A press enter.
3.Take starting address as 1000.
4.Give the instructions and end then code with halt.
5.Type GO and press ENTER.
6.Reset it and type SB 2000 stored data and press ENTER.
Result: Input : 0000 : 2000 – 25 25 Output: 0000 : 3000 – 19

OUTPUT-
EXPERIMENT 5 (A)
BCD TO ASCII
SHRESTHA SINGH
21BRS1686

AIM- Write assembly code for 16 bit 8086 microprocessor for the BCD to ASCII.

PROCEDURE –
1) Take a 16-Bit Microprocessor kit and attach USB with Keyboard.
2) Type ‘A’ and press ‘Enter’
3) Type starting address as 1000
4) Start writing the instructions and press ‘Enter’ two times for each
instruction
5) After ending the code, press ‘HLT’ and press ‘Reset’
6) Then type ‘GO 1000’ (1000 being the starting address)
7) Reset it and type SB 2000 and press ‘Enter’

2. BCD to ASCII

Result: Input : SB 2000 – 98 Output: SB 3000 – 39 SB 3001 – 38

OUTPUT-
EXPERIMENT 5(B)
SHRESTHA SINGH
21BRS1686
MICROPROCESSOR AND MICROCONTROLLER

AIM- To write the assembly code for 16 bit microprocessor 8086 for factorial of a number.
PROCEDURE-
1) Take a 16-Bit Microprocessor kit and attach USB with Keyboard.
2) Type ‘A’ and press ‘Enter’
3) Type starting address as 1000
4) Start writing the instructions and press ‘Enter’ two times for each
instruction
5) After ending the code, press ‘HLT’ and press ‘Reset’
6) Then type ‘GO 1000’ (1000 being the starting address)
7) Reset it and type SB 2000 and press ‘Enter

Result: Input : SB 2000 – 04H Output: SB 3000 – 18H

OUTPUT-

You might also like