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
Argument out of range. Least significant bits used
-
- Posts: 114
- Joined: Fri Jul 27, 2007 10:50 am
- Been thanked: 1 time
- 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:
Hello
Which compiler are you using.
Which compiler are you using.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 114
- Joined: Fri Jul 27, 2007 10:50 am
- Been thanked: 1 time
What Compiler
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 )
I looked at the lst file and it appear to be a problem when the variable is not in page0,( block0 )
- 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:
Hello
Your probably better off asking the people at Microchip then.
I dont have much experience with subroutines in assembler.
Your probably better off asking the people at Microchip then.
I dont have much experience with subroutines in assembler.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel