My asm code just to blink the leds. For my first code, i didnt add in the load stack step which is as follow:
ldi R16,low(RAMEND) out SPL,R16 ldi R16,high(RAMEND) out SPH,R16
the LEDs wont blink.But once i add in these steps.it works and start to blink.
From what i had experience with other chip like M**rochip.the asm code dont have to consider about this when applying subroutine. So can anyone explain why could this happen?