'(Fwd) Re: rlf on W OK?'
|The following was inadvertently sent to me by John Payson; I'm
forwarding it to the PICLIST.
------- Forwarded Message Follows -------
From: John Payson <Mcs.Net> supercat
Subject: Re: rlf on W OK?
Date: Thu, 16 Jan 1997 00:03:39 -0600 (CST)
Rather than treating the letters W and F as special cases when they
occur as the second operand of an instruction [e.g. rlf foo,w] the
MPASM assembler just has them defined as "0" and "1". Thus, "rlf w"
is equivalent to "rlf 0" which is in turn equivalent to "rlf INDF,f".
BTW, IMHO while I like some of Microchip's mnemonics, some things can
be a bit confusing and provide major room for flubbing. Some
beginners might benefit (if using an assembler that supports such
things) from defining some macros such as:
ifbit -> btfsc
ifnot -> btfss
loadw -> movf ,w
stow -> movwf
or at least bearing them in mind when writing code.
More... (looser matching)
- Last day of these posts
- In 1997
, 1998 only
- New search...