AnsweredAssumed Answered

Stack size

Question asked by Brax02 on Dec 17, 2013
Latest reply on Jan 6, 2014 by Jorge_Gonzalez

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 RamEnd is defined like that :


RAMEnd:           equ   $0000027F



My question is why it's not $0000047F ?