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
TXS ;SP<-(H:X-1)
In the file MC9S08SG16.inc RamEnd is defined like that :
RAMEnd: equ $0000027F
My question is why it's not $0000047F ?