Delta-electronics DELTA DUP-B Manual de usuario Pagina 358

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 491
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 357
Chapter 3 Creating and Editing Screens
SWAP (Swap High-Byte and Low-Byte Data)
Equation
SWAP (Var1, Var2, Var3)
Explanation
Swap high-byte and low-byte of Var3 number of words starting at Var2 and save it in
memory starting at Var1.
Remark
The calculation result can be stored as unsigned WORD.
Var1 and Var2 can be internal memory only. Var3 can be internal memory or
constant.
Example
Swap the high-byte and low-byte of $11 and store the result in $2 (this is an
operation of unsigned 16-bit data).
If $11 = 1234H, after executing SWAP command, $2 = 3412H.
XCHG (Exchange Data)
Equation
XCHG (Var1, Var2, Var3)
Explanation
Exchange Var3 number of words of data starting at Var2 with the same number of
words starting at Var1.
Remark
The calculation result can be stored as unsigned WORD.
Var1 and Var2 can be internal memory only. Var3 can be internal memory or
constant.
Revision May, 2010 3-337
Vista de pagina 357
1 2 ... 353 354 355 356 357 358 359 360 361 362 363 ... 490 491

Comentarios a estos manuales

Sin comentarios