MPASM 5.42 Versus MPASM 5.49

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
DannyScott
Posts: 22
Joined: Thu Sep 05, 2013 4:45 pm
Location: United Kingdom

MPASM 5.42 Versus MPASM 5.49

Post by DannyScott » Mon Sep 01, 2014 11:27 am

Swordfish installs with MPASM 5.42 and MPASM generates the following error when I attempt to build my code:-

[ASM Error]: Error[122] C:\Work\Software\MAIN_DAVID.asm 5779 : Illegal opcode (SBCDSTD)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5807 : Illegal character (1)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5796 : Illegal character (0)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5791 : Illegal character (0)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5820 : Illegal character (2)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5812 : Illegal character (4)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5805 : Illegal character (3)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5801 : Illegal character (2)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5798 : Illegal character (4)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5803 : Illegal character (8)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5822 : Illegal character (4)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5838 : Illegal character ($)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5827 : Illegal character (3)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5831 : Illegal character ($)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5783 : Illegal character (2)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5829 : Illegal character (2)
[ASM Error]: Error[108] C:\Work\Software\MAIN_DAVID.asm 5835 : Illegal character (2)
BUILD FAILED: Mon Sep 01 11:15:21 2014

However - MPASM 5.49 builds without any errors, but my code doesn't function correctly. I am using MPLAB V8.90 with an ICD3. Everything in the file registers / watch window of the variable I am inspecting appears to be correct, and I am now convinced I am seeing some odd behaviour, due to not using the version of MPASM which Swordfish is meant to be used in conjunction with. However I am unable to resolve the error I have listed above as I am not great at deciphering assembler! I am using SF version 2.2.2.2 ICC 1.1.6.4

If anyone else has seen this error, and can suggest a fix I would be extremely grateful.

Jerry Messina
Swordfish Developer
Posts: 1473
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: MPASM 5.42 Versus MPASM 5.49

Post by Jerry Messina » Mon Sep 01, 2014 12:58 pm

Usually you'll get errors like that if you try compiling for a device which isn't supported by the version of MPASM you're using.

I use MPLAB 8.92 and MPASM 5.51 along with SF with no problems.

To update the SF MPASM version just copy the files MPASMWIN.exe, 8bit_device.dll and 8bit_device.info from the Microchip/MPASM Suite folder to your Swordfish/Bin folder.
You might want to save the existing ones first.

Try that and see if it helps. What device are you using?

DannyScott
Posts: 22
Joined: Thu Sep 05, 2013 4:45 pm
Location: United Kingdom

Re: MPASM 5.42 Versus MPASM 5.49

Post by DannyScott » Mon Sep 01, 2014 2:06 pm

Thanks Jerry.

I have upgraded to MPLAB 8.92 now, and copying the 8bit_device.dll and 8bit_device.info files as well I can use MPASM 5.51, so I am singing from exactly the same hymn sheet as you and my code builds successfully. I am still seeing exactly the same 'odd behaviour' which I will pm you about shortly.

I am using the relatively new 18F67J94 - you may remember the problems with Microchip moving the USB BDT's some time ago?

Post Reply