ST20-C1 STMICROELECTRONICS [STMicroelectronics], ST20-C1 Datasheet - Page 49
![no-image](/images/no-image-200.jpg)
ST20-C1
Manufacturer Part Number
ST20-C1
Description
Instruction Set Reference Manual
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
1.ST20-C1.pdf
(205 pages)
- Current page: 49 of 205
- Download datasheet (842Kb)
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 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:
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:
For example, a function with w words of local work space might be:
This can be compiled as:
T myfunction (param_1, param_2)
{
}
local variable declarations ;
P;
return (E);
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.
create work space on the stack at the beginning of the function and
return the work space pointer at the end of the function.
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.
ajw -w;
stl param_1; stl param_2;
P;
E;
ajw w;
4 Using ST20-C1 instructions
49/205
Related parts for ST20-C1
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ST20](/images/no-image3.png)
Part Number:
Description:
ST20 software development and debugging tools
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST20-SWC++/PC](/images/no-image3.png)
Part Number:
Description:
C++ preprocessor for ST20 and T4/T8 transputers
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST20-JPI110](/images/no-image3.png)
Part Number:
Description:
PC PARALLEL PORT TO JTAG INTERFACE
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST20-PPI110](/images/no-image3.png)
Part Number:
Description:
PC PARALLEL PORT TO OS-LINK INTERFACE
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![st20-gp1](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
Gps Processor
Manufacturer:
STMicroelectronics
Datasheet:
![st20-gp6](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
Gps Processor
Manufacturer:
STMicroelectronics
Datasheet:
![TYN058](/images/no-image3.png)
Part Number:
Description:
THYRISTORS
Manufacturer:
ST Microelectronics
Datasheet:
![ST755](/images/no-image3.png)
Part Number:
Description:
ADJUSTABLE INVERTING NEGATIVE OUTPUT CURRENT MODE PWM REGULATORS
Manufacturer:
ST Microelectronics
Datasheet:
![P0102BL5AA4](/images/no-image3.png)
Part Number:
Description:
0.25A SCRs
Manufacturer:
ST Microelectronics
Datasheet:
![P0102DN5AA4](/images/no-image3.png)
Part Number:
Description:
0.8A SCRs
Manufacturer:
ST Microelectronics
Datasheet:
![ST19AF08](/images/no-image3.png)
Part Number:
Description:
Smartcard MCU With 4 additional I/0
Manufacturer:
ST Microelectronics
Datasheet:
![ST24C02](/images/no-image3.png)
Part Number:
Description:
SERIAL 2K (256 x 8) EEPROM
Manufacturer:
ST Microelectronics
Datasheet:
![P10NB50FP](/images/no-image3.png)
Part Number:
Description:
Search -----> STP10NB50FP
Manufacturer:
ST Microelectronics
Datasheet:
![P12NB30](/images/no-image3.png)
Part Number:
Description:
Search ---> STP12NB30
Manufacturer:
ST Microelectronics
Datasheet:
![P13NK50Z](/images/no-image3.png)
Part Number:
Description:
Search -----> STP13NK50Z
Manufacturer:
ST Microelectronics
Datasheet: