piclist 1996\05\03\183515a >
Thread: 16C84 addressing
www.piclist.com/techref/microchip/devices.htm?key=16C
face
flavicon
face BY : Andrew Warren email (remove spam text)



Kevin Rhoades <PICLISTspamBeGonespamMITVMA.MIT.EDU> wrote:

{Quote hidden}

Kevin:

Yes.  In fact, if you use the include file and write:

   MOVWF   TRISA

MPASM will generate code that's equivalent to "MOVWF 005H".  On top
of that, it'll give you a warning that the operand was truncated.

Given this, it seems silly to use the "085H" definition.  Using that
definition, however,

   1.  more accurately depicts what your code's doing, making it
       more self-documenting,
   2.  allows simulators and emulators to track the TRISA
       register, and
   3.  builds character.

There are any number of ways to keep the "truncated" warning
messages from appearing... One of the most straightforward is to
replace instructions like:

   MOVWF   TRISA

with instructions like:

   MOVWF   080H^TRISA

-Andy

Andrew Warren - EraseMEfastfwdEraseMEspamix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499
<199605032232.PAA19182@dfw-ix10.ix.netcom.com>

See also: www.piclist.com/techref/microchip/devices.htm?key=16C
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) 16C84 addressing

month overview.

new search...