Sunday, September 13, 2009

Data transfer from one memory block to other memory block(8085)

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

2 comments:

  1. Hey!!! I have gone through your blog it has got lots of interesting things in it...
    Visit my one..http://www.formakingmoneyonline.blogspot.com

    ReplyDelete
  2. where does that JC LOOP1 takes you to, if cy=1??HELP PLEASE!!

    ReplyDelete