Write a program to Store 8-bit data in memory using microprocessor simulator
Store 8-bit data in memory:-
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 H : “Store 32H in memory location pointed by HL register pair (4000H)”
HLT : “Terminate program execution”
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 H : “Store 32H in memory location pointed by HL register pair (4000H)”
HLT : “Terminate program execution”
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment