Electronic Components Datasheet Search
  English  ▼

X  

UM0438 Datasheet(PDF) 33 Page - STMicroelectronics

Part # UM0438
Description  This user manual defines a programming model for use with the variable-length encoding
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0438 Datasheet(HTML) 33 Page - STMicroelectronics

Back Button UM0438 Datasheet HTML 29Page - STMicroelectronics UM0438 Datasheet HTML 30Page - STMicroelectronics UM0438 Datasheet HTML 31Page - STMicroelectronics UM0438 Datasheet HTML 32Page - STMicroelectronics UM0438 Datasheet HTML 33Page - STMicroelectronics UM0438 Datasheet HTML 34Page - STMicroelectronics UM0438 Datasheet HTML 35Page - STMicroelectronics UM0438 Datasheet HTML 36Page - STMicroelectronics UM0438 Datasheet HTML 37Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 33 / 50 page
background image
UM0438
Simplified mnemonics for VLE instructions
33/50
A.5.2
Simplified mnemonics that incorporate CR conditions (eliminates
BO32 and BO16 and replaces BI32 with crS)
The mnemonics in Table 24 are variations of the branch-if-condition-true (BO32 = 1 or BO16
= 1) and branch-if-condition-false (BO32 = 0 or BO16 = 0) encodings. Because these
instructions do not depend on the CTR, the true/false conditions specified by either BO32 or
BO16 can be combined with the CR test bit specified by the BI32 or BI16 operand to create
a different set of simplified mnemonics that eliminates the BO32 and BO16 operands and
the portion of the BI32 and BI16 operands (BI32[2–3] and BI16[0–1]) that specifies one of
the four possible test bits. However, for simplified mnemonics using the BO32 operand, the
simplified mnemonic cannot specify in which of the four CR fields (CR0–CR3) the test bit
falls, so the BI32 operand is replaced by a crS operand.
The standard codes shown in Table 22 are used for the most common combinations of
branch conditions. For ease of programming, these codes include synonyms; for example,
less than or equal (le) and not greater than (ng) achieve the same result.
Note:
A CR field symbol, cr0–cr3, is used as the first operand after the simplified mnemonic. If the
default, CR0, is used, no crS is necessary.
c
Decrement CTR, branch if CTR
≠ 0
e_bcl 2,0,target
e_bdnzl target(2)
Decrement CTR, branch if CTR = 0
e_bcl 3,0,target
e_bdzl target 2
1.
Instructions for which B032 is either 1 (branch if condition true) or 0 (branch if condition false) do not depend on the CTR
value and can be alternately coded by incorporating the condition specified by the BI32 field. See Section A.5.2: Simplified
mnemonics that incorporate CR conditions (eliminates BO32 and BO16 and replaces BI32 with crS)
2.
Simplified mnemonics for branch instructions that do not test CR bits should specify only a target. Otherwise, a
programming error may occur.
Table 21.
Simplified mnemonics for e_bcl with LR update (continued)
Branch semantics
e_bcl
Simplified
mnemonic
Table 22.
Standard coding for branch conditions
Code
Description
Equivalent
Bit Tested
lt
Less than
—
LT
le
Less than or equal (equivalent to ng)
ng
GT
eq
Equal
—
EQ
ge
Greater than or equal (equivalent to nl)
nl
LT
gt
Greater than
—
GT
nl
Not less than (equivalent to ge)
ge
LT
ne
Not equal
—
EQ
ng
Not greater than (equivalent to le)
le
GT
so
Summary overflow
—
SO
ns
Not summary overflow
—
SO
un
Unordered (after floating-point comparison)
—
SO
nu
Not unordered (after floating-point comparison)
—
SO



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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