-
Notifications
You must be signed in to change notification settings - Fork 0
MS BASIC Text Converter
Rudolf Stepan edited this page Jun 20, 2026
·
2 revisions
tools/basic_convert.py converts between tokenized BASIC .prg files and editable text.
Detokenize PRG to text:
python3 tools/basic_convert.py data/disk/basic.prg program.txtTokenize text to PRG:
python3 tools/basic_convert.py program.txt data/disk/basic.prg- Write or save a BASIC program into
data/disk/basic.prg. - Convert to text for editing.
- Convert back to
.prg. - Start emulator and
LOADin BASIC.
- one BASIC line per text line
- format:
<line-number> <statement> - empty lines ignored
- lines starting with
#ignored
- Supports MS BASIC V2 token set used by this project.
- Intended for practical edit/export loops, not for preserving exact original binary layout.
Generated from 6502-sbc-emulator Markdown documentation. FPGA hardware track: 6502-sbc-fpga (FPGA Wiki).