CodeWarrior 8- & 16-bit tools: Stack Pointer Register Initialization

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

CodeWarrior 8- & 16-bit tools: Stack Pointer Register Initialization

2,054 次查看
marc_paquette
Contributor V
To help you find solutions to problems that have already been solved, we have posted this message. It contains an entire topic ported from a separate forum. The original message and all replies are in this single message.
 

Posted: Jul 20, 2004 - 09:24 AM   

 

Trying to learn how to initialize the SP register in assembly code. The linker parameter file can define STACKTOP but I can't see how to pass that to an LDS #LABEL in the assembler code. Have been looking for the C startup code INIT_SP_FROM_STARTUP_DESC(); to see how it is done there but can't find it.

Can anybody tell me where to find that code?

Cheers.

Posted: Jul 20, 2004 - 04:47 PM   


Look at file hidef.h in installation \lib\HC08c\include directory. the macro INIT_SP_FROM_STARTUP_DESC() is defined there.

Ron

_________________
Ron Liechty
Ombudsman for Metrowerks

 
标签 (1)
标记 (1)
0 项奖励
回复
0 回复数