Sublime Forum

Build System for ACME Cross-Assembler?

#1

Hi, I’m trying to get ACME to assemble my 6510 source code and then call WinVice (Emulation) after, to execute the .prg file. I’m stuck and I can’t get ACME to compile. The directory structure I have set up is something like this:

c:\6510\ACME (inside is ACME.exe assembler)
c:\6510\Source (inside is my .asm file and workspace saved)
c:\6510\Sublime
c:\6510\WinVice

To create a build system I then went to:
Tools > Build System > New Build System

I called it “ACME.sublime-build”, this is it’s content:

{
“shell_cmd”: [“c:\6510\acme\acme.exe”, “%f”],
“shell_cmd”: [“c:\6510\WinVICE\x64.exe”, “%e.o”]
}

I have selected my build (Tools > Build System > Acme"), press CTRL+B and get the message “No Build System” in the status line.

Can anyone please advise how to create a build system for ACME? Thank you in advance!

0 Likes

#2
  • First of all you need to escape the backslash, i.e. "C:\\6510\\acme\\acme.exe".
  • You should use the build system variables, i.e. "C:\\6510\\acme\\acme.exe $file_name"
  • You cannot chain commands the way you are using it, but can chain it inside the command, i.e. "shell_cmd": "C:\\6510\\acme\\acme.exe $file_name && C:\\6510\\WinVICE\\x64.exe $file_base_name.o"
  • Add "working_dir": "${project_path:${folder}}", to execute it in the current folder
0 Likes

#3

Hi, thank you very much for pointing me into the right direction.
I somehow managed to make it work with your help. However, one issue I have encountered is Sublime starts a thread of WinVice but no window opens up. I worked around it calling a .bat file. It’s not very elegant but it works as long the project is on fixed paths on your HDD:

{
“cmd”: [“c:\6510\acme\acme.exe”, “-o”, “prg.o”, “$file”],
“cmd”: [“x64.bat”]
}

the x64.bat file:

c:\6510\WinVICE\x64.exe prg.o

0 Likes

#4

If you change the build system to

{
    "shell_cmd": "C:\\6510\\acme\\acme.exe -o prg.o $file && C:\\6510\\WinVICE\\x64.exe prg.o",
    "working_dir": "${project_path:${folder}}"
}

it does not start?

0 Likes