Advertisement
Guest User

C64 BASIC Sublime Build System

a guest
Sep 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. 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!
  2.  
  3. Bash File:
  4. - Place this anywhere you'd like, really. I just keep it in the root of my c64 dev folder
  5. - Paste the following into it:
  6.  
  7. #!/bin/bash
  8. petcat -w2 -o $1.prg $1.bas
  9. x64 $1.prg
  10.  
  11. petcat will convert it from .bas to .prg, while x64 will run it via VICE.
  12.  
  13.  
  14. Sublime Build System:
  15. - In SublimeText, click "Tools" -> "Build System" -> "New Build System"
  16. - Paste the following into it:
  17.  
  18. {
  19. "cmd": ["path/to/your/bashfile.sh", "$file_base_name"]
  20. }
  21.  
  22. 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