Accessing the variable bits
Hi,
I migrated from PicBasic to PicBasicPro and I found this code stops running well.
MR var word: H var byte
for H=0 to 15
MR.0[H]=1 'set bit H of MR
next H
I supose this code sets to 1 all bits of MR but not works.
Any ideas?
Many thanks,
Ricard.
Re: Accessing the variable bits
Re: Accessing the variable bits
Thanks Joe,
I mean to read single bits I can use MR[bit] instead of MR.0[bit]??
Also, I can keep using this variable as a Word? I mean for example if I can assign this bit variable to a word variable:
W var word
MR=W
Can I do that?
Many thanks,
Ricard.
Re: Accessing the variable bits