MikroElektronika PIC Microcontrollers PIC16 Spécifications Page 167

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 266
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 166
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
.....
.....
LAB_01 ..... ; Program continues from here
Before instruction execution: PC = LAB_00 address
After instruction: PC = LAB_01 address
INCF - Increment f
Syntax: [label] INCF f, d
Description: Increment register f by one.
If d = w or d = 0, the result is stored in register W.
If d = f or d = 1, the result is stored in register f.
Operation: (f) + 1 -> d
Operand: 0 f 127, d[0,1]
Status affected: Z
Number of cycles: 1
EXAMPLE 1:
....
[label] INCF REG,w
Before instruction execution: REG = 0x10
W = x, Z = 0
After instruction: REG = 0x10
W = 0x11, Z = 0
EXAMPLE 2:
....
[label] INCF REG,f
http://www.mikroe.com/en/books/picmcubook/ch9/ (18 of 35)5/3/2009 11:35:12 AM
Vue de la page 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 265 266

Commentaires sur ces manuels

Pas de commentaire