MikroElektronika PIC Microcontrollers PIC16 Especificaciones Pagina 181

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 266
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 180
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
XORLW - Exclusive OR literal with W
Syntax: [label] XORLW k
Description: The content of register W is XOR’ed with the 8-bit literal k . The result is
stored in register W.
Operation: (W) .XOR. k -> W
Operand: 0 k 255
Status affected: Z
Number of cycles: 1
EXAMPLE 1:
....
[label] XORLW 0xAF
Before instruction execution: W = 0xB5 ; 1011 0101 (0xB5)
; 1010 1111 (0xAF)
------------------
After instruction: W = 0x1A ; 0001 1010 (0x1A)
Z = 0
EXAMPLE 2:
Const equ 0x37
[label] XORLW Const
Before instruction execution: W=0xAF ; 1010 1111 (0xAF)
Const = 0x37 ; 0011 0111 (0x37)
-------------------------------
After instruction: W = 0x98 ; 1001 1000 (0x98)
Z = 0
XORWF - Exclusive OR W with f
http://www.mikroe.com/en/books/picmcubook/ch9/ (32 of 35)5/3/2009 11:35:12 AM
Vista de pagina 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 265 266

Comentarios a estos manuales

Sin comentarios