Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

ST20-C1 Datasheet(PDF) 35 Page - STMicroelectronics

No. de pieza ST20-C1
Descripción Electrónicos  Instruction Set Reference Manual
PDF  205 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST20-C1 Datasheet(HTML) 35 Page - STMicroelectronics

Back Button ST20-C1 Datasheet HTML 31Page - STMicroelectronics ST20-C1 Datasheet HTML 32Page - STMicroelectronics ST20-C1 Datasheet HTML 33Page - STMicroelectronics ST20-C1 Datasheet HTML 34Page - STMicroelectronics ST20-C1 Datasheet HTML 35Page - STMicroelectronics ST20-C1 Datasheet HTML 36Page - STMicroelectronics ST20-C1 Datasheet HTML 37Page - STMicroelectronics ST20-C1 Datasheet HTML 38Page - STMicroelectronics ST20-C1 Datasheet HTML 39Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 205 page
background image
35/205
4 Using ST20-C1 instructions
®
constant from the
nth entry in the constant table stored at address constants_ptr the
following code would be used:
ldl constants_ptr ; ldnl n;
where the instruction
ldnl n is explained in section 4.2.2.
This code sequence only takes 2 bytes, provided
constants_ptr is less than 16 words
from the work space pointer address and there are no more than 16 word-length
constants. At worse it is unlikely to take more than 4 bytes. Hence, if a constant takes
4 or more bytes to load using
ldc then this sequence often improves code compact-
ness — especially if the constant is used more than once.
4.3.4
Assignment
Single words, half words and bytes may be assigned using the load and store instruc-
tions described in section 4.2.
Word assignment
If
x and y are both single word variables and e is a word valued expression then word
assignments are compiled as
x = y
compiles to
ld y; st x;
x = e
compiles to
e; st x;
Byte assignment
If
a and b are both single byte variables and e is a byte valued expression then byte
assignments are compiled as
b = a
compiles to
address(a); lbinc; address(b); sbinc;
b = e
compiles to
e; address(b); sbinc;
where
address(variable) is the address of variable. Forming addresses is discussed in
section 4.5.
Half word assignment
If
a and b are both half-word variables and e is a half-word valued expression then
half-word assignments are compiled as
b = a
compiles to
address(a); lsinc; address(b); ssinc;
b = e
compiles to
e; address(b); ssinc;
where
address(variable) is the address of variable. Forming addresses is discussed in
section 4.5.
4.4
Arithmetic
This section describes the use of the arithmetic instructions except for the multiply-
accumulate instructions, which are described in Chapter 5, and forming addresses,
which is described in section 4.5. Boolean expression evaluation is discussed in



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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
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