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!).
Beta 7.3.0 - compiler and software simulator
- petar.suknjaja
- mikroElektronika team
- Posts: 683
- Joined: 05 Mar 2018 09:44
- Location: Belgrade
Re: Beta 7.3.0 - compiler and software simulator
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
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
Re: Beta 7.3.0 - compiler and software simulator
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
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
}
- petar.suknjaja
- mikroElektronika team
- Posts: 683
- Joined: 05 Mar 2018 09:44
- Location: Belgrade
Re: Beta 7.3.0 - compiler and software simulator
Hi,
This is reported to our devs.
Again, thank you.
Kind regards,
Petar