tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "NASM build",
"type": "shell",
"command": "nasm -f bin -o ${fileDirname}/bin/${fileBasenameNoExtension}.bin ${file}",
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": []
},
{
"label": "VHD write",
"type": "shell",
"command": "python VHDwriter.py ${fileDirname}/vhd.vhd ${fileDirname}/bin/${fileBasenameNoExtension}.bin 0",
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": []
},
{
"label": "Build",
"dependsOn": [
"NASM build",
"VHD write",
"boches dbg"
],
"dependsOrder": "sequence",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "boches dbg",
"type": "shell",
"command": "D:\\Bochs-2.7\\bochsdbg.exe -q -f E:\\program\\nasm_computer\\bochsrc.bxrc",
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": []
}
]
}
VHDwriter.py
只能处理固定大小的vhd文件, 见VHD文件写
Comments | NOTHING