MikroElektronika PIC Microcontrollers PIC16 Specifikace Strana 170

  • 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 169
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
EXAMPLE 2:
....
[label] IORWF REG,f
Before instruction execution: REG = 0x13,
W = 0x91
After instruction: REG = 0x93,
W = 0x91 Z = 0
MOVF - Move f
Syntax: [label] MOVF f, d
Description: The content of register f is moved to a destination determined by the operand
d. If d = w or d = 0, the content is moved to register W. If d = f or d = 1, the content
remains in register f. Option d = 1 is used to test the content of register f because this
instruction affects the Z flag of the STATUS register.
Operation: (f) -> d
Operand: 0 f 127, d -> [0,1]
Status affected: Z
Number of cycles: 1
EXAMPLE 1:
....
[label] MOVF FSR,w
Before instruction execution: FSR=0xC2
W=0x00
After instruction: W=0xC2
Z = 0
http://www.mikroe.com/en/books/picmcubook/ch9/ (21 of 35)5/3/2009 11:35:12 AM
Zobrazit stránku 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 265 266

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

Žádné komentáře