| 数据搜索系统,热门电子元器件搜索 |
|
STC89LE53RC 数据表(PDF) 164 Page - STCmicro Technology Co,.Ltd |
|
|
|||||||||||||||||||||||||||||
STC89LE53RC 数据表(HTML) 164 Page - STCmicro Technology Co,.Ltd |
|
164 / 165 page ![]() Registers used in parameter passing Number of Argument Char / 1-Byte Pointer INT / 2-Byte Pointer Long/Float Generic Pointer 1 R7 R6 & R7 R4–R7 R1–R3 2 R5 R4 &R5 R4–R7 3 R3 R2 & R3 Since there are only eight registers in the 8051, there may be situations where we do not have enough regist- ers for parameter passing. When this happens, the remaining parameters can be passed through fixed memory loacations. To specify that all parameters will be passed via memory, the NOREGPARMs control directive is used. To specify the reverse, use the REGPARMs control directive. Return Values Unlike parameters, which can be passed by using either registers or memory locations, output values must be returned from functions via registers. The following table shows the registers used in returning different types of values from functions. Registers used in returning values from functions Return Type Register Description bit Carry Flag (C) char/unsigned char/1-byte pointer R7 int/unsigned int/2-byte pointer R6 & R7 MSB in R6, LSB in R7 long/unsigned long R4–R7 MSB in R4, LSB in R7 float R4–R7 32-bit IEEE format generic pointer R1–R3 Memory type in R3, MSB in R2, LSB in R1 164 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| 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 |