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
|
Related Programs for Beginners: (Click down)
Count number of one's in a number
Arrange in ascending order
Add contents of two memory locations
Calculate the sum of series of odd numbers