Yahoo Groups archive

AVR-Chat

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

Thread

Re: [AVR-Chat] re: Assembler notation

Re: [AVR-Chat] re: Assembler notation

2004-02-04 by samperi@ampertronics.com.au

At 08:19 AM 4/02/04 +0100, you wrote:
>use a V_ prefix to name the VALUE of a given bit
>use a M_ prefix to name the MASK  of a given bit
>
>i.e.
>V_Latch = 6
>M_Latch = (1<<V_Latch)
>

That's pretty clever! Of course a clever assembler
should be able to know if one intends to use a mask
or a value dependind on the instruction preceding  it
or at least that would be nice. I keep on making the 
same mistakes over and over......

Regards

John Samperi

******************************************************
                        Ampertronics Pty. Ltd.
  11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
         Tel. (02) 9674-6495       Fax (02) 9674-8745
               Email: samperi@ampertronics.com.au
                 Website  http://ampertronics.com.au
* Electronic Design   * Technical Services   * Contract Assembly
******************************************************

Re: [AVR-Chat] re: Assembler notation

2004-02-05 by Dave VanHorn

>
>
>That's pretty clever! Of course a clever assembler
>should be able to know if one intends to use a mask
>or a value dependind on the instruction preceding  it
>or at least that would be nice. I keep on making the
>same mistakes over and over......

Me too. I've started a little notebook of "Things not to do."
Every time I hit one of these HomerCode(tm) items, I put it in the book.
That way, when I feel like I'm chasing my tail, I can check the book. I'm 
also writing down how to find/fix them, as I figure out good methods.

But Atmel isn't helping us too much with poorly thought out mnemonics.

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.