| 数据搜索系统,热门电子元器件搜索 |
|
PM0044 数据表(PDF) 77 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0044 数据表(HTML) 77 Page - STMicroelectronics |
|
77 / 162 page ![]() PM0044 STM8 instruction set Doc ID 13590 Rev 3 77/162 Syntax ADD A,src e.g. ADD A,#%11001010 Operation A <= A+ src Description The source byte is added to the contents of the accumulator and the result is stored in the accumulator. The source is a memory or data byte. Instruction overview V ⇒ (A7.M7 + M7.R7 + R7.A7) ⊕ (A6.M6 + M6.R6 + R6.A6) Set if the signed operation generates an overflow, cleared otherwise. H ⇒ A3.M3 + M3.R3 + R3.A3 Set if a carry occurred from bit 3 of the result, cleared otherwise. N ⇒ R7 Set if bit 7 of the result is set (negative value), cleared otherwise. Z ⇒ R7.R6.R5.R4.R3.R2.R1.R0 Set if the result is zero (0x00), cleared otherwise. C ⇒ A7.M7 + M7.R7 + R7.A7 Set if a carry occurred from bit 7 of the result, cleared otherwise. Detailed description See also: ADDW, ADC, SUB, SBC, MUL, DIV ADD Addition ADD mnem dst src Affected condition flags VI1 H I0 N Z C ADD A Mem V -H-N Z C dst src Asm cy lgth Op-code(s) ST7 A #byte ADD A,#$55 1 2 AB XX ✗ A shortmem ADD A,$10 1 2 BB XX ✗ A longmem ADD A,$1000 1 3 CB MS LS ✗ A (X) ADD A,(X) 1 1 FB ✗ A (shortoff,X) ADD A,($10,X) 1 2 EB XX ✗ A (longoff,X) ADD A,($1000,X) 1 3 DB MS LS ✗ A (Y) ADD A,(Y) 1 2 90 FB ✗ A (shortoff,Y) ADD A,($10,Y) 1 3 90 EB XX ✗ A (longoff,Y) ADD A,($1000,Y) 1 4 90 DB MS LS ✗ A (shortoff,SP) ADD A,($10,SP) 1 2 1B XX A [shortptr.w] ADD A,[$10.w] 4 3 92 CB XX ✗ A [longptr.w] ADD A,[$1000.w] 4 4 72 CB MS LS A ([shortptr.w],X) ADD A,([$10.w],X) 4 3 92 DB XX ✗ A ([longptr.w],X) ADD A,([$1000.w],X) 4 4 72 DB MS LS A ([shortptr.w],Y) ADD A,([$10.w],Y) 4 3 91 DB XX ✗ |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |