'random newbie question'
I'm getting this assembler error:
A84: Assembler for PIC16C84 V1.01
Charles Manning 1996
sndin.PCT:48 btfss tamp,04h
ERROR AT ^
ARG 1: Need value in range 0..7fh, (0 to 127)
from this line:
here's some context:
movf porta,w ; get input
movwf newst ; save it
xorwf oldst,w ; test if it's changed
goto loop ; same, just loop
and here's the equate:
tamp equ 0Eh
but I don't think it's involved, as I've tried substituting oldst
I've tried various combinations of spaces in the line, added a comment
at end, tried 4,4h,04h for the bit (yes, I want bit 4), and I always
get this dismal Need value in....
I'm sure this is some trivial thing, but I just passed the 1 hours mark
trying to figure it out.
Need loco motors?
At 09:01 26/07/99 +1000, you wrote:
Where is the EQUATE defined? At the start or latter in the code by this, is
it before the lable is used??
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...