
120
3.2 Functions
Chapter 3 Functions
String MOVe Backward
Transfer string backward
[ Syntax ]
SMOVB.size
[ Description Example ]
SMOVB.B
[ Related Instructions ] SMOVF,SSTR
SMOVB SMOVB
B , W
[ Operation ]
*1
Flag
Change
UIOBSZDC
232
[ Instruction Code/Number of Cycles ]
Page=
[ Flag Change ]
[ Function ]
• This instruction transfers string in successively address decrementing direction from the source ad-
dress indicated by 20 bits to the destination address indicated by 16 bits.
• Set the 4 high-order bits of the source address in R1H, the 16 low-order bits of the source address in
A0, the destination address in A1, and the transfer count in R3.
• The A0 or A1 when the instruction is completed contains the next address of the last-read data.
• If an interrupt request is received during instruction execution, the interrupt is acknowledged after one
data transfer is completed.
*1 If you set a value 0 in R3, this instruction is ingored.
*2 If A0 underflows, the content of R1H is decremented by 1.
When size specifier (.size) is (.B)
Repeat
M(A1) M(2
16
R1H + A0)
A0
*2
A0 – 1
A1 A1 – 1
R3 R3 – 1
Until R3 = 0
When size specifier (.size) is (.W)
Repeat
M(A1) M(2
16
R1H + A0)
A0
*2
A0 – 2
A1 A1 – 2
R3 R3 – 1
Until R3 = 0
Comentarios a estos manuales