Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Long story short we're going to create a build system for sublime text, point it at a bash scrip which will handle converting .bas files to .prg and then running it on VICE. All this with the push of CTRL+B!
- Bash File:
- - Place this anywhere you'd like, really. I just keep it in the root of my c64 dev folder
- - Paste the following into it:
- #!/bin/bash
- petcat -w2 -o $1.prg $1.bas
- x64 $1.prg
- petcat will convert it from .bas to .prg, while x64 will run it via VICE.
- Sublime Build System:
- - In SublimeText, click "Tools" -> "Build System" -> "New Build System"
- - Paste the following into it:
- {
- "cmd": ["path/to/your/bashfile.sh", "$file_base_name"]
- }
- This just runs your bash file, passing the current file's name as an argument ($1 in the bash script)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement