Beta 7.3.0 - compiler and software simulator

Beta Testing discussion on mikroC PRO for PIC.
Post Reply
Author
Message
janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Beta 7.3.0 - compiler and software simulator

#1 Post by janni » 27 Jan 2019 23:06

Compiler does not recognize new ADDFSR and SUBFSR instructions :( .

Simulator nicely emulates jumps using "$+n" over MOVFFL instruction when n equals 6 by adding execution of a NOP (two last words of MOVFFL are a special form of NOP) :) . It'd be even better if it worked also for n=4 (two NOPs) - unfortunately, in such case simulator stalls (as well as for MOVFF or other two-word instructions).

BTW, software simulator still doesn't emulate the DC bit in STATUS register (K42 and K83 processors do not even have this bit declared in their definition files!).

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: Beta 7.3.0 - compiler and software simulator

#2 Post by petar.suknjaja » 28 Jan 2019 22:55

Hi Janni,
Thank you for reporting this,
I'll check this out and pass it to our developers.
If you have anything to share with this, a code or a snippet, I would greatly appreciate.

Kind regards,
Petar

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Beta 7.3.0 - compiler and software simulator

#3 Post by janni » 29 Jan 2019 01:19

Hi Petar,

About the most important thing - the new assembly instructions not being recognized - there's really nothing to add.

As for the assembly jump or DC bit, I guess the developers well know about it. Still, here's an example

Code: Select all

asm {
         movlw   10
         addlw   6
         btfss   STATUS,DC   // DC is not being set
         nop

         bra     $+6
         movffl  R0,R1       // simulator executes one nop - very good

         bra     $+4         // simulator stalls here
         movffl  R0,R1       // two nops should be executed

         bra     $+4         // simulator stalls here
         call    sub         // one nop should be executed
}

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: Beta 7.3.0 - compiler and software simulator

#4 Post by petar.suknjaja » 30 Jan 2019 12:05

:idea:
Hi,
This is reported to our devs.
Again, thank you.

Kind regards,
Petar

Post Reply

Return to “mikroC PRO for PIC Beta Testing”