DataSheet8.cn


PDF ( 数据手册 , 数据表 ) SH6610

零件编号 SH6610
描述 instructions introduction
制造商 Sino Wealth
LOGO Sino Wealth LOGO 


1 Page

No Preview Available !

SH6610 数据手册, 描述, 功能
SH6610 instructions introduction
SH6610 instructions introduction
Ver1.0
Sino Wealth Electronic (Shanghai) LTD.
1/36
http://www.Datasheet4U.com







SH6610 pdf, 数据表
SH6610 instructions introduction
1-4 Instructions for Arithmetic Operation
SH6610 series provide some frequently used arithmetic (integer) operation instructions,
like: Addition, subtraction, BCD adjustment, etc.
Instruction: ADD
Format:
Instruction Code:
Carry Flag:
Operation:
Function: to add up the values of Data Memory and Accumulator,
and then save the result in the Accumulator
ADD Mx bbb
00001 0bbb xxx xxxx
CY
AC Å Mx + AC
Explanation
Instruction ADD adds up the values of data memory and accumulator and saves the
result in the accumulator. The ADD operation affects carry flag: when the result of ADD
exceeds 0FH, the carry flag is set to 1; otherwise the value of CY is 0. Therefore we can
decide whether there’s a carry by the value of the carry flag after addition.
[ Example ] 05H +06H
:
LDI 20H,05H
LDI 21H,06H
LDA 20H,00H
ADD 21H,0
[ Example ] 0BH + 06H
:
LDI 20H,0BH
LDI 21H,06H
LDA 20H,00H
ADD 21H,0
:
;$20H=05H,AC=05H
;$21H=06H,AC=06H
;AC=05H
;AC=0BH,CY=0,$21H=06H
:
;$20H=0BH,AC=0BH
;$21H=06H,AC=06H
;AC=0BH,CY=0
;AC=01H,CY=1,$21H=06H
Instruction: ADDM
Format:
Instruction Code:
Carry Flag:
Operation:
Ver1.0
Function: to add up the values of Data Memory and Accumulator,
and save the result in both the Accumulator and the Data
Memory
ADDM Mx bbb
00001 1bbb xxx xxxx
CY
AC , Mx Å Mx + AC
8/36







SH6610 equivalent, schematic
SH6610 instructions introduction
Instruction: SBC
Format:
Instruction Code:
Carry Flag:
Operation:
Explanation
Function: to subtract the value of Accumulator from the value of
Data Memory, add Carry Flag, and then save the result in
the Accumulator
SBC Mx bbb
00010 0bbb xxx xxxx
CY
AC Å Mx - AC + CY
System mov ement of SB C is to subtract the valu e of accum ulator from th e value of
data memory, add the value of carry flag, and then save the result in the accumulator. When
executing SBC, if the value of data memory is le ss than the value of accumulator, a “borrow”
will take place and the CY will be set to 0. On the contrary, if th e value of dat a memory is
greater tha n the value of accum ulator, bo rrow will not hap pen and th e CY will be 1.
Therefore we can d ecide by the value of CY wheth er there is a borrow after execution of
SBC.
[ Example ] CY=0 6 - 5=?
:
LDI 20H,05H
LDI 21H,06H
LDA 20H,0
SBC 21H,0
:
;CY=0
;AC=05H,$20H=05H
;AC=06H,$21H=06H
;AC=05H
;AC=01H,CY=0,$21H=06H
[ Example ] CY=1 6 - 5=?
:
LDI 20H,05H
LDI 21H,06H
LDA 20H,0
SBC 21H,0
:
;CY=1
;AC=05H,$20H=05H
;AC=06H,$21H=06H
;AC=05H
;AC=02H,CY=0,$21H=06H
Instruction: SBCM
Format:
Instruction Code:
Carry Flag:
Operation:
Ver1.0
Function: to subtract the value of Accumulator from the value of
Data Memory, add Carry Flag, and then save the result in
both the Accumulator and the Data Memory
SBCM Mx bbb
00010 1bbb xxx xxxx
CY
AC , Mx Å Mx - AC + CY
16/36










页数 36 页
下载[ SH6610.PDF 数据手册 ]


分享链接

Link :

推荐数据表

零件编号描述制造商
SH6610instructions introductionSino Wealth
Sino Wealth
SH66134K 4-Bit MicrocontrollerSino Wealth
Sino Wealth
SH6613B4K 4-Bit MicrocontrollerSino Wealth
Sino Wealth
SH6613C4K 4-Bit MicrocontrollerSino Wealth
Sino Wealth

零件编号描述制造商
STK15C88256-Kbit (32 K x 8) PowerStore nvSRAMCypress Semiconductor
Cypress Semiconductor
NJM4556DUAL HIGH CURRENT OPERATIONAL AMPLIFIERNew Japan Radio
New Japan Radio
EL1118-G5 PIN LONG CREEPAGE SOP PHOTOTRANSISTOR PHOTOCOUPLEREverlight
Everlight


DataSheet8.cn    |   2020   |  联系我们   |   搜索  |  Simemap