| Electronic Components Datasheet Search |
|
UM0438 Datasheet(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0438 Datasheet(HTML) 40 Page - STMicroelectronics |
|
40 / 50 page ![]() Simplified mnemonics for VLE instructions UM0438 40/50 A.9 Recommended simplified mnemonics This section describes commonly-used operations (such as no-op, load immediate, load address, move register, and complement register). A.9.1 No-Op(nop) Many instructions can be coded in such a way that, effectively, no operation is performed. Additional mnemonics are provided for the preferred forms of no-op. If an implementation performs any type of run-time optimization related to no-ops, the preferred forms are the following: e_nop equivalent to e_ori 0,0,0 se_nop equivalent to se_or 0,0 A.9.2 Load Address (la) The la mnemonic permits computing the value of a base-displacement operand, using the e_add16i instruction that normally requires a separate register and immediate operands. e_la rD,d(rA) equivalent to e_add16i rD,rA,d The e_la mnemonic is useful for obtaining the address of a variable specified by name, allowing the assembler to supply the base register number and compute the displacement. If the variable V is located at offset dV bytes from the address in rV, and the assembler is directed to use rV as a base for references to the data structure containing V, the following line causes the address of V to be loaded into rD: e_la rD,V equivalent to e_add16i rD,rV,dV A.9.3 Move Register (mr) Several instructions can be coded to copy the contents of one register to another. A simplified mnemonic is provided to signify that no computation is being performed, but merely that data is being moved from one register to another. The following instruction copies the contents of rS into rA. This mnemonic can be coded with a dot (.) suffix to cause the Rc bit to be set in the underlying instruction. mr rA,rS equivalent to or rA,rS,rS A.9.4 Complement Register (not) Several instructions can be coded to complement the contents of one register and place the result into another register. A simplified mnemonic allows this operation to be coded easily. The following instruction complements the contents of rS and places the result into rA. This mnemonic can be coded with a dot (.) suffix to cause the Rc bit to be set in the underlying instruction. not rA,rS equivalent to nor rA,rS,rS A.9.5 Move to Condition Register (mtcr) The mtcr mnemonic permits copying the contents of a GPR to the CR, using the same syntax as the mfcr instruction. mtcr rS equivalent to mtcrf 0xFF,rS |
|
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 |