VsCode Nasm Bochesdbg


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文件写

声明:Hello World|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - VsCode Nasm Bochesdbg


我的朋友,理论是灰色的,而生活之树是常青的!