Electronic Components Datasheet Search
  English  ▼

X  

UM0438 Datasheet(PDF) 27 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) 27 Page - STMicroelectronics

Back Button UM0438 Datasheet HTML 23Page - STMicroelectronics UM0438 Datasheet HTML 24Page - STMicroelectronics UM0438 Datasheet HTML 25Page - STMicroelectronics UM0438 Datasheet HTML 26Page - STMicroelectronics UM0438 Datasheet HTML 27Page - STMicroelectronics UM0438 Datasheet HTML 28Page - STMicroelectronics UM0438 Datasheet HTML 29Page - STMicroelectronics UM0438 Datasheet HTML 30Page - STMicroelectronics UM0438 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 50 page
background image
UM0438
Simplified mnemonics for VLE instructions
27/50
The 1-bit BO16 field, shown in Figure 1, encodes the following operations in 16-bit
conditional branch instructions:
●
Test condition register (CR)
–
Test condition true
–
Test condition false
As shown in Table 14, the ‘c’ in the standard mnemonic is replaced with the operations
otherwise specified in the BO32 or BO16 field, (d for decrement, z for zero, nz for non-zero,
t for true, and f for false).
A.4.3
The BI32 and BI16 operand—CR Bit and field representations
With standard branch mnemonics, the BI32 and BI16 operands are used to test a CR bit, as
shown in the example in Section A.4: Branch instruction simplified mnemonics.
With simplified mnemonics, the BI32 and BI16 operands are handled differently depending
on whether the simplified mnemonic incorporates a CR condition to test, as follows:
●
Some branch simplified mnemonics incorporate only the BO32 or BO16 operand.
These simplified mnemonics can use the architecturally defined BI32 or BI16 operand
to specify the CR bit, as follows:
–
The BI32 or BI16 operands can be presented exactly as it is with standard
mnemonics—as a decimal number, 0–15 for the BI32 operand, and 0–3 for the
BI16 operand.
–
Symbols can be used to replace the decimal operand, as shown in the example in
Section A.4: Branch instruction simplified mnemonics where e_bt 4 * cr3 +
eq,target could be used instead of e_bt 14,target. This is described in Section :
Specifying a CR Bit
The simplified mnemonics in Section A.5: Simplified mnemonics that incorporate the BO32
and BO16 operands use one of these two methods to specify a CR bit.
●
Additional simplified mnemonics incorporate CR conditions that would otherwise be
specified by the BI32 or BI16 operand, so the BI32 or BI16 operand is replaced by the
crS operand to specify the CR field. See Section A.4.4: BI32 and BI16 operand
instruction encoding
Table 14.
BO32 and BO16 operand encodings
BO32
Field
BO16
Field
Value
(Decimal)
Description
Symbol
00
0
0
Branch if the condition is FALSE.(1)
f
01
1
1
Branch if the condition is TRUE.1
t
10(2)
—
2
Decrement the CTR, then branch if the decremented CTR
≠ 0. dnz(3)
112
—
3
Decrement the CTR, then branch if the decremented CTR = 0. dz3
1.
Instructions for which BO32 or BO16 are 0 (branch if condition true) or 1 (branch if condition false) do not depend on the
CTR value and alternately can be coded by incorporating the condition specified by the BI32 or BI16 fields. 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 (BO32 = 2 or 3) should specify only a target.
Otherwise a programming error may occur.
3.
Notice that these instructions do not use the branch in condition true or false operations, so simplified mnemonics for these
should not specify a BI32 operand.



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