flat assembler
Message board for the users of flat assembler.
Index
> Windows > array of struct |
Author |
|
Kevin_Zheng 17 Oct 2003, 04:58
See the belowing define:(You should be use 15 replace IMAGE_NUMBEROF_DIRECTORY_ENTRIES) )
Because you have define a field prior using RB define it. DataDirectory IMAGE_DATA_DIRECTORY rb sizeof.IMAGE_DATA_DIRECTORY * 15 ; 15 |
|||
17 Oct 2003, 04:58 |
|
kaafe 17 Oct 2003, 19:44
Thank you,
But it is already defined as, Code: IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16 |
|||
17 Oct 2003, 19:44 |
|
Kevin_Zheng 18 Oct 2003, 13:39
1. Why is IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16? Please see the format struct of PE file.
2.Because FASM struct syntax doesn't support mulitple sample struct variables deines on the struct define, so we used rb syntax for avoiding the issue. I think that the define maybe explict your idea: Code: DataDirectory IMAGE_DATA_DIRECTORY ;1 rb sizeof.IMAGE_DATA_DIRECTORY * (IMAGE_NUMBEROF_DIRECTORY_ENTRIES -1) ; 15 So we define 1+15=16 variables of IMAGE_DATA_DIRECTORY. |
|||
18 Oct 2003, 13:39 |
|
kaafe 19 Oct 2003, 00:12
Ok Kevin_Zheng, now understood. Thank you.
|
|||
19 Oct 2003, 00:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.