MOVB loc16, AX.MSB
6-199
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
; Store the 32-bit contents of the ACC into the
; 32-bit contents of ”Var32” location in reverse byte order:
; Before operation: ACC = B3 | B2 | B1 | B0
; After operation: Var32 = B0 | B1 | B2 | B3
MOVL XAR2,#Var32 ; Load XAR2 with address of ”Var32”
MOVB *+XAR2[0],AH.MSB ; Var32(B0) = ACC(B3)
MOVB *+XAR2[1],AH.LSB ; Var32(B1) = ACC(B2)
MOVB *+XAR2[2],AL.MSB ; Var32(B2) = ACC(B1)
MOVB *+XAR2[3],AL.LSB ; Var32(B3) = ACC(B0)