Search found 65 matches

by PhilHaw
Fri Oct 07, 2022 9:39 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

When you fixed it you put a bracket ([) in Frank but it should be a brace ({). In math we used to call them 'square brackets' and 'curly brackets' :D So, you used a square bracket, but it should have been a curly bracket! DOH!!!! OK, fixed the fix so it should be fixed. Too many things going on tod...
by PhilHaw
Fri Oct 07, 2022 8:47 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

Oops, must have missed it on the copy and paste. Fixed it in the above for anyone else that tries it. To anyone else messing with this the 'No Build System' error means an error in the build file. For some reason the JSON parser in Sublime Text was not able to properly parse it so look for a typo (...
by PhilHaw
Fri Oct 07, 2022 7:31 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

The error handling works well and double-clicking on an ERROR: line in the build report jumps to the corresponding line in the source code - brilliant! I could be quite happy with this as I normally run the Assemble first to check for errors before attempting to run the program from RAM on the Dev B...
by PhilHaw
Fri Oct 07, 2022 7:11 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

Many thanks Frank. I haven't been able to get this to work yet: it's giving me a 'No Build System' when I try to build which probably means an error in the build file? The batch file works ok if I run it from the Windows command window. Tried to post a screenshot but the image doesn't appear :cry: U...
by PhilHaw
Thu Oct 06, 2022 1:48 pm
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

Frank, sorry for mis-attributing the Linux build file to Matthew rather than you! The FX-Core.sublime-build file I created does actually work as far as Assembling the code, running it from RAM and End run from RAM are concerned. So, it does basically the same as what the Notepad++ batch file approac...
by PhilHaw
Thu Oct 06, 2022 12:44 pm
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

Sublime text uses 'build files' to run your build and this is what Matthew wrote for the Linux version. They are JSON files and I'm sort of getting it to work but every time I try to put the 'if' statement into the command it gives me an error, usually "-a was unexpected at this time". I'm...
by PhilHaw
Thu Oct 06, 2022 9:46 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

Update: In case there may be spaces in the file path and/or filename, it should have quotes added around it, which have to be 'escaped' with '\'

Code: Select all

"shell_cmd" : "FXCoreCmdAsm.exe -a \"$file_path/$file_name\"",
by PhilHaw
Thu Oct 06, 2022 8:42 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

So far so good Frank but I'm struggling with getting the correctly formatted command to pass to Windows cmd.exe via the shell_cmd option in the Sublime Text build file. In the Linux version it's: // default build type is assemble only "shell_cmd": "if mono FXCoreCmdAsm.exe -a '$file_p...
by PhilHaw
Wed Oct 05, 2022 2:06 pm
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

First attempt at hacking Matthew's Linux Sublime text build file to run on Windows. I haven't got the error handling implemented yet. { // set working dir for relative paths // change this to suit the location of FXCoreAsm.exe "working_dir" : "C:/Program Files (x86)/Experimental Noize...
by PhilHaw
Wed Oct 05, 2022 7:46 am
Forum: Software
Topic: Command line assembler
Replies: 45
Views: 57012

Re: Command line assembler

Having recently become a fan of Sublime text on Windows, is there any chance of a Windows version of the fxcore_hw.sublime-build for Linux under mono?

Perhaps it could be based on the Linux version; maybe I will have a go at hacking it :geek:

Phil