Wrathchild Posted September 12, 2023 Share Posted September 12, 2023 36 minutes ago, Preppie said: The build file is in the .bin folder, if I put it anywhere else it doesn't recognise it when I type 'build' I'd advise against that, the build batch script should be in the folder/project it is associated with. You have to be 'in' that folder in order to run it. As you now have the CC65 path in the global environment then that batch file can be run directly from the project folder, even via Explorer and not a command prompt. 1 Quote Link to comment Share on other sites More sharing options...
Preppie Posted September 12, 2023 Author Share Posted September 12, 2023 OK, put it in my project folder and had to cd into c:\cc65\project but it works now. Only thing is powershell is making me type .\build instead of just build. Not a problem, as soon as i click . it autocompletes. And I edited the batch file to read: cl65 -o test1.xex -t atari test1.c test1.xex Now with a couple of clicks it compiles and runs in Altirra - WE DID IT!!! OMG I'm so happy. Thanks for holding my hand guys. Quote Link to comment Share on other sites More sharing options...
sanny Posted September 12, 2023 Share Posted September 12, 2023 I'm using Emacs to edit the files. And compile my program by typing "make" in another window. Needs a Makefile. When starting to code, often use <cursor-up> in the shell window to re-run cl65.... 1 Quote Link to comment Share on other sites More sharing options...
danwinslow Posted September 12, 2023 Share Posted September 12, 2023 Don't use powershell. Just use regular old DOS cmd. You can change your VSCode terminal type using the drop downs at the top right of the terminal box. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.