Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Developing with Kick Assembler and Sublime
2013-09-23 22:41
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
2013-09-24 02:09
TWW

Registered: Jul 2009
Posts: 545
Great! Now show me what this can do!
2013-09-24 19:00
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.
2013-11-03 22:22
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..
2013-12-10 14:38
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/
2013-12-10 21:02
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!
2013-12-20 19:18
Fix

Registered: Feb 2003
Posts: 54
Looking good...

Can you also add ACME or TASM...

Question:

Why do you prefer Sublime over NP++ ?
2013-12-21 14:03
Total Chaos

Registered: Mar 2006
Posts: 74
..he's an OSX'er...
2013-12-21 21:18
Swoffa

Registered: Jan 2002
Posts: 17
Quoting Fix
Can 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 Fix
Why 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.
2013-12-23 11:37
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?
2013-12-23 15:30
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
2013-12-23 15:42
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
2013-12-23 23:01
Swoffa

Registered: Jan 2002
Posts: 17
Quoting Fix
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 ?

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..
2013-12-23 23:12
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...
2013-12-23 23:33
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
2013-12-24 15:56
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)
2013-12-25 09:16
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.
2013-12-27 15:00
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! :)
2013-12-30 00:01
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)
2013-12-30 09:00
soci

Registered: Sep 2003
Posts: 480
Quoting Swoffa
Quoting Fix
Can 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.
2013-12-30 20:11
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
2014-01-02 00:16
Fix

Registered: Feb 2003
Posts: 54
@Swoffa: Just sent you Acme version to you.

@Dano: If you want it, send me a PM.
2014-01-02 18:33
Fix

Registered: Feb 2003
Posts: 54
Acme for Sublime 3

Here you can find it.
2014-01-03 08:40
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. :)
2014-01-03 18:05
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? :)
2014-01-20 17:59
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.
2014-01-20 18:02
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
2014-01-20 18:13
Count Zero

Registered: Jan 2003
Posts: 1932
Thx swoffa - exactly what I was looking for - wonder how I missed that :)
2014-01-21 22:21
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
2014-02-26 22:54
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
2014-05-30 08:02
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
2014-08-13 15:02
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
2014-11-02 13:47
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. :)
2014-12-28 07:22
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
2014-12-28 22:11
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.
2014-12-28 22:58
Swoffa

Registered: Jan 2002
Posts: 17
Thanks!!

Quoting Lead
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.

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
2018-01-14 13:33
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 !
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Unlock/Padua/Albion
Andy/AEG
Flavioweb/🇮🇹HF..
Peacemaker/CENSOR/Hi..
TheRyk/MYD!
Chesser/Blazon
B.A./QUANTUM
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.063 sec.