-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.json
39 lines (39 loc) · 1.18 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build assembly",
"type": "shell",
"command": "nasm -f elf64 assembler.asm -o object.elf"
},
{
"label": "linker script",
"type": "shell",
"command": "ld.lld -m elf_x86_64 -o program object.elf -nostdlib -T linker.ld",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "build assembly"
},
{
"label": "qemu run",
"type": "shell",
"command": "qemu-system-x86_64 -drive format=raw,file=program.bin",
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "linker script"
},
{
"label": "install usb",
"type": "shell",
"command": "sudo dd if=program.bin of=/dev/<INSERT YOUR DEVICE HERE> && sync",
"dependsOn": "linker script",
"problemMatcher": []
}
]
}