- Create a folder and open this folder in vscode
- Install MASM/TASM
- Open the extension's settings and change
DOS environment emulator : DOSBOX
Masmtasm.ASM: Mode WORKSPACE
- unresolved external : don't forget EXTRN (without E) & PUBLIC
- unexpected end of file encountered: don't forget END main & END <proc_name>
- missing segment
The steps are simple:
- Right click on a file -> open Emulator
- check that the mounted folder is correct
dir
when executing this ☝ you should see the asm files you just wrote in this folder,
if not, please open vscode in this folder and try again
- Assemble all files using masm/tasm
tasm *.asm
- link
link main.obj+file1.obj+file2.obj...
- When prompted, give the file a name: for example 'game' then press enter a few times
Run File[main.exe]: game
- Type that name you just gave to the file and press enter. congratulations
game