Run Microsoft BASIC programs for the 6502 processor directly from VSCode using cbmbasic — a 100% compatible Commodore 64 BASIC V2 interpreter (licensed from Microsoft).
Requirements
Install cbmbasic locally:
git clone https://github.com/mist64/cbmbasic.git
cd cbmbasic && make
Then set the path in VSCode settings: cbmbasicRunner.interpreterPath
Usage
Open any .bas file and:
Press Ctrl+Shift+R to run
Right-click → Run BASIC Program
Click ▶ Run BASIC in the status bar
Example
10 PRINT "HELLO FROM 6502 BASIC!"
20 FOR I=1 TO 5
30 PRINT I
40 NEXT I
50 END