I'm using 16-bit TASM compiler with DOSBox and would like to know how to include the dosbox printing function in my assembly code. What I'm trying to do is similar to the following (however that is with NASM and I need TASM. i.e. something that would work with an 8086):
global _main
extern _printf ;What would be its equivalent in TASM?
section .data
msg db "Hello World!", 0Dh, 0Ah, 0
section .bss
section .text
_main:
push ebp
mov ebp, esp
push msg ;How do we do
call _printf ;this with TASM?
add esp, 4
mov esp, ebp
pop ebp
ret