flat assembler
Message board for the users of flat assembler.
Index
> Main > FASM 'ASSUME' Directive? |
Author |
|
Irwin 25 Jan 2008, 20:33
Hi!
Whilst using MASM32 in the past I would use an 'assume' directive to make the compiler aware to the fact that a register is pointing to a structure, so I could reference the structure like this: Code: mov eax, dword ptr ds:[ebx+045h] assume eax:POINT mov esi, dword ptr ds:[eax.x] Now that I'm using FASM I can't find any such function, I've already looked through the documentation for such a directive/macro but I can't find any so I was wondering if there is any at all that I may have missed/overlooked. Any help would be appreciated |
|||
25 Jan 2008, 20:33 |
|
LocoDelAssembly 25 Jan 2008, 20:51
Use "include 'macro\masm.inc'"
And yes, it is not documented unfortunatelly, I think that http://flatassembler.net/docs.php?article=win32 should give some comments about it. PS: Well, there is a reason for lack of documentation http://board.flatassembler.net/topic.php?p=37076#37076 |
|||
25 Jan 2008, 20:51 |
|
dap 26 Jan 2008, 11:39
I've never used this feature with MASM but doesn't it look the same as VIRTUAL ?
|
|||
26 Jan 2008, 11:39 |
|
vid 26 Jan 2008, 11:58
you can get effect similar to "ASSUME" by using "virtual", but it's not the same.
|
|||
26 Jan 2008, 11:58 |
|
MHajduk 26 Jan 2008, 12:23
You can write
Code: mov esi, dword [eax + POINT.x] |
|||
26 Jan 2008, 12:23 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.