MikroElektronika PIC Microcontrollers PIC16 Specifikace Strana 167

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 266
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 265 266

Komentáře k této Příručce

Žádné komentáře