Skip to content

Latest commit

 

History

History
67 lines (34 loc) · 2.75 KB

walkthrough.md

File metadata and controls

67 lines (34 loc) · 2.75 KB

ZX81 Debugger Walkthrough

ZX81

This walkthrough will show you how to create, edit, compile and debug assembly programs for the ZX81.

If it is not yet the case, install the ZX81-Debugger extension in Visual Studio Code. In Visual Studio Code, click on the Extensions icons on the Activity Bar on the side and search for "ZX81-Debugger" (andrivet.zx81-debugger). Click on Install.

ZX81

If the Welcome screen is not visible, click on Welcome in the Help menu.

ZX81

A list of Walkthroughs is displayed on the right. Click on More to see all the available Walkthroughs.

ZX81

Choose Get Started with ZX81 Debugger.

ZX81

The ZX81 Debugger Walkthrough appears with its first step.

ZX81

In this first step, you will create a new ZX81 Assembly file. Click on the Create a ZX81 assembler file button. In the list of types of files, choose ZX81 Assembly File.

ZX81

The new file appears on the right.

ZX81

Click on the next step. In this step, you will enter some assembly code. Click on the Paste Example code button to paste some code in the new file. This code will display HELLO WORLD on the first line of the screen.

ZX81

Click on the next step. In this step, you will save the file. Click on the Save the ZX81 file button.

ZX81

Give a name to the file such as hello-world.zx81 and choose a location to save it. It is important to use the .zx81 extension to avoid conflicts with other extensions you may have installed.

ZX81

Click on the next step. We are now ready to debug. Click on the Show Run and Debug button.

ZX81

This opens the Run and Debug panel on the left. Then click on the Run and Debug button.

ZX81

Note: There is no need to create a launch.json file set define a debug configuration. The ZX81 Debugger will use a suitable one automatically.

The ZX81 Simulator appears on the right and the debugger stops on the first line of the code with a Z80 instruction.

ZX81

Note: The file is compiled automatically using a built-in Z80 assembler. There is no need to use an external tool.

To have more space, you can close the Welcome panel.

ZX81

To learn how to debug this example program, look at Debug Hello-World Program - A Step-by-Step Guide.