flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
1. Your POINT structure doesn't define its size so it will be tricky, but it can be done like this:
Code: Points POINT ; the first POINT structure rept 9 { local .dummy_label .dummy_label POINT } |
|||
![]() |
|
revolution
Jin X wrote: And then use mov eax,[Points.y+edx*8] Code: mov eax,[Points.y+edx*sizeof.POINT] Last edited by revolution on 17 Aug 2018, 16:46; edited 1 time in total |
|||
![]() |
|
Jin X
How can I access some scturture field relative to some address. Something like:
Code: mov eax,[edx+POINT.y] ; mov eax,[edx+4] ??? |
|||
![]() |
|
revolution
Jin X wrote: How can I access some scturture field relative to some address. Something like: Code: struc POINT { y dd ? } POINT POINT ;define POINT.y label |
|||
![]() |
|
Jin X
Something like this?
![]() Else I will get addressing relative to POINT (label definition) offset. Code: virtual at 0
POINT POINT
end virtual |
|||
![]() |
|
revolution
Yes, if you don't need the memory allocated, and only want the label values.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.