Argument out of range. Least significant bits used

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
KeithSloan
Posts: 114
Joined: Fri Jul 27, 2007 10:50 am
Been thanked: 1 time

Argument out of range. Least significant bits used

Post by KeithSloan »

I am using a macro ( Common apparently )

movlf macro literal,dest
movlw literal
movwf dest
endm

And each time I use it I get a warning Argument out of range. Least significant bits used.

Am I doing something wrong? Is there anyway to avoid the warning

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

Which compiler are you using.

KeithSloan
Posts: 114
Joined: Fri Jul 27, 2007 10:50 am
Been thanked: 1 time

What Compiler

Post by KeithSloan »

I am using vanilla MPLAB so assume its MASM.

I looked at the lst file and it appear to be a problem when the variable is not in page0,( block0 )

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Hello

Your probably better off asking the people at Microchip then.

I dont have much experience with subroutines in assembler.

Post Reply