| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
PM0044 Datasheet(PDF) 151 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0044 Datasheet(HTML) 151 Page - STMicroelectronics |
|
151 / 162 page ![]() PM0044 STM8 instruction set Doc ID 13590 Rev 3 151/162 Syntax SUB A,src e.g. SUB A,#%11001010 Operation A <= A- src Description The source byte is subtracted from the contents of the accumulator/SP and the result is stored in the accumulator/SP. The source is a memory or data byte. Instruction overview V ⇒ (A7.M7 + A7.R7 + A7.M7.R7) ⊕ (A6.M6 + A6.R6 + A6.M6.R6) Set if the signed operation generates an overflow, 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 + A7.R7 + A7.M7.R7 Set if a borrow request occurred from bit 7, cleared otherwise. Detailed description See also: SUBW, ADD, ADC, SBC, MUL SUB Subtraction SUB mnem dst src Affected condition flags VI1 H I0 N Z C SUB A Mem V --- N Z C SUB SP Imm - --- -- - dst src Asm cy lgth Op-code(s) ST7 A #byte SUB A,#$55 1 2 A0 XX ✗ A shortmem SUB A,$10 1 2 B0 XX ✗ A longmem SUB A,$1000 1 3 C0 MS LS ✗ A (X) SUB A,(X) 1 1 F0 ✗ A (shortoff,X) SUB A,($10,X) 1 2 E0 XX ✗ A (longoff,X) SUB A,($1000,X) 1 3 D0 MS LS ✗ A (Y) SUB A,(Y) 1 2 90 F0 ✗ A (shortoff,Y) SUB A,($10,Y) 1 3 90 E0 XX ✗ A (longoff,Y) SUB A,($1000,Y) 1 4 90 D0 MS LS ✗ A (shortoff,SP) SUB A,($10,SP) 1 2 10 XX A [shortptr.w] SUB A,[$10.w] 4 3 92 C0 XX ✗ A [longptr.w] SUB A,[$1000.w] 4 4 72 C0 MS LS A ([shortptr.w],X) SUB A,([$10.w],X) 4 3 92 D0 XX ✗ A ([longptr.w],X) SUB A,([$1000.w],X) 44 72 D0 MS LS A ([shortptr.w],Y) SUB A,([$10.w],Y) 4 3 91 D0 XX ✗ SP #byte SUB SP,#$9 1 2 52 XX |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |