Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

PM0044 Datasheet(PDF) 151 Page - STMicroelectronics

No. de pieza PM0044
Descripción Electrónicos  STM8 CPU programming manual
PDF  162 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0044 Datasheet(HTML) 151 Page - STMicroelectronics

Back Button PM0044 Datasheet HTML 147Page - STMicroelectronics PM0044 Datasheet HTML 148Page - STMicroelectronics PM0044 Datasheet HTML 149Page - STMicroelectronics PM0044 Datasheet HTML 150Page - STMicroelectronics PM0044 Datasheet HTML 151Page - STMicroelectronics PM0044 Datasheet HTML 152Page - STMicroelectronics PM0044 Datasheet HTML 153Page - STMicroelectronics PM0044 Datasheet HTML 154Page - STMicroelectronics PM0044 Datasheet HTML 155Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 151 / 162 page
background image
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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Descarga

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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