參數(shù)資料
型號: P610ARM-KW
廠商: Zarlink Semiconductor Inc.
英文描述: General purpose 32-bit microprocessor
中文描述: 通用32位微處理器
文件頁數(shù): 84/173頁
文件大小: 897K
代理商: P610ARM-KW
Instruction Set - Examples
ARM610 Data Sheet
4-56
O
4.16 Instruction Set Examples
The following examples show ways in which the basic ARM610 instructions can
combine to give efficient code. None of these methods saves a great deal of execution
time (although they may save some), mostly they just save code.
4.16.1 Using the conditional instructions
Using conditionals for logical OR
CMP
Rn,#p
BEQ
Label
CMP
Rm,#q
BEQ
Label
; If Rn=p OR Rm=q THEN GOTO Label.
This can be replaced by
CMP
CMPNE Rm,#q
Rn,#p
; If condition not satisfied try
; other test.
BEQ
Label
Absolute value
TEQ
Rn,#0
RSBMI Rn,Rn,#0
; Test sign
; and 2's complement if necessary.
Multiplication by 4, 5 or 6 (run time)
MOV
Rc,Ra,LSL#2
CMP
Rb,#5
ADDCS Rc,Rc,Ra
ADDHI Rc,Rc,Ra
; Multiply by 4,
; test value,
; complete multiply by 5,
; complete multiply by 6.
Combining discrete and range tests
TEQ
Rc,#127
CMPNE Rc,#” ”-1
MOVLS Rc,#”.”
; Discrete test,
; range test
; IF Rc<=” ” OR Rc=ASCII(127)
; THEN Rc:=”.”
Division and remainder
A number of divide routines for specific applications are provided in source form as
part of the ANSI C library provided with the ARM Cross Development Toolkit, available
from your supplier. A short general purpose divide routine follows.
; Enter with numbers in Ra and Rb.
;
; Bit to control the division.
; Move Rb until greater than Ra.
MOV
CMP
CMPCC Rb,Ra
MOVCC Rb,Rb,ASL#1
MOVCC Rcnt,Rcnt,ASL#1
BCC
Div1
MOV
Rc,#0
Rcnt,#1
Rb,#0x80000000
Div1
相關(guān)PDF資料
PDF描述
P6121-AU120 Incremental Encoders
P6111-AP120 Incremental Encoders
P6111-AP192 Incremental Encoders
P6111-AQ120 Incremental Encoders
P6111-AQ192 Incremental Encoders
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
P6-10R 制造商:Panduit Corp 功能描述:PANDUIT
P6-10R-E 功能描述:端子 NON-INSL.RING #6 #10 RoHS:否 制造商:AVX 產(chǎn)品:Junction Box - Wire to Wire 系列:9826 線規(guī):26-18 接線柱/接頭大小: 絕緣: 顏色:Red 型式:Female 觸點電鍍:Tin over Nickel 觸點材料:Beryllium Copper, Phosphor Bronze 端接類型:Crimp
P610R-E 制造商:Panduit Corp 功能描述:
P6-10RHT6-E 制造商:Panduit Corp 功能描述:Ring Terminal 6AWG 30.73mm 11.94mm Nickel 制造商:Panduit Corp 功能描述:RING TERMINAL, HIGH TEMPERATUR 制造商:Panduit Corp 功能描述:RING TERMINAL, HIGH TEMPERATURE, NON-INS - Bag
P6-10RHT6-T 制造商:Panduit Corp 功能描述:RING TERMINAL, HIGH TEMPERATUR 制造商:Panduit Corp 功能描述:RING TERMINAL, HIGH TEMPERATURE, NON-INS - Bag