I’m working in x86 assembly in 16bits.
I have three files that need to share ‘variables between them’ – basically, the data segment. When I compile them, as in the following:
ml file1.asm,file2.asm,file3.asm io.lib
They cannot access each other’s variables
How do I share a data segment, and thus variables between the files?
Thank you!
Just about like in C, you create a header (usually given the extension “.inc”) that contains external declarations for what’s contained in another file, as in: