Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Mexican  ▼
ALLDATASHEET.COM.MX

X  

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

Back Button ST20-C1 Datasheet HTML 45Page - STMicroelectronics ST20-C1 Datasheet HTML 46Page - STMicroelectronics ST20-C1 Datasheet HTML 47Page - STMicroelectronics ST20-C1 Datasheet HTML 48Page - STMicroelectronics ST20-C1 Datasheet HTML 49Page - STMicroelectronics ST20-C1 Datasheet HTML 50Page - STMicroelectronics ST20-C1 Datasheet HTML 51Page - STMicroelectronics ST20-C1 Datasheet HTML 52Page - STMicroelectronics ST20-C1 Datasheet HTML 53Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 49 / 205 page
background image
49/205
4 Using ST20-C1 instructions
®
A function called using
fcall must have a fixed offset at compile time. jab is used for
calling functions and procedures at dynamically calculated addresses, for example
when using function pointers.
The
jab instruction is also used to perform the return. The return address must have
been restored with a
ldl from the stack into the Areg. A procedure or function that
requires local work space will normally include
ajw instructions to allocate and deallo-
cate space.
When the
jab instruction is executed, the programmer must ensure that:
• the Areg holds the return address;
• any workspace claimed by the procedure should have been released so that
the Wptr has returned to the value it held at the start of the procedure.
The
jab instruction uses one word of the evaluation stack, so the other two words can
therefore be used to return up to two values to the calling code, including a pointer to
a block of additional data to be returned.
4.10.1 Adjusting work space
The primary instruction
ajw is used to perform a relative adjustment to the stack
pointer Wptr to:
• create work space on the stack at the beginning of the function and
• return the work space pointer at the end of the function.
ajw n increases the value of the workspace pointer by the number of words in its
operand value,
n. Work space is created at the beginning of a function or procedure
with a negative operand and released before returning with a positive operand.
The amount of extra work space needed will normally include:
• space to save any parameters passed in the evaluation stack;
• space for local variables and temporaries;
• space for any hidden system variables such as the static chain.
For example, a function with
w words of local work space might be:
T myfunction (param_1, param_2)
{
local variable declarations;
P;
return (E);
}
This can be compiled as:
ajw -w;
stl param_1; stl param_2;
P;
E;
ajw w;



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