Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>MSX BasicNew to Visual Studio Code? Get it now.
MSX Basic

MSX Basic

Wilson Pilon

|
2,009 installs
| (1) | Free
MSX BASIC language support and build tasks for Basic Dignified
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Basic Dignified: MSX

Language support and build tasks for MSX BASIC and Basic Dignified.

Configure msx-basic-dignified.badigPath with the path to this installation's badig.py. The default task converts .DMX to .BAS; the run tasks also tokenize the result with MSX Batoken and launch openMSX using the path in msx/emulator_interface.ini.

Setup and Tasks

Install the included VSIX and configure msx-basic-dignified.badigPath. Set msx-basic-dignified.pythonInterpreter if your Python command is not python. Copy the supplied .vscode/tasks.json into your program workspace's .vscode folder.

  • Dignified: MSX Convert Only: convert .DMX to numbered ASCII .BAS without tokenizing.
  • Dignified: MSX Convert and Run: convert and open the ASCII .BAS in openMSX.
  • Dignified: MSX Convert and Tokenize: convert .DMX and tokenize it with MSX Batoken (default build).
  • Dignified: MSX Convert, Tokenize and Run: convert, tokenize and launch openMSX.
  • Classic: MSX Tokenize Only / Run Only / Tokenize and Run: work directly on a numbered .BAS without Dignified conversion.

Basic Dignified Features

.DMX sources use labels ({label}), loop labels (name{ ... } closed with exit), functions (func .name(args) ... ret), define, declare, keep/#toggle line toggles and remtags (##BB:tag=value), as described in the main Basic Dignified guide. The built-in [?](https://github.com/wilsonpilon/basic-dignified/blob/HEAD/row,column) define expands to LOCATE row,column:PRINT.

declare counter:c

for c = 1 to 10
	[?](https://github.com/wilsonpilon/basic-dignified/blob/HEAD/c, 0) c
next c

Lines can be joined with a trailing _ (deleted on conversion, useful to break IF THEN ELSE) or : (kept, same as classic BASIC). Comments use REM or ' (kept), ## inline or ###...### blocks (stripped), and ''...'' blocks (kept).

openMSX

To run the code, openMSX needs a machine with a disk drive: the folder containing the converted code is loaded as a disk before the program runs, so MSX disk limitations apply (8.3 file names, no spaces, ~700kb per folder). Emulator and tokenizer options (machine, extension, settings file, throttle, verbose level, monitor) are configurable in msx/emulator_interface.ini and msx/tokenizer_interface.ini, or overridden per file with command-line arguments or remtags.

See the module guide, installation guide, and editor integration guide for details.

Snippets

for-next, if-then-else, if-goto, locate-?-print, screen-width, loop-label, func-ret, declare, define, keep and remtags.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft