Delta-electronics DELTA DUP-B Manual do Utilizador Página 346

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 491
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 345
Chapter 3 Creating and Editing Screens
$1 = NOT $0 Store the result of $1. $0 = F100H, $1 = 0EFFH.
Perform the logical NOT operation on $2, and save the result in $4 (this is an
operation of signed 32-bit data).
$4 = NOT $2 (Signed DW) Store the result of $4. $2 = F100 F100H, $4 = 0EFF 0EFFH.
<< (SHL, Logical Shift-left operation)
Equation
Var1 = Var2 << Var3
Explanation
Shift Var2 (WORD/DWORD) data to left (number of bit is Var3). The result of this
calculation is stored in Var1.
Remark
The calculation result can be stored as WORD and DWORD.
Var1 can be internal memory only. Var2 and Var3 can be internal memory or
constant.
Example
$0 = F100H
Shift-left 4 bits and becomes $1 = 1000H (this is an operation of unsigned 16-bit
data).
Revision May, 2010 3-325
Vista de página 345
1 2 ... 341 342 343 344 345 346 347 348 349 350 351 ... 490 491

Comentários a estes Manuais

Sem comentários