
store register in pb variable?!
store register in pb variable?!
i wonder if there is an easy way to store register values (eax etc) into "normal" purebasic variables... i have some complex functions in mind for that, and just wanted to make sure that there isnt an easy way to do this... 

Code: Select all
a=0 ;Initialize the value!
MOV a,eax
Debug a

easy to forget that you need to initialize the value.
hehe i would suggest you to look more carefully in your helpfile
it have description and syntax for all the commands, jump table & more.!
the optimizing is also nice to look through when one learns a bit more!

but of course its easy to miss. Ow if you want a nice helpfile & !optimization tips! for assembler there is a nice link in the helpfile under the- The used variables or pointers must be declared before to use them in an assembler keyword
topic too!Inline x86 ASM
it have description and syntax for all the commands, jump table & more.!
the optimizing is also nice to look through when one learns a bit more!