Maxim-integrated DS4830 Optical Microcontroller Uživatelský manuál Strana 196

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 227
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 195
DS4830 User’s Guide
196
CMP src Compare Accumulator
Description: Compare for equality between the active accumulator and the least significant byte of the
specified src.
Because the source is limited to 8 bits, the PFX[n] register is used to supply the
high-byte of data for 16 bit sources.
Status Flags: E
Operation: Acc = src: E 1
Acc <> src: E 0
Encoding: 15 0
f111
1000
Ssss
ssss
Example(s): CMP #45h ; Acc = 0145h, E=0
CMP #145h ; PFX[0] register used
; MOVE PFX[0], #01h (smart-prefixing)
; CMP #45h E=1
CPL Complement Acc
Description: Performs a logical bitwise complement (1’s complement) on the active accumulator (Acc or
A[AP]) and returns the result to the active accumulator.
Status Flags: S, Z
Operation: Acc ~Acc
Encoding: 15 0
1000
1010
0001
1010
Example(s): ; Acc = FFFFh, S=1, Z=0
CPL ; Acc 0000h, S=0, Z=1
; Acc = 0990h, S=0, Z=0
CPL ; Acc F66Fh, S=1, Z=0
CPL C Complement Carry Flag
Description: Logically complements the Carry (C) Flag.
Status Flag: C
Operation: C ~C
Encoding: 15 0
1101
1010
0010
1010
Example(s): ; C = 0
CPL C ; C 1
Zobrazit stránku 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 226 227

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

Žádné komentáře