Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.18 KB

File metadata and controls

45 lines (40 loc) · 1.18 KB

Linking multiple files in dosbox and vscode

Prerequisites

  1. Create a folder and open this folder in vscode
  2. Install MASM/TASM
  3. Open the extension's settings and change
    DOS environment emulator : DOSBOX
    Masmtasm.ASM: Mode WORKSPACE

Common errors & quick fixes

  • unresolved external : don't forget EXTRN (without E) & PUBLIC
  • unexpected end of file encountered: don't forget END main & END <proc_name>
  • missing segment

Run

The steps are simple:

  1. Right click on a file -> open Emulator
  2. 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

  1. Assemble all files using masm/tasm
tasm *.asm
  1. link
link main.obj+file1.obj+file2.obj...
  1. When prompted, give the file a name: for example 'game' then press enter a few times
Run File[main.exe]: game
  1. Type that name you just gave to the file and press enter. congratulations
game

Video:

Simple video demo