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

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

Re: [avr-gcc-list] SBI an CBI optimizations


From: Matthias Weißer
Subject: Re: [avr-gcc-list] SBI an CBI optimizations
Date: Thu, 07 Jul 2005 17:49:19 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.7

Trampas schrieb:
I gave that a shot:

#define DISABLE_INTO_ISR() {GIMSK &= ~(1<<INT0);}

176:rs485.c       ****  DISABLE_INTO_ISR();
 247                    .LM24:
 248 0086 8BB7                  in r24,91-0x20
 249 0088 8F7B                  andi r24,lo8(-65)
 250 008a 8BBF                  out 91-0x20,r24

GIMSK is at IO-register address 59. SBI and CBI can only be used from IO-register address 0 to IO-register address 31.

--
Matthias Weißer
address@hidden
http://www.matwei.de




reply via email to

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