Statement: Transfer ten bytes of data from one memory to another memory block. Source memory block starts from memory location 2200H where as destination memory block starts from memory location 2300H
Source Program:
LXI H, 4150 : Initialize memory pointer
MVI B, 08 : count for 8-bit
MVI A, 54
LOOP : RRC
JC LOOP1
MVI M, 00 : store zero it no carry
JMP COMMON
LOOP2: MVI M, 01 : store one if there is a carry
COMMON: INX H
DCR B : check for carry
JNZ LOOP
HLT : Terminate the program
Sunday, September 13, 2009
Subscribe to:
Post Comments (Atom)
Hey!!! I have gone through your blog it has got lots of interesting things in it...
ReplyDeleteVisit my one..http://www.formakingmoneyonline.blogspot.com
where does that JC LOOP1 takes you to, if cy=1??HELP PLEASE!!
ReplyDelete