Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] ldi instruction failing

2007-10-02 by enkitec@gmail.com

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
> 
> 
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.