How to set up a mixed bunch of C / Z80 assembler in Visual Studio Code

I want to use Visual Studio code to write code for my homegrown Z80 computer . I am using z88dk and its tools to compile C, build asm Z80 files, etc. I will write the details in the collector and other parts of C. I also need to edit the .m4 files. It would be nice if these file types had syntax coloring.

I am completely new to vscode and I have seen some languages ​​for z80, but I do not know how to continue from there - or if they will work at all.

I don’t want to write a language extension because it seems like too much work - from what I understand. I am also not a typescript / javascript developer.

Do you have a tutorial on how to configure this or any other useful resources?

+7
c visual-studio-code toolchain z80
source share
1 answer

I watch this when I print, so it may not be complete enough to guarantee a tick, but I hope it will be useful.

Per Adding Language Coloring You can use TextMate color rules to jump over these rules using something like this Z80 Asm rule set should get syntax highlighting. It doesn't seem like a lot of work, as someone else has already written the highlighting rules.

Microsoft's documentation of tasks will also help you use tasks.json to include in your workspace, "a task runner such as gulp or grunt, or any command line tool such as a compiler or linter." This way you can easily create a z88dk startup task.

+1
source share

All Articles