Searching \ for 'random newbie question' 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/method/math.htm?key=random
Search entire site for: 'random newbie question'.

Truncated match.
PICList Thread
'random newbie question'
1999\07\23@150620 by Anne Ogborn

flavicon
face
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:
       btfss   tamp,04h

here's some context:

loop    ;
       movf    porta,w ; get input
       movwf   newst   ; save it
       xorwf   oldst,w ; test if it's changed
       movwf   tamp
       btfss   tamp,04h
       goto    loop    ; same, just loop
       movf    newst,w
       movwf   oldst
       incf    portb,f


and here's the equate:
tamp    equ     0Eh

but I don't think it's involved, as I've tried substituting oldst
for tamp

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.

--
Anniepoo
Need loco motors?
http://www.idiom.com/~anniepoo/depot/motors.html

1999\07\25@200508 by Tony Nixon

flavicon
picon face
Hi Annie,

Try MPASM and see if you get the same error. I can't see any problem
either.

Anne Ogborn wrote:
{Quote hidden}

--
Best regards

Tony

'The Engine' - Design your own programmer.

http://www.picnpoke.com
Email spam_OUTpicnpokeTakeThisOuTspamcdi.com.au

1999\07\25@211222 by Dennis Plunkett

flavicon
face
At 09:01 26/07/99 +1000, you wrote:
{Quote hidden}

Where is the EQUATE defined? At the start or latter in the code by this, is
it before the lable is used??


Dennis

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