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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,895 Views
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

 
Labels (1)
Tags (1)
0 Kudos
0 Replies