I've recently started using Simon Owen's pyz80 extension for VS Code which provides a nice wrapper around pyz80 assembler as well as Simon's samdisk tool. It has a few handy keyboard shortcuts to (i) assemble the code, (ii) create a disk image and (iii) optionally send the assembled code to a real SAM via the Trinity ethernet adapter.
It provides Z80 syntax highlighting but it's not as fully featured as ASM Code Lens. VS Code can't use both at the same time, so I sometimes toggle back to that and use VS Code's built-in tasks to run the assembler:
Code: Select all
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "pyz80",
"type": "shell",
"command": "pyz80.py",
"args": [
"--obj=${fileBasenameNoExtension}.bin", // assembled binary (optional)
"-o${fileBasenameNoExtension}.dsk", // disk image name
"--nozip", // don't compress disk image
"${file}" // source file
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}