Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Newbie rcall question

2004-12-03 by Dave VanHorn

At 06:00 PM 12/3/2004, sami saqqa wrote:

>i have this befor
>you must intilaized the stak pointer 1st
>for examble
>
>.org 0x0a
>  ser temp
>  out SPL,temp
>  out SPH,temp
>
>if the AVR have more than 8-bit stak pointer


More correctly:

ldi     temp,low(Ramend)
out     SPL,TEMP
ldi     temp,high(Ramend)
out     SPH,TEMP

You still need to load SPL on machines with 8 bit stack pointer.


You don't HAVE to point SP to the end of ram, but it's the most 
conventional place.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.