gariaable
gariaable

Reputation: 177

How to use multiple source files for a single program with emu8086?

I'm writing a project in assembly 8086 and it's getting pretty huge. I would like to divide it in smaller parts, to make it run faster. I want to split my source code into multiple separate files, but still have them be part of the same program.

I'm using Emu8086.

I suppose in C it would look a little bit like this.

#include "sample file"

Upvotes: 1

Views: 3297

Answers (1)

rkhb
rkhb

Reputation: 14409

In emu8086 the directive include "..." works in exactly the same way as #include "..." in C. The content of the (text-)file is inserted as if it was typed in there. One caveat: The text file must be DOS formatted, i.e. the new lines have to be coded with the two characters 0x0D and 0x0A.

Upvotes: 4

Related Questions