avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Assembly language help


From: Parthasaradhi Nayani
Subject: [avr-gcc-list] Assembly language help
Date: Fri, 27 Jul 2007 20:04:41 -0700 (PDT)

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.

;------------------------------------------------------------------------------------------------------------------

                        .section .text
                        .global func1


func1:               nop
                        nop   ; some code
; at this point I would like to get the address of label1 into, say r24 and r25


label1:            nop
                     nop      ; some code
;---------------------------------------------------------------------------------------------------------------------

I am using Mega64. Thanks in advance for help rendered.

Regards
Nayani P


Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]