I have until now been using FC5, and therefore have a lot of old programs programs, which is programmed in FC5. Unfortunately i do no longer have access to my former FC5 licens, and i am now started to use FC7, starting with the 30 days trial.
In some of my programs i have inline assembly code, but this code made in FC5 seems to create a lot of troubles in FC7.
The code would look something like this:
Code: Select all
asm{
send1: BSF _porta, 0
NOP
NOP
NOP
BCF _porta, 0
slut1: END
}
I found out that a solution on the error could be found by changing the code to"(" expected
string expected
")" expected
Code: Select all
asm(
"send1: BSF _porta, 0"
"NOP"
"NOP"
"NOP"
"BCF _porta, 0"
"slut1: END"
);
And in the generated assembly-code, everything in the assembly-block seems to be squeezed together on 1 single line like:syntax error
Undefined symbol "0NOPNOPNOPNOPBCF"
I hope someone here can tell me what is happening and how to use inline assembly in FC7send1: BSF _porta, 0NOPNOPNOPNOPBCF _porta, 0slut1: END ;#
Andreas