The result of both programs will be the same. In program 1 direct addressing instruction is used, whereas in program 2 indirect addressing instruction is used.

Statement: Store the data byte 32H into memory location 4000H.

Program 1:

MVI A, 52H        : Store 32H in the accumulator
STA 4000H                : Copy accumulator contents at address 4000H
HLT                        : Terminate program execution

Program 2:

LXI H                : Load HL with 4000H
MVI M                : Store 32H in memory location pointed by HL register pair (4000H)
HLT                : Terminate program execution


Home
8085 Forum
8085 Free Projects
8085 Free Programs
8085 Tutorials
8085 details
Interfacing Techniques
Electronic Tutorials
Electronic Projects
Assembler/ IDE
Datasheets
Guest Book
About Me