When assembling with AVRASM32, you can write: ldi r16, byte1(256040); = 0x28 ldi r17, byte2(256040); = 0xE8 ldi r18, byte3(256040); = 0x03 Mark Jordan On 3 Oct 2007 at 8:00, John Samperi wrote: > At 07:52 AM 3/10/2007, you wrote: > >R25 is a 32 bit register, > > Since when? All registers are 8 bits. > You need to load R25 and then R26 with 8 bits. > Anyway 256040 is larger than 16 bits. > > > > Regards > > John Samperi > > ******************************************************** > Ampertronics Pty. Ltd. > 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA > Tel. (02) 9674-6495 Fax (02) 9674-8745 > Email: john@ampertronics.com.au > Website http://www.ampertronics.com.au > *Electronic Design * Custom Products * Contract Assembly > ******************************************************** > > > > > Yahoo! Groups Links > > >
Message
Re: [AVR-Chat] ldi instruction failing
2007-10-02 by enkitec@gmail.com
Attachments
- No local attachments were found for this message.