Yahoo Groups archive

AVR-Chat

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

Message

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

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.