Data transfer from one memory block to other memory block.

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.

  • 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

Post a Comment

0 Comments

Close Menu