V.480 bèta: small issue in asm mnemonics in listfile

Beta Testing discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

V.480 bèta: small issue in asm mnemonics in listfile

#1 Post by Dany » 28 May 2011 19:56

Hi,

I saw a small error in the listfile when in the mP code a bitconstant (e.g. IOLOCK_bit) is used:

Code: Select all

;Uart_Test.mpas,15 :: 		OSCCON.6 := 1;
0x04A0	0xA8C742  	BSET	OSCCON, #6                             <----- correct asm mnemonics
;Uart_Test.mpas,17 :: 		IOLOCK_bit := 1;
0x04A2	0xA8C742  	BSET	IOLOCK_bit, #6                         <----- incorrect asm mnemonics
"IOLOCK_bit" can not be used as first operand in a BSET or BCLR instruction (I think). The machinecodes are equal.

Perhaps this phenomenon is there in other compilers too?

Thanks in advance. :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: V.480 bèta: small issue in asm mnemonics in listfile

#2 Post by filip » 01 Jun 2011 14:01

Hi,

I will have to consult the developers regarding this matter.

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 Beta Testing”