I am looking for any free space in my ATtiny13 programm and have such a question:
In datasheet p.9 is described stack pointer register and here is:
Initial Value 1 0 0 1 1 1 1 1
what correspond with RAMEND=0x9F from p.14 (memory map).
But on p.42 we have typical stack setup:
0x000A RESET: ldi r16, low(RAMEND); Main program start
0x000B out SPL,r16 ; Set Stack Pointer to top of RAM
Can I omit this 2 instructions pair?
I was testing my program without above lines and it works correctly, but I must be sure it is OK.