English
Language : 

CC78K0S Datasheet, PDF (169/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
<5> Performing processing of the function func, and storing return values in the register (by the callee)
The lower 16 bits of the return value are stored in BC and the higher 16 bits are stored in DE.
BC
Lower 16 bits of return value
DE
Higher 16 bits of return value
<6> Restoring the first placed argument (by the callee)
Low address
Stack pointer
High address
HL
Return
Lower 16 bits of b
Higher 16 bits of b
c
<7> Restoring the saved registers (by the callee)
Low address
Stack pointer
High address
Return
Lower 16 bits of b
Higher 16 bits of b
c
<8> Storing the return address in the register and removing the arguments from the stack by shifting the stack
pointer to the position before arguments were placed.
Low address
Stack pointer
High address
Return
Lower 16 bits of b
Higher 16 bits of b
c
User’s Manual U14872EJ1V0UM
169