返回资讯中心
外部精选
软件工程
#开发者实时流

ZXCode – VS Code programming environment for ZX Spectrum

Write authentic Sinclair ZX Spectrum 48K BASIC in VS Code, check it as you type,

Hacker News 最新banyek2026/10/20 · 26 天前7 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

Write authentic Sinclair ZX Spectrum 48K BASIC in VS Code, check it as you type, and build .tap files for a Spectrum or emulator.

Download the latest release · User guides · Report an issue

Requires VS Code 1.140.0 or newer. Node.js and npm are not needed to use the released extension.

Or install the downloaded package from a terminal:

code --install-extension zxcode-vscode-0.1.0.vsix

Use the filename of the version you downloaded. Releases also include a .vsix.json payload report with its SHA-256 checksum. Distribution is through GitHub Releases; ZXCode is not currently published to VS Code Marketplace.

10 PRINT "HELLO SPECTRUM" 20 STOP

The language mode should say ZX Spectrum BASIC. .zxbas files select it automatically; for a generic .bas file, choose the language mode explicitly.

Build and check use your current editor text, including unsaved edits. For a longer walkthrough with completion and navigation, see your first Spectrum BASIC program.

Edit with syntax highlighting, live diagnostics, completion and Sinclair help.

Navigate BASIC lines, variables and functions with definitions, references and Outline.

Build TAPs, format source and preview safe line renumbering.

Import supported BASIC TAPs with byte-preservation checks.

Run programs directly with a separately installed Fuse 1.8+ emulator.

Debug with breakpoints, Step Into, variables, watches and screen/memory inspection using the optional ZEsarUX setup.

Programs use real BASIC line numbers and original 48K ROM BASIC. GOTO and GOSUB are accepted as source aliases for canonical GO TO and GO SUB. ZXCode does not add labels, implicit line numbering or a new BASIC dialect. Emulators and ROMs are not bundled; they are unnecessary for editing, checking and building TAPs.

Task Guide

Editor commands, settings, CLI and troubleshooting User handbook

Build and launch with Fuse Run Spectrum

Import and preserve an existing TAP TAP import

Configure the optional debugger Debug-machine setup

Try working BASIC programs Examples

Use the CLI from source

Requires Node.js 24.x, npm and Git. This public repository can be cloned without GitHub authentication:

git clone https://github.com/banyek/ZXCode.git cd ZXCode npm ci npm run build npm run zxcode -- check examples/hello.bas npm run zxcode -- build examples/hello.bas --autostart 10

The build writes examples/hello.tap. See the CLI guide for output paths, cassette names, import and preservation commands.

Bug reports and contributions are welcome through GitHub Issues and pull requests. Build/test commands, architecture and compatibility references live in the development guide. Maintainers can follow the release procedure. Browse all documentation for design documents and historical implementation specifications.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →