I have a problem with a variable named "rax" (like the x86_64 register). It all worked fine until I wrote a bit of inline assembler, that uses the actual rax register:
Code: Select all
dim as integer rax
asm mov rax,42 ' This should work with the register, not the variable
print rax ' 42
The bit of asm should actually move 42 to the register, not the variable. I thought you would need "[rax]" in inline asm to move to/from memory.
Temporarily I renamed the variable to "_rax", which is ugly, but works. Is there another solution maybe?