I have been working (on and off) on a vscode extension for writing Z80 assembly (in the context of the z88dk).
It is slowly becoming useful, so I thought I would give a heads up.
I welcome suggestions and feature requests and bug reports of course. Just go to the github repo and fill out an issue.
I hope you will give this a try (and like it).
https://marketplace.visualstudio.com/it ... ingularity
Zingularity: a vscode Z80 extensions
-
- Member
- Posts: 67
- Joined: Tue Dec 22, 2015 7:39 am
I've just installed it - that's really quite nice.
Is there a way to get cycle count in a gutter or have it calculate it for a selection?
It looks like there's a few parsing issues when I load up libsrc/stdio/asm_printf.asm - I expect them for the non-z80 code, but valid z80 instructions are failing as well.
Is there a way to get cycle count in a gutter or have it calculate it for a selection?
It looks like there's a few parsing issues when I load up libsrc/stdio/asm_printf.asm - I expect them for the non-z80 code, but valid z80 instructions are failing as well.
-
- Member
- Posts: 67
- Joined: Tue Dec 22, 2015 7:39 am
Thanks for trying it out.
I have not yet found a good way to inject the gutters. To work-around this, you can configure 'zingularity.formatter.printBytes' and/or 'zingularity.formatter.printCycles' to 'true' (settings.json in the .vscode folder of your project) and reformat the code (Shift-Alt-F). This will print the bytes/cycles as comments. Best I could do at this point -and I needed the feature myself ;-)
I see I do not support index offset with a minus sign (IX-2) only (IX+2). That is a bug.
I also still need to make 'A' optional for instructions that act on the accumulator. I have taken a strict approach here and instructions like 'xor b' should be written as 'xor a, b'
I see CP A, '%' does not fix it, though - needs investigation.
I have not yet found a good way to inject the gutters. To work-around this, you can configure 'zingularity.formatter.printBytes' and/or 'zingularity.formatter.printCycles' to 'true' (settings.json in the .vscode folder of your project) and reformat the code (Shift-Alt-F). This will print the bytes/cycles as comments. Best I could do at this point -and I needed the feature myself ;-)
I see I do not support index offset with a minus sign (IX-2) only (IX+2). That is a bug.
I also still need to make 'A' optional for instructions that act on the accumulator. I have taken a strict approach here and instructions like 'xor b' should be written as 'xor a, b'
I see CP A, '%' does not fix it, though - needs investigation.
-
- Member
- Posts: 67
- Joined: Tue Dec 22, 2015 7:39 am
-
- Member
- Posts: 67
- Joined: Tue Dec 22, 2015 7:39 am