Of course, you just need to use the linker. Collect each of your files:
nasm -o prints.o prints.asm nasm -o usingPrintTest.o usingPrintTest.asm
You can then pass the output objects to your linker. Sort of:
gcc -o myProgramName prints.o usingPrintTest.o
Using gcc , because the linker driver can solve some kind of funny business by linking the OS libraries needed to run your program. You may need to make some declarations in usingprintTest.asm so that it knows that print_Achar and os_return will be defined elsewhere - in nasm , you will use the extern assembler directive:
extern print_Achar extern os_return
source share