[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] How many bits wide is __data_load_end?
From: |
Bob Paddock |
Subject: |
Re: [avr-libc-dev] How many bits wide is __data_load_end? |
Date: |
Wed, 29 Sep 2010 16:20:45 -0400 |
> static inline uint32_t get_data_load_end(void)
> {
> uint32_t tmp;
>
> asm volatile("ldi %A0, lo8(__data_load_end)" "\n"
> "ldi %B0, hi8(__data_load_end)" "\n"
> "ldi %C0, hlo8(__data_load_end)" "\n"
> "ldi %D0, hhi8(__data_load_end)"
> : "=r"(tmp));
> return tmp;
> }
Results in "Register number above 15 required", a couple of times.
Have to have compiler save temp files to figure out which set.