Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button UM0438 Datasheet HTML 36Page - STMicroelectronics UM0438 Datasheet HTML 37Page - STMicroelectronics UM0438 Datasheet HTML 38Page - STMicroelectronics UM0438 Datasheet HTML 39Page - STMicroelectronics UM0438 Datasheet HTML 40Page - STMicroelectronics UM0438 Datasheet HTML 41Page - STMicroelectronics UM0438 Datasheet HTML 42Page - STMicroelectronics UM0438 Datasheet HTML 43Page - STMicroelectronics UM0438 Datasheet HTML 44Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 40 / 50 page
background image
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



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