Inline ASM; Evaluating Structured Pointer

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Inline ASM; Evaluating Structured Pointer

Post 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.
~Dreglor
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

HUH?

Code: Select all

Random.RECT
Random\right = 3
Apple.l


MOV eax, Random\right
MOV Apple, eax
Debug Apple
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

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