Implementation Details
5-54
find the correct size for bogus. Bogus can be made larger for extra safety as
long as enough memory is left over for the C– – variables and the stack. If
space allows, it is a good idea to add a few extra words to bogus in case
assembly variables are added to the project without modifying bogus.
It is also important not to alter the contents of registers R5 and R7. R7 is the
stack pointer and R5 is a frame pointer used in C to C function calls.
Parameters are passed on the stack and the return value is always int and
always located in a0. The stack usage for function calls is as follows.
C to C function call. The stack is shown after the operation on the bottom is
performed.
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|R7|Param 2
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|
|
|Param 2
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|R7|Param 1
|
|Param 1
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
|
|
|Param 1
|
|Param 1
|
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
R7,R5 |Stack data |R5|Stack data |R5|Stack data |
|–––––––––––––––|
|–––––––––––––––|
|–––––––––––––––|
Before call
Parameter 1
Parameter 2
Содержание MSP50C614
Страница 1: ...MSP50C614 Mixed Signal Processor User s Guide SPSU014 January 2000 Printed on Recycled Paper ...
Страница 6: ...vi ...
Страница 92: ...3 22 ...
Страница 300: ...Instruction Set Summay 4 208 Assembly Language Instructions ...
Страница 314: ...Software Emulator 5 14 Figure 5 13 Project Menu Figure 5 14 Project Open Dialog ...
Страница 325: ...Software Emulator 5 25 Code Development Tools Figure 5 25 EPROM Programming Dialog ...
Страница 331: ...Software Emulator 5 31 Code Development Tools Figure 5 31 Context Sensitive Help System ...
Страница 368: ...5 68 ...
Страница 394: ...7 12 ...
Страница 400: ...Architecture A 6 Figure A 3 MSP50C605 100 Pin PJM Package MSP50C605 100 PIN PJM PLASTIC PACKAGE 1 80 81 100 30 31 50 51 ...
Страница 402: ...A 8 ...
Страница 412: ...Packaging B 10 ...
Страница 414: ...C 2 C 1 MSP50C605 Data Sheet This appendix contains the data sheet for the MSP50C605 mixed signal pro cessor ...