Truncated match.
PICList
Thread
'Good old friend... W'
2000\05\17@074547
by
Samuel Ace Winchenbach
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
MOVLW 100 ;Bad.
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.
2000\05\17@074751
by
Midgley John
Radix set to hex, not decimal?
{Quote hidden}>-----Original Message-----
>From: Samuel Ace Winchenbach [SMTP:
spam_OUTswinchenTakeThisOuT
EECE.MAINE.EDU]
>Sent: 17 May 2000 12:45
>To:
.....PICLISTKILLspam
@spam@MITVMA.MIT.EDU
>Subject: Good old friend... W
>
>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
>MOVLW 100 ;Bad.
>
>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.
2000\05\17@075210
by
Samuel Ace Winchenbach
<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
2000\05\17@075218
by
Andy Baker
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:
radix dec
at the top of your assembler to get it to read unformatted numbers in
decimal.
Andy
{Original Message removed}
2000\05\17@094404
by
Ismael M. Khangane
Hi Midgley:
Try this:
radix dec
....
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}
2000\05\17@115202
by
Larry G. Nelson Sr.
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}>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
>MOVLW 100 ;Bad.
>
>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.
>
>
Larry G. Nelson Sr.
L.Nelson
KILLspamieee.org
http://www.ultranet.com/~nr
2000\05\17@133443
by
rleggitt
Change default radix from hex to decimal :)
On Wed, 17 May 2000, Samuel Ace Winchenbach wrote:
{Quote hidden}> Date: Wed, 17 May 2000 07:44:55 -0400
> From: Samuel Ace Winchenbach <
.....swinchenKILLspam
.....EECE.MAINE.EDU>
> Reply-To: pic microcontroller discussion list <
EraseMEPICLISTspam_OUT
TakeThisOuTMITVMA.MIT.EDU>
> To:
PICLIST
spam_OUTMITVMA.MIT.EDU
> Subject: Good old friend... W
>
> 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
> MOVLW 100 ;Bad.
>
> 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.
>
More... (looser matching)
- Last day of these posts
- In 2000
, 2001 only
- Today
- New search...