[Top][All Lists]

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

Re: [avr-gcc-list] interrupt in as

From: Christian Troedhandl
Subject: Re: [avr-gcc-list] interrupt in as
Date: Tue, 9 Oct 2001 12:18:17 +0200 (MEST)

On Tue, 9 Oct 2001, Torsten Hahn wrote:

> Hi,
> can explain me somebody how can i implement an interrupt-handler purely in
> assembler ?
You could code it in a plain Assambler file like this:


.section .text

.global _interrupt0_
        .type   address@hidden

/* save all needed registers here */
/* restore registers */

Then you compile and link this file just the same way you would do, if it
were a .c file.


Christian Troedhandl              email: address@hidden
Karajangasse 6/19                 phone:        +(43)   (1)  9477114
A-1200 Wien                       mobile phone: +(43) (699) 19477114

   "Old C - Programmers never die, they're just cast into void !"

reply via email to

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