flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 17 Aug 2018, 13:25
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 17 Aug 2018, 13:28
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 17 Aug 2018, 15:10
How can I access some scturture field relative to some address. Something like:
Code: mov eax,[edx+POINT.y] ; mov eax,[edx+4] ??? |
|||
![]() |
|
revolution 17 Aug 2018, 16:08
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 17 Aug 2018, 16:42
Something like this?
![]() Else I will get addressing relative to POINT (label definition) offset. Code: virtual at 0
POINT POINT
end virtual |
|||
![]() |
|
revolution 17 Aug 2018, 16:45
Yes, if you don't need the memory allocated, and only want the label values.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.