|
From: | Parthasaradhi Nayani |
Subject: | Re: [avr-gcc-list] Assembly language help |
Date: | Sat, 28 Jul 2007 21:00:08 -0700 (PDT) |
--- Parthasaradhi Nayani
wrote:
> Hello Group,
>
> I am writing an assembly language function in which
> I need to get the address of a sub-routine into a
> register pair. How can I do it? A sample code is
> given below.
func1:
nop
nop
ldi r24, lo8(label1)
ldi r25, hi8(label1)
asr r25 ; convert byte addr
ror r24 ; to word addr
nop
nop
label1:
nop
nop
HTH,
Gre7g
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/
_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[Prev in Thread] | Current Thread | [Next in Thread] |