Error while compiling with inline ASM enabled

Just starting out? Need help? Post your questions and find answers here.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Error while compiling with inline ASM enabled

Post 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 ?
venom
User
User
Posts: 56
Joined: Fri Jul 25, 2003 1:54 pm
Location: Australia

Post by venom »

'ret' is an assembly instruction.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post 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: )
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

When you turn on InlineASM, the Editor should highlight ASM instructions
in a different color.
This could help finding such things.

Timo
quidquid Latine dictum sit altum videtur
LJ
Enthusiast
Enthusiast
Posts: 177
Joined: Wed Apr 30, 2003 4:00 pm

Not good

Post 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
Post Reply