gnupic: Re: [gnupic] Not being able to use variables on pic18fxx50
Subject:
Re: [gnupic] Not being able to use variables on pic18fxx50
From:
Robert Pearce ####@####.####
Date:
22 Aug 2008 08:01:11 -0000
Message-Id: <Z68IgiDVDnrIFwTW@daniel.huneausware.local>
On Fri, 22 Aug 2008, Peter Stuge ####@####.#### wrote :
>
>> code 0
>> pagesel main
>> goto main
>>
>> code
>
>These lines should read:
>
> code
> org 0
> pagesel main
> goto main
>
Actually the former is acceptable - the 'code' directive accepts an
argument which acts as an "org" hint for the linker. In fact Peter's
suggestion is wrong, because the "org 0" takes the assembler out of
relocatable mode and back to absolute, so it makes no sense to put one
immediately after a "code" directive.
However, use of the "pagesel" macro is redundant on 18F series devices,
since the "goto" instruction on them has a 24-bit range.
What Lope has not told us, which does matter given the errors he
reports, is what his linker file contains. Also, the dump from the chip
is of far less use than the hex/lst/map files built by the linker.
--
Rob Pearce http://www.bdt-home.demon.co.uk
The contents of this | Windows NT crashed.
message are purely | I am the Blue Screen of Death.
my opinion. Don't | No one hears your screams.
believe a word. |