Searching \ for 'Good old friend... W' in subject line. ()
Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=good+old+friend
Search entire site for: 'Good old friend... W'.

Truncated match.
'Good old friend... W'
2000\05\17@074547 by

Howdy,

Am I mistaken or is W an 8 bit register?

I try to do the following:

MOVLW   250

And get the warning:

Warning[202] C:\WINDOWS\DESKTOP\LED.ASM 60 : Argument out of range.  Least
significant bits used.

It does this for any litteral over 99.
MOVLW   99      ;Works Fine

Maybe it is just another MPLAB quirk thing...  they really are annoying to
the beginner though, I keep thinking that I am doing something wrong.

Radix set to hex, not decimal?

{Quote hidden}

<snip>
>Radix set to hex, not decimal?

Oh thank you... that works much better now.  I didn't even know about that.
I must go read up on Radix now =P

Thanks Again

Sounds to me like  your default radix is set to hexadecimal:

0x99 = decimal 153, which fits in 8 bits
0x100 = decimal 256, which doesn't.

Put:

at the top of your assembler to get it to read unformatted numbers in
decimal.

Andy

{Original Message removed}
Hi Midgley:
Try this:
....
movlw    .250        ; This will know it's decimal as a point signify decimal
number.

Midgley John wrote:

> Radix set to hex, not decimal?
>
> >{Original Message removed}
Check to see if default radix is hex or decimal. Hex would fail but decimal
would work ok.

At 07:44 AM 5/17/00 -0400, you wrote:
{Quote hidden}

Larry G. Nelson Sr.
L.Nelsonieee.org
http://www.ultranet.com/~nr

Change default radix from hex to decimal :)

On Wed, 17 May 2000, Samuel Ace Winchenbach wrote:

{Quote hidden}

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