Searching \ for 'setting ra.0 variable' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=setting+ra0+variable
Search entire site for: 'setting ra.0 variable'.

Truncated match.
PICList Thread
'setting ra.0 variable'
1999\11\06@135509 by Mike M

flavicon
face
I was on Dontronics readin Scott Edwards online book that shows how the basic st
amp executes some of their opcodes and when u bring their ASM files into mplab t
he code is supposed to be in microchip format, most is, but where i get confused
is there are lines like this

D = ra.0

now MPLAB gives me an error that ra.0 is not defined.  how do i define ra.0 to b
e portA bit 0?

might be a dum question but..  MikE

Send someone a cool Dynamitemail flashcard greeting!! And get rewarded.
GO AHEAD! http://cards.dynamitemail.com/index.php3?rid=fc-41

1999\11\06@160933 by paulb

flavicon
face
Mike M wrote:

> most is, but where i get confused is there are lines like this
> D = ra.0

> now MPLAB gives me an error that ra.0 is not defined.  How do I define
> ra.0 to be portA bit 0?

 The code translation has done it for you.  Just comment out those
"ra.xxx" lines, they only serve to tell *you* what's happening in the
code.

 Should I ever get the time (and that is likely never :-() I will have
a go at "cleaning" it up.
--
 Cheers,
       Paul B.

1999\11\06@165338 by PSL

flavicon
face
You can do it this way
#define    ra.0    porta,0
example

bcf    ra.0        ;set bit 0 of porta to 1
hope this help

regards

{Original Message removed}

1999\11\06@181505 by Mike M

flavicon
face
thanks a lot it did

On Sun, 7 Nov 1999 05:55:55 +0800 PSL <spam_OUTpslnTakeThisOuTspamCYBERWAY.COM.SG> wrote:
>You can do it this way
>#define    ra.0    porta,0
>example
>
>bcf    ra.0        ;set bit 0 of porta to 1
>hope this help
>
>regards
>
>{Original Message removed}

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