8085 Programming : Block data transfer



8085 Programming




              MVI C, 0AH  ; Initialize counter  




              LXI H, 2200H  ; Initialize source memory pointer  




              LXI D, 2300H  ; Initialize destination memory pointer  




BACK:   MOV A, M  ; Get byte from source memory block  




              STAX D  ; Store byte in the destination memory block  




              INX H  ; Increment source memory pointer  




              INX D  ; Increment destination memory pointer   




              DCR C  ; Decrement counter   




              JNZ BACK  ; If counter  0 repeat  




              HLT ; Terminate program execution  




Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C