Page 1 of 1

Error while compiling with inline ASM enabled

Posted: Fri Aug 01, 2003 5:04 pm
by newbie
Hi,

i wanted to try a good tutorial about ASM on this forum, but when i enable the inline ASM, even without any ASM code in my app, i have the following error on a popup :

Title
"PureBasic - Assembler Error"

Text
"PureBasic.asm [1021] :
ret=#PB_ProcessPureBasicEvents
error : reserved word used as symbol"

If i add ASM code, same error, is this a bug or more probably have i forget to do something ?

Posted: Fri Aug 01, 2003 5:17 pm
by venom
'ret' is an assembly instruction.

Posted: Fri Aug 01, 2003 5:39 pm
by newbie
i can't know because i don't know ASM, so thanks you, now it's works

(notice that i posted in the beginner area and not in bug report :wink: )

Posted: Fri Aug 01, 2003 8:19 pm
by freak
When you turn on InlineASM, the Editor should highlight ASM instructions
in a different color.
This could help finding such things.

Timo

Not good

Posted: Sun Aug 03, 2003 6:58 pm
by LJ
This is not a good tutorial on Purebasic Inline Assembly if they used the ret command as a variable. In the tricks and tips section there is a very good tutorial I've written on Purebasic Inline Assembly, you might want to check it out.

Lj