| Electronic Components Datasheet Search |
|
UM0438 Datasheet(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0438 Datasheet(HTML) 27 Page - STMicroelectronics |
|
27 / 50 page ![]() 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. |
|
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 |
| 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 |