avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] PATCH: fix ctype linker errors


From: E. Weddington
Subject: Re: [avr-libc-dev] PATCH: fix ctype linker errors
Date: Tue, 12 Apr 2005 11:43:46 -0600
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Stefano Fedrigo wrote:

I didn't see that all the code in the file resides in the same section
(.progmem.ctype). However the range of branch instructions is only 128
words. I improved my patch keeping the __ctype_is_false section and
using RJMP to jump to it (4 Kwords range), without duplication of the
__ctype_is_false code in each function.

I tested the new code with an atmega128. The patch is attached.

Which value should the function iscntrl() return for input between 128
and 255? Currently returns true: is this correct?

GLOBAL(iscntrl)
         TST   rHigh
         BRNE  __ctype_isfalse
         CPI   rLow,0x7F
         BREQ  __ctype_istrue
         CPI   rLow,0x1F+1
         BRGE  __ctype_isfalse
         SER   rLow               ; 0 is cntrl, too! -> return true
         RET

If not, the last BRGE should be a BRSH.

Can I submit this patch on Savannah?

Sorry to get back to this so late. *Please* submit all patches to avr-libc to the Patch Tracker on Savannah, otherwise we'll lose track of it.

Thanks
Eric




reply via email to

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