參數(shù)資料
型號: P610ARM-B
廠商: Zarlink Semiconductor Inc.
英文描述: General purpose 32-bit microprocessor
中文描述: 通用32位微處理器
文件頁數(shù): 84/173頁
文件大?。?/td> 897K
代理商: P610ARM-B
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描述
P610ARM-KG General purpose 32-bit microprocessor
P610ARM-KW General purpose 32-bit microprocessor
P6121-AU120 Incremental Encoders
P6111-AP120 Incremental Encoders
P6111-AP192 Incremental Encoders
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
P610ARM-B/KG/FPNR 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROPROCESSOR|32-BIT|CMOS|QFP|144PIN|PLASTIC
P610ARM-B/KW/FPNR 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROPROCESSOR|32-BIT|CMOS|QFP|144PIN|PLASTIC
P610ARM-FPNR 制造商:ZARLINK 制造商全稱:Zarlink Semiconductor Inc 功能描述:General purpose 32-bit microprocessor
P610ARM-KG 制造商:ZARLINK 制造商全稱:Zarlink Semiconductor Inc 功能描述:General purpose 32-bit microprocessor
P610ARM-KW 制造商:ZARLINK 制造商全稱:Zarlink Semiconductor Inc 功能描述:General purpose 32-bit microprocessor