flat assembler
Message board for the users of flat assembler.
Index
> Main > Strange behaviour when using structures. |
Author |
|
revolution 13 Sep 2017, 11:48
Your values are defined as dd so they take four bytes each. You will need to adjust the offsets:
Code: mov eax, [my_PNT + 4*0] ;first value mov eax, [my_PNT + 4*1] ;second value mov eax, [my_PNT + 4*2] ;third value mov eax, [my_PNT + 4*3] ;fourth value mov eax, [my_PNT + 4*4] ;fifth value Code: mov eax, [my_PNT.x] mov eax, [my_PNT.y] mov eax, [my_PNT.z] mov eax, [my_PNT.q] |
|||
13 Sep 2017, 11:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.