flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
The way to achieve that is with the use of extrn/public and use a linker.
|
|||
![]() |
|
LocoDelAssembly
Do you want to extract "file" functionality from fasm or getting the file contents from an assembly source which contains a "file" directive invocation somewhere?
|
|||
![]() |
|
cthug
I want to have an asm file like:
format ELF file variable, "SOMEFILE" C File: int main() { printf("Variable: %s", variable); } compile with like: fasm test.asm test.o gcc main.c -c -o main.o gcc main.o test.o -o test NOTE: I wrote this quickly so it may not be correct |
|||
![]() |
|
revolution
Put 'variable' as public in the fasm file and as extrn in the C file and rewrite the line as "variable: file 'SOMEFILE'".
|
|||
![]() |
|
cthug
ty I shall test
![]() |
|||
![]() |
|
DOS386
Move to Linux or High Level Languages ?
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.