Page 1 of 1

Inline ASM; Evaluating Structured Pointer

Posted: Sat Jun 24, 2006 8:52 am
by Dreglor
It's kinda annoying when I have to put a structured pointer into a variable before using it in inline asm

Like such

Code: Select all

;Inline ASM ofcourse

Random.Struct

;some code generating structure values

Pointer = Random\Bob
mov eax, Pointer

;ASM code

can't that be changed into...

Code: Select all

;Inline ASM ofcourse

Random.Struct

;some code generating structure values

mov eax, Random\Bob

;ASM code

Sure thats doesn't seam like a big change in code but it becomes cumbersome to use the pointer = blah\struc then asm, not to mention it looks ugly especially when used frequently.

Posted: Sat Jun 24, 2006 10:41 am
by Trond
HUH?

Code: Select all

Random.RECT
Random\right = 3
Apple.l


MOV eax, Random\right
MOV Apple, eax
Debug Apple

Posted: Sat Jun 24, 2006 9:28 pm
by Dreglor
erm this is odd,
It works by it self but with my project which huge it get syntax errors (it's built in to a macro) hmm this is turing into a bug...

edit: opps my part for the syntax error
but there now giving me invalid memory access for the same data :\
somthing not right here