![](http://datasheet.mmic.net.cn/380000/-PD784928Y_datasheet_16744934/-PD784928Y_442.png)
442
CHAPTER 7 DESCRIPTION OF INSTRUCTIONS
Move Block Byte
Byte Data Block Transfer
[Instruction format]
MOVBK [TDE +], [WHL + ]
MOVBK [TDE – ], [WHL – ]
[Operation]
(TDE)
←
(WHL), TDE
←
TDE + 1, WHL
←
WHL + 1 C
←
C – 1
End if C = 0
(TDE)
←
(WHL), TDE
←
TDE – 1, WHL
←
WHL – 1 C
←
C – 1
End if C = 0
[Operands]
Mnemonic
Operands
MOVBK
[TDE + ], [WHL + ]
[TDE – ], [WHL – ]
[Flags]
S
Z
AC
P/V
CY
[Description]
The contents of the memory addressed by the WHL register are transferred to the memory addressed by the
TDE register, and the contents of the TDE and WHL registers are incremented/decremented. The contents of
the C register are then decremented, and the above operations are repeated until the contents of the C register
are 0.
If an acknowledgeable interrupt or macro service request is generated during execution of this instruction,
execution of this instruction is interrupted and the interrupt or macro service request is acknowledged. When
an interrupt is acknowledged, if the return address and the contents of the TDE, WHL, and C registers used
by this instruction which have been saved to the stack or to RP2 and R7 are not changed, execution of the
interrupted instruction is resumed upon returning from the interrupt. When a macro service request is
acknowledged, execution of this instruction is resumed after completion of the macro service.
If the transfer source data area and transfer destination data area overlap, the operation is as follows.
– If the minimum address of the transfer source is smaller than the maximum address of the transfer destination,
the respective minimum addresses are used as the initial values for both the TDE and the WHL register, and
MOVBK [TDE + ], [WHL + ] is used.
– If the maximum address of the transfer source is greater than the minimum address of the transfer destination,
the respective maximum addresses are used as the initial values for both the TDE and the WHL register, and
MOVBK [TDE – ], [WHL – ] is used.
MOVBK