| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Developing with Kick Assembler and Sublime
I have started to build a Kick Assembler package for Sublime text editor. A little guide on doing C64 coding with Sublime/Kick Assembler can be found here: http://goatpower.org/2013/09/15/c64-development-with-kick-assem..
Maybe useful to someone, what do i know. Nice things is that its free, very simple to setup and supports developing on both OSX and Windows.
//Swoffa |
|
| |
TWW
Registered: Jul 2009 Posts: 545 |
Great! Now show me what this can do! |
| |
Case
Registered: Aug 2002 Posts: 142 |
Installed and works, great work. Now all i need is a way to transfer my old source code from my amiga disks. |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Some features and tips can now be found here:
http://goatpower.org/2013/11/03/features-and-tips-kick-assemble.. |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
New version 0.6.0 released, stuff changed:
Improvements to Show symbol
Function, pseudocommands and namespaces visible in Show symbol
Type shown in symbol list (macro, function, label etc.)
Improvements to language definition:
Improved syntax coloring
Many more keywords recognized and colored
Better matching of functions, macros, pseudoommands and namespaces
Corrected error for OSX build variant Build and run (F7) (bad path for BuildLog)
Available here: https://sublime.wbond.net/packages/Kick%20Assembler%20(C64)
More info here: http://goatpower.org/ |
| |
Digger
Registered: Mar 2005 Posts: 437 |
Great stuff Swoffa, I've been emailing you with some questions two days ago but your csdb email is out of date. Issues have been sorted btw. :) Great work! |
| |
Fix
Registered: Feb 2003 Posts: 54 |
Looking good...
Can you also add ACME or TASM...
Question:
Why do you prefer Sublime over NP++ ? |
| |
Total Chaos
Registered: Mar 2006 Posts: 74 |
..he's an OSX'er... |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Quoting FixCan you also add ACME or TASM...
Possibly i will make a TASM-package some day, similar to the Kick Assembler (64) package. I dont use ACME so that wont happen.
Quoting FixWhy do you prefer Sublime over NP++ ?
Like TC says, i mostly use OSX, but i also use Windows a lot, and the nice thing about Sublime is it doesnt matter, since Sublime exist on both, even better packages and plugins also work on both without modification.
Also, i really like the package/plug-in stuff in Sublime, you can do powerful things with just a couple of json or xml-files, and you can do even more if your into python.
Sublime is very "keyboard oriented" and i like that, you can navigate and do things very fast with just a few keystrokes.
Anyway, both Notepad++ and Sublime are powerful and great text tools. |
| |
Dr.j
Registered: Feb 2003 Posts: 277 |
@swoffa: Probably i missed something,
when i try to d/l the package to Sublime , it reload the page
https://sublime.wbond.net/packages/Kick%20Assembler%20(C64)
do you got a direct link for the kick Ass. package? |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
@The Dr.j
To install the sublime package, first install Package Control for Sublime:
https://sublime.wbond.net/installation
Then relaunch Sublime, in the Preferences menu, select Package Control, select Install Package and write Kick to search for the package, then select it to install. Relaunch Sublime after just to be in the safe side.
//Swoffa |
| |
Fix
Registered: Feb 2003 Posts: 54 |
If you add TASM support, I'll take care of ACME :-)
I have problems when I try to add Build + Run with Acme
The Acme compile works fine, but I can't get Vice to run.
Any ideas how to solve it..
In NPP++ there was an NPPEXEC command to get it running, is there a similar in Sublime ?
/Fix |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Quoting FixI have problems when I try to add Build + Run with Acme
The Acme compile works fine, but I can't get Vice to run.
Any ideas how to solve it..
In NPP++ there was an NPPEXEC command to get it running, is there a similar in Sublime ?
It works a bit different than in Sublime than in Npp. The way to go is to make a custom build system, which is in fact a simple json-file.
You can peek at the build system for the Kick Assembler (C64) package (which compiles and runs Vice) here, under Build systems.
More info on Sublime Build systems here:
http://docs.sublimetext.info/en/latest/reference/build_systems...
You can bundle build system, language definition and more as a package, more info here:
http://docs.sublimetext.info/en/latest/extensibility/packages.h.. |
| |
Fix
Registered: Feb 2003 Posts: 54 |
I've tried to mod "CMD"
I can get Build to work with acme
But Build + Run don't work.
When I use CMD and ACME stuff then X64.exe stuff after.
It tries to assemble X64.exe
and if I try to use 2x CMD statments it uses the last one only..
I Kickassembler there is a -execute statment to use if you want to start Vice... |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Hehe...just after i posted i realized that Kick Assembler (C64) uses Kick Assemblers -execute to run Vice, but you had already replied. :)
Strangely, sublime does not seem to support multiple commands, but there seem to be ways of tricking it, for example with a "&;"-argument:
http://blog.pcitron.fr/2013/02/08/multiple-command-in-sublime-b..
Here are some more tips i have not tried:
http://www.sublimetext.com/forum/viewtopic.php?f=3&t=4370
//Swoffa |
| |
Dr.j
Registered: Feb 2003 Posts: 277 |
Thanks Swoffa , i consider using it despite the fact
i got used to Eclipse Environment , i like the
syntax coloring , the rest i have in Eclipse . need to
review the features and if they are Ok for me , but in a quick glance its looks nice (though again didn't check Project view and other elements yet) |
| |
Fix
Registered: Feb 2003 Posts: 54 |
The " & " works nicely.
I've started to make an ACME version (Build system) based on your package.
For now Build and Build and Run works.
Will add some more commands.
If anyone is interested, drop PM. |
| |
Dano
Registered: Jul 2004 Posts: 234 |
i'm pondering between kick and acme. have been using acme so far, but this sublimething looks pretty nice sofar. if you got something going, let me know! :) |
| |
Fix
Registered: Feb 2003 Posts: 54 |
For the moment, I got Sublime working with:
F1 Run Makefile (prepared with exomizer, acme, c1541 etc)
F3 Build (Compile)
F5 Build + Run (Vice)
Everything else I can handle in Makefile...
Like Assemble files, pack them, add them to .D64 and then start Vice and mount .D64 image.
Todo:
Make Acme Syntax
Sublime Package (for more easy installation) |
| |
soci
Registered: Sep 2003 Posts: 480 |
Quoting SwoffaQuoting FixCan you also add ACME or TASM...
Possibly i will make a TASM-package some day, similar to the Kick Assembler (64) package. I dont use ACME so that wont happen.
There are ST2 syntax highlighting files for 64tass here, which could be used as a starting point:
http://sourceforge.net/p/tass64/code/HEAD/tree/trunk/syntax/64t..
And a directory up a collection for some other editors.
These configurations are not very sophisticated as I use mainly vim as my IDE these days (and fte in the past). Some more regexps could be converted from the kate/gtksourceview files to ST2. |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Nice to see activity in this thread.
@Fix
Sounds great!
It has been in the back of my head to add a MakeFile-command to the Kick Assembler package, so now i will. :)
Its quite straight forward to publish your package on Package Control, just put it on a repo at GitHub or BitBucket, then follow this instruction.
@soci
Thanks for the tip, will check it out once i start making the TASM-package.
//Swoffa |
| |
Fix
Registered: Feb 2003 Posts: 54 |
@Swoffa: Just sent you Acme version to you.
@Dano: If you want it, send me a PM. |
| |
Fix
Registered: Feb 2003 Posts: 54 |
Acme for Sublime 3
Here you can find it. |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
Here is a good place to put syntax highlighting packages and similar on codebase:
http://codebase64.org/doku.php?id=base:crossdev#syntax_highligh..
Just a tip. :) |
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
Thx Frantic - was too lazy to search for that one last night :)
Anyone going to do a Dreamass version? :) |
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
Well then - I am currently putting together a DreamAss version and stumbled upon problems in the build system - maybe someone here figured it or saw it elsewhere already:
Aim is to make the build system execute
"make clean && make"
I tried about all combinations of the
"cmd": ["make clean", "make"]
syntax here but it always only executes the first command, regardless of how I am trying to stack it up. I think it would be really pointless to put some additional script to 'make clean' and then 'make' and sublime should be able to run that - just no idea how. The googled examples found contained single commands only as well.
Working with sublime 2 here still but that shouldnt be much of a difference in the build system compared to sublime 3. |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Quote: Well then - I am currently putting together a DreamAss version and stumbled upon problems in the build system - maybe someone here figured it or saw it elsewhere already:
Aim is to make the build system execute
"make clean && make"
I tried about all combinations of the
"cmd": ["make clean", "make"]
syntax here but it always only executes the first command, regardless of how I am trying to stack it up. I think it would be really pointless to put some additional script to 'make clean' and then 'make' and sublime should be able to run that - just no idea how. The googled examples found contained single commands only as well.
Working with sublime 2 here still but that shouldnt be much of a difference in the build system compared to sublime 3.
@Count Zero
See previous post from 2013-12-24 in this thread for some tips about using the &-sign for doing multiple commands.
//Swoffa |
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
Thx swoffa - exactly what I was looking for - wonder how I missed that :) |
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
Frantic will likely add this to Codebase soon.
Created an archive (not a "native sublime package" yet) for DreamAss and Sublime 2 and 3. Thx to Swoffa and Fix for the grounds and motivation to actually check into this editor.
http://ftp.pokefinder.org/DreamAss_Sublime_2_3_highlightlings_2..
Will hopefully result in a small bugfix DreamAss release soon as well. I added a small Makefile based project including minimal segment assembly for people who would like to try the only assembler doing proper "segmenting" :)
PS: now also at codebase |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
A little off topic, but anyway...
The web based Noice Kick Assembler memory viewer is now available, more info here: http://goatpower.org/2014/02/26/noice-kick-assembler-memory-vie..
//Swoffa |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Version 0.7.0 of Kick Assembler package for Sublime Text is out.
Changes:
- Bin-folder, all results of build ends up in sub folder called bin
- Language-definition/syntax-coloring corrections
More info and updated breakpoint script here: http://goatpower.org/2014/05/30/kick-assembler-package-for-sublime-version-0-7-0/
//Swoffa |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Version 1.0 of Kick Assembler package for Sublime Text is out.
Changes:
- The Java CLASSPATH is used when running Kick Assembler, which means you can place the KickAss.jar file anywhere (wanted by Trasher/Active)
- Small fixes in language-definition (syntax coloring)
- Version upped to 1.0, to indicate that all basic functionality is in there and that its fairly stable
A very small amount of more info here:
http://goatpower.org/2014/08/13/version-1-0-of-kick-assembler-p..
//Swoffa |
| |
WdW
Registered: Jun 2013 Posts: 13 |
This is really nice, thanks! I've been using CBM prog studio but I've been aching for a ST plugin. :) |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Version 1.1 of the Kick Assembler package for Sublime Text available.
Changes:
- Support for Linux (tested on Ubuntu)
- Support for Sublime Text 2
- Fixed annoying extra indentation for some snippets
Simply install/upgrade with Package control in Sublime (other options available, see below).
A new page containing all info about the package is available. The page contains everything from feature description to install instructions:
http://goatpower.org/projects-releases/sublime-package-kick-ass..
//Swoffa |
| |
Lead
Registered: Dec 2004 Posts: 20 |
Really nice, keep up the good work !!
This is the combination I work with and it works like a charm, using only F7 to assemble, Snippets and smart-auto-complete - loving it :)
Allthough 1 minor thingy is that the system PATH is not recognized as it does not find Kick (I've got Kickassembler in a different folder than the package uses). But it's as easy as making minor adjustmend to the package. |
| |
Swoffa
Registered: Jan 2002 Posts: 17 |
Thanks!!
Quoting LeadAllthough 1 minor thingy is that the system PATH is not recognized as it does not find Kick (I've got Kickassembler in a different folder than the package uses). But it's as easy as making minor adjustmend to the package.
Since Kick Assembler is java, it will be recognized if you add the full path of KickAss.jar to the CLASSPATH environment variable. Does that help or did i misunderstand?
//Swoffa |
| |
PopMilo
Registered: Mar 2004 Posts: 146 |
Spent whole morning trying to make Sublime 3 working with Kickass on Arch linux... No matter what I set in classpath it just didn't work. Like it's not using default env variables from bash.
Finally what worked was to use similar setting as in MACOS version. I've put this in build settings file (inside installed Sublime package):
"linux":
{
"env" : {"CLASSPATH":"$CLASSPATH:/home/user/dev/compilers/KICKASS/KickAss.jar"}
}
Now it works great ! Thanks for such a good tool ! |