gnupic: Re: [gnupic] differences in lcall macros


Previous by date: 24 Aug 2006 04:21:26 +0100 Re: [gnupic] gputils-0.13.4, Craig Franklin
Next by date: 24 Aug 2006 04:21:26 +0100 Re: [gnupic] Newbie and sdcc & gputils, Juerg Haefliger
Previous in thread: 24 Aug 2006 04:21:26 +0100 Re: [gnupic] differences in lcall macros, Craig Franklin
Next in thread:

Subject: Re: [gnupic] differences in lcall macros
From: "Nestor A. Marchesini" ####@####.####
Date: 24 Aug 2006 04:21:26 +0100
Message-Id: <44ED1DD5.7070203@xinet.com.ar>

Well, I have put the directive pagesel and re-calculated the checksum of
my code, thank you for explaining of pagesel, I was thinking that
pagesel always modifying the two bits of the register PCLATH.

Regards

Néstor A. Marchesini
Chajari-Entre Rios-Argentina
ICQ # 50983752 colo
MSN ####@####.####
####@####.####
####@####.####
http://www.deselectronica.com.ar


Craig Franklin escribió:

> The lcall macro in gpasm uses the pagesel directive to set the PCLATH 
> bits.  Pagesel knows how many pages are on the device you are 
> targeting, so it doesn't waste any instructions setting an unused bit.
>
> This might be different than MPLAB, but I think it is better.
>
> Nestor A. Marchesini wrote:
>
>> Hello
>> I have met a difference between MPLAB 7.01 and gpasm 0.13.4, in the 
>> macro
>> lcall, in this case it affected me because my code does checksum of 
>> all the
>> memory of program, originally it had done it with MPLAB, now change 
>> lcall
>> for mnemonic simple to change the bits of the register pclath of way 
>> of not
>> altering the original checksum of my code.
>>
>> MPASM 03.90.01 Released
>> LOC   OBJET CODE       LINE
>> 074A  158A  120A  2000 02713 lcall CheckSumPrograma1
>>
>> It would be shaped for:
>>
>> bsf  PCLATH,3
>> bcf  PCLATH,4
>> call CheckSumProgram1
>>
>> gpasm-0.13.4 beta
>> LOC   OBJET CODE  LINE
>> 074A  158A  2000  02713 lcall CheckSumPrograma1
>>
>> It would be shaped for:
>>
>> bsf  PCLATH,3
>> call CheckSumProgram1
>>
>> Maybe the difference is because I am comparing with MPLAB version 
>> 7.01 and
>> in MPLAB's later versions this difference already does not exist.
>>
>> Regards
>>
>> Néstor A. Marchesini
>> Chajari-Entre Rios-Argentina
>> ICQ # 50983752 colo
>> MSN ####@####.####
>> ####@####.####
>> ####@####.####
>> http://www.deselectronica.com.ar
>

Previous by date: 24 Aug 2006 04:21:26 +0100 Re: [gnupic] gputils-0.13.4, Craig Franklin
Next by date: 24 Aug 2006 04:21:26 +0100 Re: [gnupic] Newbie and sdcc & gputils, Juerg Haefliger
Previous in thread: 24 Aug 2006 04:21:26 +0100 Re: [gnupic] differences in lcall macros, Craig Franklin
Next in thread:


Powered by ezmlm-browse 0.20.