Better efficiency?

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

Better efficiency?

#1 Post by rmteo » 18 Jan 2010 17:40

With reference to this post http://www.mikroe.com/forum/viewtopic.php?t=23299

Can this be done to save 66% code space?

Code: Select all

'LATC = not LATC

        MOV        LATC, WREG
        COM        W0
        MOV        WREG, LATC

Code: Select all

'LATC = not LATC

        COM        LATC
Why pay for overpriced toys when you can have
professional grade tools for FREE!!! :D :D :D

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: Better efficiency?

#2 Post by srdjan » 19 Jan 2010 12:06

Hi,
rmteo wrote:With reference to this post http://www.mikroe.com/forum/viewtopic.php?t=23299

Can this be done to save 66% code space?

Code: Select all

'LATC = not LATC

        MOV        LATC, WREG
        COM        W0
        MOV        WREG, LATC

Code: Select all

'LATC = not LATC

        COM        LATC
Done :D
Will be available with the next release.
Thanks.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”