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

X  

ST20-C1 Datasheet(PDF) 32 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) 32 Page - STMicroelectronics

Back Button ST20-C1 Datasheet HTML 28Page - STMicroelectronics ST20-C1 Datasheet HTML 29Page - STMicroelectronics ST20-C1 Datasheet HTML 30Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 32 / 205 page
background image
4.2 Loading and storing
32/205
®
normally used for local variables on the stack while non-local addressing is normally
used for all other variables.
The primary instructions
ldl and stl perform loading and storing of local variables. For
example to load a value
x words above the Wptr and write to a location y words above
the Wptr:
ldl x;
stl y;
The primary instructions
ldnl and stnl perform loading and storing of non-local vari-
ables. For example, to load a value
x above a base address x_base and store to a
location
y words above y_base, where x_base and y_base are held in local variables:
ldl x_base; ldnl x;
ldl y_base; stnl y;
Note that for the purposes of this manual,
ld X denotes loading the value from a
variable
X, where X may be a local or non-local variable, so either ldl or ldnl may be
used as appropriate. Similarly
st X denotes storing a value into a variable X, where X
may be a local or non-local variable, so either
stl or stnl may be used.
4.2.3
Byte and half-word values
Instructions are provided for loading and storing byte and half-word variables. In each
case, the address is initially in the Areg and is incremented by the size of the object,
so that repeated loads and stores can be used to copy a block of memory.
The load instructions place the loaded value in the Areg, the incremented address in
the Creg and leave the Breg unaffected. The store instructions write the initial Breg
into memory at the address in the Areg, leaving the incremented address in the Breg,
the initial Creg in the Areg and the initial Breg pushed down to the Creg.
Byte loading and storing
lbinc loads the byte at the address in Areg, into the evaluation stack. lbinc replaces
the address in Areg with the byte stored at that address, treating it as an unsigned
integer by setting the twenty-four most significant bits in Areg to 0. The incremented
address is left in Creg.
sbinc writes the least significant b yte in Breg to the location addressed by Areg. The
address is incremented by 1 and put in the Breg.
Half-word loading and storing
lsinc and lsxinc load the half-word object at the address in Areg, into the evaluation
stack.
lsinc replaces the address in Areg with the half word, treating it as an unsigned
integer by setting the sixteen most significant bits in Areg to 0.
lsxinc is similar to lsinc,
but treats the half-word as a signed integer in twos-complement format, and hence
sign extends the representation by setting the sixteen most significant bits in Areg to
the same value as the most significant bit of the half-word object. Sign extension is
discussed in section 4.4.6.



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