Difference between revisions of "VS Code"

From MSX Game Library

(ASxxxx Cross Assembler and Linker)
(Recommended extensions)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
== Source code debugging ==
 
== Source code debugging ==
 +
 +
=== Emulicious Debugger ===
 
{{Emulicious}} Using the [https://emulicious.net/ Emulicious]'s VS Code extension, you can debug your C source code directly from VS Code.
 
{{Emulicious}} Using the [https://emulicious.net/ Emulicious]'s VS Code extension, you can debug your C source code directly from VS Code.
  
 
See details: [[Emulators#How to debug using VS Code]].
 
See details: [[Emulators#How to debug using VS Code]].
  
== Recommended extensions ==
+
<img src="https://raw.githubusercontent.com/Calindro/emulicious-debugger/master/images/readme/clevel-stepping.gif" />
 +
 
 +
[[Image:Github_Logo.png|16px]] GitHub: https://github.com/Calindro/emulicious-debugger
 +
 
 +
== Assembler ==
  
 
=== ASxxxx Cross Assembler and Linker ===
 
=== ASxxxx Cross Assembler and Linker ===

Latest revision as of 16:14, 16 October 2024

While MSXgl can be used with any source code editor, there are some very useful features that work specifically with Visual Studio Code.

Source code debugging

Emulicious Debugger

Using the Emulicious's VS Code extension, you can debug your C source code directly from VS Code.

See details: Emulators#How to debug using VS Code.

Github Logo.png GitHub: https://github.com/Calindro/emulicious-debugger

Assembler

ASxxxx Cross Assembler and Linker

This extension gives you syntax colorization for SDCC-compatible assembler syntax used in MSXgl: asz80.

Once the extension has been installed, add "asz80" language to file associations:

Item Value
*.asm asz80
*.s asz80

Github Logo.png GitHub: https://github.com/georgjz/asxxxx-vscode

Z80 Assembly meter

This extension gives you information about the size and cost (in CPU cycles) of a piece of assembler code.

Once the extension has been installed, you have 2 options to change:

  • Set Platform option to "MSX" to have accurate cycle count, including the MSX specific wait-state.
  • Add "asz80" and "c" to the languageIds table. Adding "c" allows to get assembler analyzer for assembler code inlined into C function.

by theNestruo

Github Logo.png GitHub: https://github.com/theNestruo/z80-asm-meter-vscode/tree/master