• AVR Freaks

MPLAB X IDE does not highlight some ASM instructions

Author
theozo
Starting Member
  • Total Posts : 37
  • Reward points : 0
  • Joined: 2015/03/15 02:30:18
  • Location: Hungary
  • Status: offline
2018/09/17 11:27:38 (permalink)
0

MPLAB X IDE does not highlight some ASM instructions

HI!
 
I just tried to use some ASM instructions I never used before, and I noticed that the editor does not highlight them as it does with the other instructions.
 
The platform is PIC24 (PIC24HJ64GP502), MPLABX version is 4.15, XC16 version is 1.33
 
So these instructions are:
CPBEQ.B
CPBGT.B
CPGLT.B
MULW
 
The first three are highlighted without the .B extension, according to the programmers reference manual these instructions can be used even with the .B extension.
I wonder what happens when I try compile the code with these instructions.
 
Do I miss something?
 
Regards
 
Zoltan

Attachment(s)

Attachments are not available: Download requirements not met
#1

4 Replies Related Threads

    Weydert
    Super Member
    • Total Posts : 483
    • Reward points : 0
    • Joined: 2008/07/02 04:22:40
    • Location: Aachen/Germany
    • Status: offline
    Re: MPLAB X IDE does not highlight some ASM instructions 2018/09/17 11:38:43 (permalink)
    0
    hi,
    just try whether it compiles.
    I'm using 33CH device and the "new" intruction BFINS (Bitfield insert) is not highlighted.
    But it complies and works in hardware.
    Whereas using the simulator, the instruction is ignored (simulator does nothing)-
    It's just Microchip stuff
    #2
    theozo
    Starting Member
    • Total Posts : 37
    • Reward points : 0
    • Joined: 2015/03/15 02:30:18
    • Location: Hungary
    • Status: offline
    Re: MPLAB X IDE does not highlight some ASM instructions 2018/09/22 03:54:36 (permalink)
    0
    Thanks Weydert!
     
     
    Finally I tried to compile and it causes an error:
    "PreCalculator.s:263: Error: Invalid mnemonic: 'cpbeq.b'"
     
    Edit:
    Well I just noticed that this instruction is not existing for PIC24H. I misread the documentation, so this error is expected.
    Just out of curiosity I plug the same instruction into one of my PIC24E project to check what happens there. So highlight is still not working properly, but no error on compile.
     
    Work around is easy. An instruction more, but no harm :)
     
    PS:
    I checked the parametric search chart on the web for 33CH, but the link to the documentation is not working,
    so i passed. Looks like they have hard time on the web again.
    After all, we are just human...
    post edited by theozo - 2018/09/22 04:15:59
    #3
    RISC
    Super Member
    • Total Posts : 5378
    • Reward points : 0
    • Status: offline
    Re: MPLAB X IDE does not highlight some ASM instructions 2018/09/22 14:40:57 (permalink)
    0
    Hi,
    There are several new assembly instructions that have been added for the dsPIC33CH & dsPIC33CK new families.
    Regards
     
    #4
    Weydert
    Super Member
    • Total Posts : 483
    • Reward points : 0
    • Joined: 2008/07/02 04:22:40
    • Location: Aachen/Germany
    • Status: offline
    Re: MPLAB X IDE does not highlight some ASM instructions 2018/09/23 12:04:59 (permalink)
    0
    Hi,
    I had a short test for highlighting of some CH instructions:
    -BFINS
    -BFEXT
    -MAX  A / MAX B
    -NORM
    -DIV2
    -FLIM
    None of them is highligthed.
    On the other side I was wrong with the Simulator: it executs BFINS. The other instructions are supported too by the Simulator.
    (IDE 5.0, XC16 1.35)
    By the way: Does somebody know which tool is responsible for highlighting?
    A (removable?) plugin?.
    Didn't find any human readable file including Instruction-code mnemonics. Maybe hardcoded in some of the hundreds jar files?
     
    Regards
    Rainer
     
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5