поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

CC78K4 датащи(PDF) 160 Page - NEC

номер детали CC78K4
подробное описание детали  CC78K4 Ver.2.30 or Later, C Compiler Language
PDF  523 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  NEC [NEC]
домашняя страница  http://www.nec.com/
Logo NEC - NEC

CC78K4 датащи(HTML) 160 Page - NEC

Back Button CC78K4 Datasheet HTML 156Page - NEC CC78K4 Datasheet HTML 157Page - NEC CC78K4 Datasheet HTML 158Page - NEC CC78K4 Datasheet HTML 159Page - NEC CC78K4 Datasheet HTML 160Page - NEC CC78K4 Datasheet HTML 161Page - NEC CC78K4 Datasheet HTML 162Page - NEC CC78K4 Datasheet HTML 163Page - NEC CC78K4 Datasheet HTML 164Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 160 / 523 page
background image
CHAPTER 10 LIBRARY FUNCTIONS
User’s Manual U15556EJ1V0UM
160
10.1.2 Return values
The return value of a function is stored in units of 16 bits starting from its LSB in the direction from the register BC
to the register RPZ. When returning a structure, the first address of the structure is stored in the register BC. When
returning a pointer, the first address of the structure is stored in the register BC.
The following shows the list of storing the return value. The method of storing return values is the same as that of
normal functions.
Table 10-2. List of Storing Return Value
Return Value Type
Small Model
Medium Model
Large Model
1 bit
CY
CY
CY
1-byte, 2-byte integers
BC
BC
BC
4-byte integers
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
Floating-point number
(float type)
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
Floating-point number
(double type)
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
Structure
Copies the structure to return
to the area specific to the
function and stores the
address in BC
Copies the structure to return
to the area specific to the
function and stores the
address in BC
Copies the structure to return
to the area specific to the
function and stores the
address in TDE
Pointer
BC
BC (function pointer)
WHL (function pointer)
TDE
10.1.3 Saving registers to be used by individual libraries
Each library that uses RP3, RG4 (VVP) and RG5 (UUP) saves the registers it uses to a stack.
Each library that uses a saddr area saves the saddr area it uses to a stack. A stack area is used as a work area
for each library.
(1) When -ZR option is not specified
The procedure of passing arguments and return values is shown below. An example of the small model is shown
below.
Called function “long func (int a, long b, char *c) ;”



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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