Maxim-integrated MAXQ7666 Uživatelský manuál Strana 342

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 386
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 341
MAXQ7665/MAXQ7666 Users Guide
14-5
ADD/ADDC
src
Add/Add with Carry
Description: The ADD instruction sums the active accumulator (Acc or A[AP]) and the specified src data and stores the result
back to the active accumulator. The ADDC instruction additionally includes the Carry (C) Status Flag in the sum-
mation. For the complete list of src specifiers, reference the MOVE instruction. The MAXQ7665/MAXQ7666 may use
the PFX[n] register to supply the high byte of data for 8-bit sources.
Status Flags: C, S, Z, OV
ADD Operation: Acc Acc + src
Encoding: 15 0
Example(s): ;Acc = 2345h for each example
ADD A[3] ; A[3]=FF0Fh
; Acc =2254h,C=1, Z=0, S=0, OV=0
ADD #0C0h ; Acc =2405h,C=0, Z=0, S=0, OV=0
ADD A[4] ; A[4]=C000h
; Acc = E345h, C=0, Z=0, S=1, OV=0
ADD A[5] ; A[5]=6789h
; Acc = 8ACEh, C=0, Z=0, S=1, OV=0
ADDC Operation: Acc Acc + C + src
Encoding: 15 0
Example(s): ; Acc = 2345h for each example
ADDC A[3] ; A[3] = DCBAh, C=1
; Acc = 0000h, C=1, Z=1, S=0, OV=0
ADDC @DP[0]-- ; @DP[0] = 00EEh, C=1
; Acc = 2434h, C=0, Z=0, S=0, OV=0
Special Notes: The active accumulator (Acc) is not allowed as the src for these operations.
f100 1010 ssss ssss
f110 1010 ssss ssss
Maxim Integrated
Zobrazit stránku 341
1 2 ... 337 338 339 340 341 342 343 344 345 346 347 ... 385 386

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

Žádné komentáře