參數(shù)資料
型號: S3C9658XX-SH
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO16
封裝: SOP-16
文件頁數(shù): 8/206頁
文件大?。?/td> 869K
代理商: S3C9658XX-SH
第1頁第2頁第3頁第4頁第5頁第6頁第7頁當(dāng)前第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頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁
S3C9654/C9658/P9658
SAM88RCRI INSTRUCTION SET
6-47
SUB — Subtract
SUB
dst,src
Operation:
dst ¨ dst – src
The source operand is subtracted from the destination operand and the result is stored in the
destination. The contents of the source are unaffected. Subtraction is performed by adding the
two's complement of the source operand to the destination operand.
Flags:
C: Set if a "borrow" occurred; cleared otherwise.
Z: Set if the result is "0"; cleared otherwise.
S: Set if the result is negative; cleared otherwise.
V: Set if arithmetic overflow occurred, that is, if the operands were of opposite signs and the sign
of the result is of the same as the sign of the source operand; cleared otherwise.
D: Always set to "1".
H: Cleared if there is a carry from the most significant bit of the low-order four bits of the result;
set otherwise indicating a "borrow".
Format:
Bytes
Cycles
Opcode
(Hex)
Addr Mode
dst
src
opc
dst | src
2
4
22
r
6
23
r
lr
opc
src
dst
3
6
24
R
6
25
R
IR
opc
dst
src
3
6
26
R
IM
Examples:
Given: R1 = 12H, R2 = 03H, register 01H = 21H, register 02H = 03H, register 03H = 0AH:
SUB
R1,R2
R1 = 0FH, R2 = 03H
SUB
R1,@R2
R1 = 08H, R2 = 03H
SUB
01H,02H
Register 01H = 1EH, register 02H = 03H
SUB
01H,@02H
Register 01H = 17H, register 02H = 03H
SUB
01H,#90H
Register 01H = 91H; C, S, and V = "1"
SUB
01H,#65H
Register 01H = 0BCH; C and S = "1", V = "0"
In the first example, if working register R1 contains the value 12H and if register R2 contains the
value 03H, the statement "SUB R1,R2" subtracts the source value (03H) from the destination
value (12H) and stores the result (0FH) in destination register R1.
相關(guān)PDF資料
PDF描述
S3C9658XX-SI 8-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO18
S3C9654XX-DI 8-BIT, MROM, 6 MHz, MICROCONTROLLER, PDIP18
S3P9658-SI 8-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PDSO18
S3C9654XX-DH 8-BIT, MROM, 6 MHz, MICROCONTROLLER, PDIP16
S5933Q/7C PCI BUS CONTROLLER, PQFP160
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S3C9688 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:8-bit single-chip CMOS microcontrollers
S3CB 制造商:DIOTECH 制造商全稱:DIOTECH 功能描述:SURFACE MOUNT GENERAL RECTIFIER
S3CB018 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:The S3CB018/FB018 single-chip CMOS microcontroller
S3CB205 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:S3CB205/FB205
S3CB519 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:8-Bit CMOS Microcontroller