gnupic: Re: [gnupic] differences in lcall macros


Previous by date: 24 Aug 2006 02:26:17 +0100 Re: [gnupic] Newbie and sdcc & gputils, Craig Franklin
Next by date: 24 Aug 2006 02:26:17 +0100 Re: [gnupic] gputils-0.13.4, Craig Franklin
Previous in thread:
Next in thread: 24 Aug 2006 02:26:17 +0100 Re: [gnupic] differences in lcall macros, Nestor A. Marchesini

Subject: Re: [gnupic] differences in lcall macros
From: Craig Franklin ####@####.####
Date: 24 Aug 2006 02:26:17 +0100
Message-Id: <44ED0129.9070708@users.sourceforge.net>

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 02:26:17 +0100 Re: [gnupic] Newbie and sdcc & gputils, Craig Franklin
Next by date: 24 Aug 2006 02:26:17 +0100 Re: [gnupic] gputils-0.13.4, Craig Franklin
Previous in thread:
Next in thread: 24 Aug 2006 02:26:17 +0100 Re: [gnupic] differences in lcall macros, Nestor A. Marchesini


Powered by ezmlm-browse 0.20.