views:

33

answers:

2

I'm building a program(in 16-Bits) using Assembly(nasm as the assembler), but as I love to have things organized in different source files. Let's think I have 2 sources, one called main.asm and another one called source2.asm, but I want to call the source1.asm content in the middle of main.asm. How could I do this?

+2  A: 

Use the %include directive. See nasm manual section 4.5

Mark
But if I want just to call a label that is defined at `source2.asm`?
Nathan Campos
+1  A: 

Use GLOBAL and EXTERN.

starblue