gnupic: gpasm extended mode -- MPLAB message
Subject:
gpasm extended mode -- MPLAB message
From:
Sivaram Gowkanapalli ####@####.####
Date:
3 Jun 2011 05:14:02 -0000
Message-Id: <SNT125-W5796AB299AE71BEB29A9D5D27F0@phx.gbl>
Hello,
I built the below file with gpasm and gplink.
But, when I import the test.cof file into MPLAB, MPLAB
complains with a message of "The Extended CPU Mode Configuration
bit is enabled, but the program that was loaded was not built using extended
CPU instructions. Therefore, your code may not work properly"
I used the --extended flag with gpasm and alos used the latest svn version
of gpasm. Just wanted to check if the extended mode of gpasm actually works.
; ============ test.asm begin
; Build commands
; gpasm --extended --object test.asm
; gplink --map --object --output test.hex test.o
;message: using default linker script "/usr/local/share/gputils/lkr/18f4455.lkr"
errorlevel 0
list p=18f4455 ; set processor type
list n=0 ; supress page breaks in list file
include <p18f4455.inc>
include <coff.inc>
; Instruction set extension and Indexed Addressing mode enabledd
CONFIG XINST = ON
vars udata 0x00
_temp res 1
RESET_VECTOR CODE 00000h ; Reset and Interrupt Vectors
pagesel start
goto start
MAIN CODE
global start
start
lfsr 2, 0xff
movlw 0xff
;movff WREG,_temp
movwf _temp,ACCESS
incf _temp,F,ACCESS
incf _temp,F,ACCESS
incf _temp,F,ACCESS
pushl 0x1
end
;============== test.asm end
Thanks
Siva