Searching \ for 'MPASM Errors' 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/language/index.htm?key=asm
Search entire site for: 'MPASM Errors'.

Truncated match.
PICList Thread
'MPASM Errors'
1996\05\21@123011 by Mark Peterson

flavicon
face
I have a couple of errors in MPASM that are troubling. I commmented the
offending lines out to assemble but of course that's a nowhere solution.

In the heading area I used  _CONFIG FFF9. I tried it with 0xFFF9, h'FFF9',
etc. but still get error. FFF9 for a 16C74 is WDT=off, clock=xtal. I realize
that in MPSIM the SC instruction lets me change the clock cycle time and
there is a way to disable the WDT. But what does that have to do with MPASM?

As per datasheet for 16Cxx's when first enter interrupt routine must
SAVE_STATUS and SAVE_Wreg. A temp copy of Wreg must exist on page0 and page1
at the same relative location. I tried this as

W_tem   EQU     0x20            ;page0 location of W_tem
W_tem   EQU     0xA0            ;page1 location of W_tem.

The idea is that by restoring the STATUS reg first the correct bank can be
pointed to for retrieval of the current copy of the accumulator.

MPASM didn't like the second equate. So what am I doing wronnnnnng!

Thanks,

spam_OUTmapTakeThisOuTspamtidepool.com

1996\05\21@132022 by fastfwd

face
flavicon
face
Mark Peterson <.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU> wrote:

> I have a couple of errors in MPASM that are troubling. I commmented
> the offending lines out to assemble but of course that's a nowhere
> solution.
>
> In the heading area I used  _CONFIG FFF9. I tried it with 0xFFF9,
> h'FFF9', etc. but still get error.

   Try it with TWO underscores instead of one.

   Also, make sure that there's some white space to the left of the
   directive; "__CONFIG" should NOT begin in column one.

{Quote hidden}

   You're attempting to redefine a symbol.  This is illegal; each
   symbol may be EQU'ed only once.  Rename the second symbol
   "W1_tem" or something.  Your interrupt routine won't change;
   it should still refer only to "W_tem".

   -Andy

Andrew Warren - fastfwdspamKILLspamix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499

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