XBANZ pma,*ind{,ARPn}
6-373
Flags and
Modes
None
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
; Copy the contents of Array1 to Array2:
; int32 Array1[N];
; int32 Array2[N];
; for(i=0; i < N; i++)
; Array2[i] = Array1[i];
; This example only works for code located in upper 64K of
; program space:
MOVL XAR2,#Array1 ; XAR2 = pointer to Array1
MOVL XAR3,#Array2 ; XAR3 = pointer to Array2
MOV @AR0,#(N−1) ; Repeat loop N times
NOP *,ARP2 ; Point to XAR2
SETC AMODE ; Full C2XLP address mode compatible
Loop:
MOVL ACC,*++,ARP3 ; ACC = Array1[i], point to XAR3
MOVL *++,ACC,ARP0 ; Array2[i] = ACC, point to XAR0
BANZ Loop,*−−,ARP2 ; Loop if AR[ARP] != 0, AR[ARP]−−,
; point to XAR2