flat assembler
Message board for the users of flat assembler.

Index > Main > struct pointers

Author
Thread Post new topic Reply to topic
slacker116



Joined: 18 May 2007
Posts: 12
slacker116
Hello everyone,

i was wondering if there was a way for assign structure types to a pointer so fasm can calculate the offsets to them ex.

struct point
x dd ?
y dd ?
ends

*(assign eax to type point ptr)*

mov [eax.x],5
mov [eax.y],10

I believe i've seen masm's ASSUME statement do something like this and was wondering if this was possible in fasm? if not, maybe it could be added?
Post 18 Dec 2007, 19:32
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Check inside fasm for Windows FASM\INCLUDE\MACRO\MASM.INC
Post 18 Dec 2007, 19:38
View user's profile Send private message Reply with quote
slacker116



Joined: 18 May 2007
Posts: 12
slacker116
oh, duh... i see, thanks a lot, this has been bugging me for a while
Post 18 Dec 2007, 20:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.