Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Re: problems

2008-03-23 by John Samperi

At 01:48 AM 24/03/2008, you wrote:
>Yes, that's what I use.

GAS gives me flatulence.....

>With regard to multiplying by two to get a word address, this is only
>needed if you are going to use the address to refer to code.

His DATA is in code space .cseg, so the address needs to
be multiplied by 2.

For OP:
.cseg

LABEL:  .db 0x41, 0x42, 0x00
LABLE1: .db 0x43, 0x44, 0x45, 0x00   etc.

    ldi     Z,      LABEL


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

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.