Here's the entire assembly program:
.model small .stack 256 .code start: call printer mov ax, 3 ; store 3 into ax mov ah, 76 ; back to DOS mov al, 0 ; no errors int 21h ; interupt -> DOS end start And this is where I define the C function printer
#include <stdio.h> void printer() { printf("Hello!\n"); } When compiling the assembly code, I get an error: undefined symbol: printer. In C I would do an #include "file.h", how do I achieve the same result here?