yeah i would just like to know what's the syntax in FASM to declare and use unions inside a structure.
is it with the "virtual at" function? can anybody give me an example?
Posted on 2003-03-28 19:49:26 by Kobra
Posted on 2003-03-29 02:31:23 by Tommy
Hi Kobra,
Yes....here is example


struc Test
{
.first dd 0
.second dd 0
virtual at .second
.Third dd 0
end virtual
}


this would create a union between .second and .Third in the structure
here is a second example below, which breaks up .second into two .Third and .fourth



struc Test
{
.first dd 0
.second dd 0
virtual at .second
.Third dw 0
.Fourth dw 0
end virtual
}


anyway hope this helps...as i am new to fasm so ya enjoy
Posted on 2003-03-29 15:01:00 by keyoke
ok great thanks i think i get it
Posted on 2003-03-29 22:30:53 by Kobra