Renesas Renasas Single-Chip Microcomputer SH7086 Manual de usuario Pagina 152

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 308
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 151
134
Chapter 3 Functions
3.2 Functions
eXCHanGe
Exchange
[ Flag Change ]
[ Description Example ]
[ Function ]
[ Selectable src/dest ]
XCHG XCHG
[ Syntax ]
XCHG.size src,dest
This instruction exchanges contents between
src
and
dest
.
If
dest
is an A0 or A1 when the size specifier (.size) you selected is (.B), 16 bits of zero- expanded
src
data are placed in the A0 or A1 and the 8 low-order bits of the A0 or A1 are placed in
src
.
src dest
R0L/R0 R0H/R1 R1L/R2 R1H/R3 R0L/R0 R0H/R1 R1L/R2 R1H/R3
A0/A0 A1/A1 [A0] [A1] A0/A0 A1/A1 [A0] [A1]
dsp:8[A0] dsp:8[A1] dsp:8[SB] dsp:8[FB] dsp:8[A0] dsp:8[A1] dsp:8[SB] dsp:8[FB]
dsp:16[A0] dsp:16[A1] dsp:16[SB] abs16 dsp:16[A0] dsp:16[A1] dsp:16[SB] abs16
dsp:20[A0] dsp:20[A1] abs20 #IMM dsp:20[A0] dsp:20[A1] abs20
R2R0 R3R1 A1A0 [A1A0] R2R0 R3R1 A1A0
[ Related Instructions ] MOV,LDE,STE
B , W
[ Operation ]
dest src
UIOBSZDC
[ Instruction Code/Number of Cycles ]
Page=
244
Flag
Change
XCHG.B R0L,A0 ; A0s 8 low-order bits and R0Ls zero-expanded value are exchanged.
XCHG.W R0,A1
XCHG.B R0L,[A0]
Vista de pagina 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 307 308

Comentarios a estos manuales

Sin comentarios