Professional Documents
Culture Documents
MICROCONTROLLERS LAB
EXPERIMENTCODES
Aim: To transfer 10 bytes of data stored consecutively starting from memory location
2000h to another block of memory starting from memory location 2100h using:
● Direct addressing
● Indirect addressing (BC-DE pairs & BC-HI pairs)
Using indirect addressing (BC-HL pairs), transfer data stored in memory segment 2000h
to memory segment 2100h 1in reverse order.
APPARATUS : GNUSim8085
Algorithm –
Code:
OUTPUT:
2.ADDITION OF 32bit NUMBERS
CODE:
LDA 2050H Load accumulator from address 2050H
MOV B,A Move data from register A to B
LDA 2050H Load accumulator from address 2052H
ADD B Add A and B in A
STA 5000H Store data at register A at 5000H
CODE:
LOOP1 : ADD B
DCR C
LNZ LOOP1
OUTPUT:
4.AIM: To perform division of two 8 bit numbers X and Y. Verify the result using binary division.
CODE:
STA 3001
OUTPUT: