Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->MOV

MOV    Move Byte Variable:  Move <destination byte>,<source byte>

The byte variable indicated by the second operand is copied into the location specified by the first operand.  No other register or flag is affected.

Formats:
    
DescriptionMnemonicBytesCycles
    
Move Register to Accumulator:MOV A,Rn11
Move Memory to Accumulator:MOV A,<direct address>21
Move Indirect Address to Accumulator:MOV A,@Ri11
Move Immediate Data to Accumulator:MOV A,#<data>21
Move Accumulator to Register:MOV Rn,A11
Move Memory to Register:MOV Rn,<direct address>22
Move Immediate Data to Register:MOV Rn,#<data>21
Move Accumulator to Memory:MOV <direct address>,A21
Move Register to Memory:MOV <direct address>,Rn22
Move Memory to Memory:MOV <dir addr>,<dir addr>32
Move Indirect address to Memory:MOV <direct address>,@Ri22
Move Immediate Data to Memory:MOV <direct address>,#<data>32
Move Accumulator to Indirect Address:MOV @Ri,A11
Move Memory to Indirect Address:MOV @Ri,<direct address>22
Move Immediate Data to Indirect Address:MOV @Ri,#<data>21
where Ri is R0 or R1 and Rn is R0 - R7.     (MOV A,ACC is not allowed)


MOV    Move Bit Data: Move <destination byte>,<source byte>

The Boolean variable indicated by the second operand is copied into the location specified by the first operand.  One of the operands must be the carry flag, the other may be any directly addressable bit.  No other register or flag is affected.


Formats:
    
DescriptionMnemonicBytesCycles
    
Move Memory Bit into the Carry Flag:MOV C,bit21
Move Carry Flag into Memory Bit:MOV bit,C21


MOV    Data pointer with 16 bit constant


The data pointer is loaded with the with the 16 bit constant indicated.


Assembler Mnemonic:    MOV DPTR,#<data16>

    
Bytes:3
Cycles:2
    
PSW flags:CACF0RS1RS0OVP
N/AN/AN/AN/AN/AN/AN/A

(N/A: Not affected)