You are on page 1of 3

2.

1

AIM: - To study various DATA TRANSFER instructions
THEORY: -
Data transfer instructions performs the primary function of copying data, from a
register or I/O or memory, hich is ca!!ed the source, to another register or I/O or
memory, hich is ca!!ed the destination"
Data transfer #copy$ instructions can %e used to copy data &
From register to register"
'oad an ( %it num%er in a register"
)eteen memory and register"
)eteen I/O and accumu!ator"
'oad *+ %it num%er in a register pair"

DATA TRANSFER INSTRUCTION SET:-
The fo!!oing notations are used in the description of the instructions"
R , (-%it register #A, ), ., D, E, /, '$
0 , memory register #!ocation$
RS , register source #A, ), ., D, E, /, '$
RD , register destination #A, ), ., D, E, /, '$
R1 , register pair #)., DE, /'$
Sr. No. Instruction No. of
Bytes
Descrition
Oco!e Oer"n!
* 0O2 RD,RS * .opy data from RS to RD"
3 0O2 0,R * .opy the data %yte from
register R into memory !ocation
hose address is stored in /'
register pair"
4 0O2 R,0 * .opy the data %yte from a
memory !ocation hose
address is stored in /' register
pair into a register R"
5 02I R, (-%it 3 'oad (-%it data into a register
R"
6 02I 0, (-%it 3 'oad (-%it data into memory
!ocation hose address is
stored in /' register pair"
+ '7I R1, *+-%it 4 'oad *+ %it of data in register
pair Rp
8 'DA *+-%it 4 .opy the data %yte into the
accumu!ator from the memory
!ocation indicated %y *+-%it
address"
AT0I9A INSTIT:TE OF TE./NO'O;9 < S.IEN.E, RA=>OT
Su#$ect:
Microrocessor "n!
Interf"cin%
Tit!e?
To stu!y !"t" tr"nsfer instructions
E@periment No"A3
DATE?
Re&. No.
*"AA
2.2
( STA *+-%it 4 .opy the data %yte of the
accumu!ator into the memory
!ocation indicated %y *+-%it
address"
B 'DA7 Rp * .opy the data %yte into the
accumu!ator from the memory
!ocation indicated %y a register
pair Rp" #Rp , ). or DE$
*A STA7 Rp * .opy the data %yte from the
accumu!ator into the memory
!ocation indicated %y a register
pair Rp" #Rp , ). or DE$
** '/'D *+-%it 4 .opy the contents of memory
!ocation indicated %y *+-%it
address in register ' < copy the
contents of ne@t memory
!ocation in register /"
*3 S/'D *+-%it 4 Store the contents of register '
in memory !ocation indicated
%y *+-%it address < the
contents of / register are stored
in ne@t consecutive memory
!ocation"
*4 1./' * Store the contents of registers
pair /' into the program
counter"
*5 S1/' * 'oads the contents of register
pair /' into the stacC pointer"
*6 7./; * The contents of register / are
e@changed ith the contents of
register D, < the contents of
register ' are e@changed ith
the contents of register E"
*+ 7T/' * The contents of ' register are
e@changed ith the stacC
!ocation pointed out %y stacC
pointer" the contents of the /
register are e@changed ith the
ne@t stacC !ocation #S1D*$"
*8 IN ( %its 3 Accept data %yte from an i/p
device < p!ace it in the
accumu!ator"
*( O:T ( %its 3 Send data %yte from the
accumu!ator to an o/p device"
No f'"%s "re "ffecte! !ue to !"t" tr"nsfer instructions.
AT0I9A INSTIT:TE OF TE./NO'O;9 < S.IEN.E, RA=>OT
2.3
E(ERCISE
*$ Erite sing!e eFuiva!ent instruction for the fo!!oing programs"
a$ 02I D, FA/ %$ 0O2 A, '
02I E, AA/ STA FAAA/
7./; 0O2 A, /
0O2 0, A STA FAA*/
3$ Erite an assem%!y !anguage program to interchange the data content stored at memory
!ocation FAAA/ and FAA*/"
4$ Erite an assem%!y !anguage program to interchange the *+-%it data stored in register ).
and register DE #ith and ithout 7./; instruction$"
5$ To *+-%it data are stored in consecutive memory !ocation starting from FAAA/ ith
!oer %ytes stored first" Erite an assem%!y !anguage program to copy this data in four
consecutive memory !ocations starting from DAAA/"
6$ Erite an assem%!y !anguage program to !oad register pair ). and DE ith *+-%it of data
FAF*/ and EAE*/ respective!y and copy this data in consecutive memory !ocation
starting ith !oer %ytes first"
+$ Erite and A"'"1" to de!ete the data %yte #i"e" maCe GAA/H$ stored at memory !ocation
hose address is stored at DE register pair"
)r"!e *"#-In-C+"r%e H.O.D.
AT0I9A INSTIT:TE OF TE./NO'O;9 < S.IEN.E, RA=>OT

You might also like