Simple Question on Inline ASM
Posted: Mon Nov 30, 2009 10:03 am
Coming back after long time not using Purebasic, I must say that the Editor has made a significant developement.
The compiler was also improved, and especially i like that its available in 32 and 64 bit.
In the compiler, i am missing primarily a second pass (i still have to declare things before using them - is that really state of the art 2009?), and i don't understand why there is no GOSUB / RETURN inside of Procedures.
Just trying to get it done with the Inline ASM like this:
Now i wonder that the compiler did not increase the "a" by 10 this way.
What i am missing here?
The compiler was also improved, and especially i like that its available in 32 and 64 bit.
In the compiler, i am missing primarily a second pass (i still have to declare things before using them - is that really state of the art 2009?), and i don't understand why there is no GOSUB / RETURN inside of Procedures.
Just trying to get it done with the Inline ASM like this:
Code: Select all
Procedure hey()
a.l = 1
CALL l_asm_0001
Debug a
Goto over
asm_0001:
; a+10
a=a+10
RET
over:
Debug a
EndProcedure
hey()
What i am missing here?