I'm a beginner in programming of PIC, somebody can it come to my help? Here
my problem: I want to test the contents of an indexed table of the form
flag(Y), Y being a variable
The variable Y=2
How to test bit 2 of flag ?
I thought making :
y equ H' 11 '
btfss flag, Y
this instruction does not give satisfaction because it uses the value
litteral of Y (H'11') and not its contents.
Seems to be this topic was discussed some time ago so I'll try to
refresh it briefly. Feel free to ask any clarifying questions.
; y -> input value in range 0 .. 7 ;
; W -> output will mask like 00000001 .. 10000000
Yves Heilig wrote:
More... (looser matching)
- Last day of these posts
- In 1998
, 1999 only
- New search...