flat assembler
Message board for the users of flat assembler.
Index
> Main > Getting the size of a file included with "file" di |
Author |
|
3ric 26 May 2014, 23:46
i have just included a file in my program
eg: my_file file 'image.jpg' So is there any way to get the size of this file using my_file variable. |
|||
26 May 2014, 23:46 |
|
revolution 26 May 2014, 23:51
Code: my_file: file 'image.jpg' sizeof.my_file = $ - my_file |
|||
26 May 2014, 23:51 |
|
3ric 27 May 2014, 00:17
thanks revolution.
|
|||
27 May 2014, 00:17 |
|
3ric 27 May 2014, 06:54
one more question is there any way to get that filename 'image.jpg' through my_file variable.
|
|||
27 May 2014, 06:54 |
|
revolution 27 May 2014, 09:17
The file name is not stored by fasm anywhere. You can use equ to hold the name.
Code: my_file.name equ 'image.jpg' |
|||
27 May 2014, 09:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.