Error in assembler file after upgrade to full Swordfish

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
SHughes_Fusion
Posts: 219
Joined: Wed Sep 11, 2013 1:27 pm
Location: Chesterfield

Error in assembler file after upgrade to full Swordfish

Post by SHughes_Fusion » Wed Sep 11, 2013 2:00 pm

I've been evaluating Swordfish for a number of months and have just upgraded to the full version. However, I'm hitting an odd problem. A piece of code that compiles fine under SE causes an error in the full version.

The error (typed, as you seemingly can't cut and paste from the results bar) is:

[ASM Error]: Error[126] (Filename here) : Argument out of range (-1 not between 0 and 2)

Looking at the .asm file and the line in question, the error is:

LFSR -1,F33_U200

Looking at the .asm file generated by the SE compiler, the corresponding code is:

LFSR 1,F33_U200

Is this a problem with the compiler, or have I failed to transfer over my includes and user libraries correctly?

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Wed Sep 11, 2013 2:35 pm

Please supply a small piece of code that will enable me to reproduce the error here.

SHughes_Fusion
Posts: 219
Joined: Wed Sep 11, 2013 1:27 pm
Location: Chesterfield

Post by SHughes_Fusion » Wed Sep 11, 2013 2:37 pm

Are you happy for me to send you the whole program in a zip file? Not sure how easy it will be to cut it down to reproduce.

If it helps, the error comes right at the end of an interrupt service routine.

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Wed Sep 11, 2013 2:40 pm

Yes, send me a zipped file - that's fine.

Post Reply