Skip to content

Instantly share code, notes, and snippets.

@greg76
Created September 19, 2018 20:26
Show Gist options
  • Save greg76/5be76b8bd664950407f0a4234181db24 to your computer and use it in GitHub Desktop.
Save greg76/5be76b8bd664950407f0a4234181db24 to your computer and use it in GitHub Desktop.
Build and run x86 asm files on MacOS with NASM and DosBox
{
"shell": true,
"env": {
"DOSBOX": "/Applications/DOSBox.app/Contents/MacOS/DOSBox"
},
"cmd": ["nasm -f bin ${file} -o ${file_base_name}.com && \\$DOSBOX -c \"MOUNT C ${file_path}\" ${file_base_name}.com"],
"file_regex": "^(.+):([0-9]+)()?: error: (.*)$",
"working_dir": "${file_path}",
"selector": "source.assembly",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment