If you already have installed the files of Irvine, you can use the irvine16.lib
library, the 16 bit linker link16.exe
in the same folder and the MASM assembler ml.exe
of Visual Studio.
test.asm:
INCLUDE (Full Path to)\Irvine16.inc
INCLUDELIB (Full Path to)\Irvine16.lib
.code
main PROC
mov ax,@data
mov ds,ax
mov al, 123
mov bl , al
mov eax , 0
mov al , bl
call WriteInt
mov ax, 4C00h
int 21h
main ENDP
build.cmd:
@ECHO OFF
SET LIB=
PATH Path\to\VisualStudio\bin;Path\to\Irvine32
ml.exe /c /omf test.asm
link16.exe test.obj, test.exe;
Build it in a command prompt window of Windows just by entering build.cmd
. To run it, you have eventually change to DOSBox or a similar DOS emulator.