Searching \ for 'assembly question' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/index.htm?key=assembly+question
Search entire site for: 'assembly question'.

Truncated match.
PICList Thread
'assembly question'
2000\06\16@101718 by Andre Abelian

picon face
Hi to all,

I see this example code in some body else's design and I
do not clearly understand the meaning of   " movlw  _A-CDS "
or movlw _B-CDS. Since _A, _B and CDS are labels what is the purpose of
subtracting from
each other . can some body explain more about this.



CDS
_A
                retlw H'80'
                dt "A"
                retlw 0

_B
                retlw H'81'
                dt "B"
                retlw 0


               movlw    _A-CDS
               call            output


Andre

2000\06\16@102341 by Martin Hill

picon face
Hi,
     The _A-CDS gives the offset of A from CDS.  It's used to add
the offset of _A onto the PC to get the correct place to return the
data.  Used in a routine to output  data to an lcd here  by the looks
of it.

Martin

{Quote hidden}

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...