Monday, April 5, 2010

Statement: A two 16 bit data are stored in consecutive memory location starting from F000H with lower bytes stored first.Write an ALP to copy this data in four consecutive memory location starting from E000H

LXI H,1221H (it can be any number)
LXI D,2211H
SHLD F000H
XCHG
SHLD F002H
XCHG
SHLD E000H
XCHG
SHLD E002H
HLT

No comments:

Post a Comment