MSX BASIC with Visual Studio Code - FDumarey/MSX GitHub Wiki

How to write MSX BASIC with Visual Studio Code

Install Visual Studio Code

Just install Visual Studio code the normal way.

Add the gramar for MSX-BASIC

This is easy since there is an existing extension available: image

I made some custom tasks for VS-Studio

I made three tasks:

  • to compile with MSXBAS2ROM
  • to compile with MSXBAS2ROM and startup the WebMSX site in order to run the .ROM directly
  • to compile and copy the ROM file to my Synology NAS system. In that way I can mount it directly on my MSXVR and use it on a real MSX system

` { "label": "Compile MSX Basic to ROM", "type": "shell", "command": "cd "${fileDirname}"; msxbas2rom -c ${fileBasename}" },

    {
        "label": "Compile & Run MSX Basic to ROM",
        "type": "shell",
        "command": "cd \"${fileDirname}\"; msxbas2rom -c ${fileBasename}; Start-Process https://webmsx.org"
    },

    {
        "label": "Compile & Copy MSX Basic to ROM",
        "type": "shell",
        "command": "cd \"${fileDirname}\"; msxbas2rom -c ${fileBasename}; copy ${fileDirname}\\${fileBasenameNoExtension}.rom \\\\synology\\msxvr\\rom"
    }

`