I have a question regarding the stack in the MC9S08SG16
The total size RAM is 1024 bytes. It starts from the address 0x80 until 0x047F.
To initilized the stack pointer I used the follwing asm cmd
LDHX #RamEnd+1 ;point one past RAM
In the file MC9S08SG16.inc RamEnd is defined like that :
RAMEnd: equ $0000027F
My question is why it's not $0000047F ?
Solved! Go to Solution.
Where did you get that include file? I assume it was included automatically by some of the CodeWarrior versions maybe?
I checked the file included with CodeWarrior v10.5 and it actually indicates the next:
I attach here the file I am talking about so you can compare it with the one you have.
Hope this is useful!