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 > Kickassembler based development on linux....
2009-02-02 21:54
PopMilo

Registered: Mar 2004
Posts: 146
Kickassembler based development on linux....

I have used kickassembler on win for some time, and now Im making transition to linux :)
And it works... until a point....

First of all I use Ubuntu 8.10
I use:
java -jar kickassembler.jar test.asm

When I type it from terminal its ok.
I made shell script file (at least I think I did... :)

compile.sh

it looks like this:
#!/bin/bash
java -jar KickAss.jar test.asm

I set permission for file to be executable...
I double click on it in gnome file browser and it executes in the background... so I don't have any info on what is going on... :(

That is because I set behaviour options in preferences of file browser to "run executable text files when they are opened". If I set it to "Ask every time" then I have a choice to run it in terminal and thats exactly what I need... but I don't want to be asked every time...

If I start it from Gnome-commander error pops out:
"No default application found for the MIME type application/x-shellscript.
Open the "File types and programs" page in the Control Center to add one."

If any of you Linux gurus can help me please do... :)
 
... 1 post hidden. Click here to view all posts....
 
2009-02-02 22:34
Iapetus/Algarbi/Wood

Registered: Dec 2004
Posts: 71
I am using Ubuntu 8.10

and in one of my projects I use a complia.sh file, the contents are:

#!/bin/bash


java -jar KickAss.jar cjmc301008.asm -o cjmc301008.o

./exomizer sfx 0x3c00 cjmc301008.o -o cjmc301008.prg
x64 cjmc301008.prg

read

and it works great

right click the .sh file, click on open and then click on "run in terminal", the line "read" will wait for a key so you can read what's going on. Hope this helps.
2009-02-02 22:59
JackAsser

Registered: Jun 2002
Posts: 2014
Yep, to get it work follow Alg's example. However, with all this GUI-shite u'll end up with http://www.drawittablet.com/mousesyndrome quicker than it takes to alt+tab, hit arrow-up and enter! :)

Either use the consoles properly (alt+tab, arrow-up then enter which will run make or whatever build system u're using) or integrate the whole shit into your favorite IDE and hit <insert-keyboard-shortcut-here> to compile and run.

Switching to a file browser and then use the mouse to double-click and run a file is seriously physically dangerous in the long run imo.

* This applies to all modern OSes ofcourse.
2009-02-03 08:35
enthusi

Registered: May 2004
Posts: 677
since you are on linux anyway I seriousy suggest to get a terminal/console window open.

What I do is:
write a proper Makefile (its beautyful once you are in it).
then during dev I enter 'make' for prg or 'make bin' for exomized output or 'make exe' for prg and automatic launch of codenet, etc...
You get all output in the very same terminal of course.
Being on terminal instead of gfx-stuff also makes launches of i.e. vice simpler!
like this for example "x64 -cartcrt bla.crt -1 my_fav_tap.tap" and so on...
2009-02-03 10:18
Iapetus/Algarbi/Wood

Registered: Dec 2004
Posts: 71
I don't use the .sh file anymore actually, I used that when I first move to Linux, now I'm using Scite editor, where you can assign your tools to keys. And I also use makefiles, I am starting to like makefiles better(see post above).
2009-02-03 10:19
PopMilo

Registered: Mar 2004
Posts: 146
I'm aware of keyboard interface advantages... :)
I was more worried about errors in gnome-commander than the real need to make it work from icon....

In win I use Crimson editor and just press Ctrl+1 to start my bat file and compile code and start vice...

In Linux I'm using terminal right now... :)

So is there some text editor like crimson on linux?
To have shortcuts for executing tools..?

In the mean time Ill use simple text editor and a terminal window.... :)

arrow up and enter rules :)
2009-02-03 10:46
yago

Registered: May 2002
Posts: 333
I am using "gedit", should be installed right away on ubuntu.
I have also a syntax file for "gedit" to highlight 6502 code.

http://k2.untergrund.net/k2asm/k2src.lang


Please note that I am using k2asm, not kickasm, but that lang-file should be work nevertheless (maybe some fiddling where kickasm and k2asm differ).

yago
2009-02-03 13:42
PopMilo

Registered: Mar 2004
Posts: 146
Hey... I thought gedit was simple like notepad... :)

Now I found options for external tools! :)
Ill try them when I get home from work...

@Yago: What should I do with your .lang file ?
I looked thru options and can not find any settings for custom syntax files....
2009-02-03 15:47
yago

Registered: May 2002
Posts: 333
popmilo: close gedit, copy that .lang file to where the other .lang files are, start gedit

on my ubuntu-install, the .lang belongs into
/usr/share/gtksourceview-2.0/language-specs/

please note that automatic recognition of assembly files might not work/requires fiddling with k2asm.lang, but you can always change that with View-Menu.
2009-02-03 17:44
PopMilo

Registered: Mar 2004
Posts: 146
Thanks people!

It works... :)

Yago's lang file works great..

I turned on few options in gedit like Line numbers, highlight current line, bracket matching... set tab width to 4....
Added "x64 test.prg" to the end of script set up to execute on "Ctrl+1" like I used to in crimson...

Once again thanks, and now the harder but much more interesting part, actual programing :)
2009-02-03 18:28
ice00

Registered: Apr 2002
Posts: 54
You can use Kate (of KDE)
it manages projects (more files being edited)
has a builtin console (to run compiler)
use Kwrite editor itself (with syntax colored)

you have all in one integrated window :)
Previous - 1 | 2 - Next
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
Peacemaker/CENSOR/Hi..
Luca/FIRE
Isildur/Samar
Oxbow/Xenon
Guests online: 93
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 No Listen  (9.6)
2 Layers  (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 Censor Design  (9.3)
5 Triad  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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