| |
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... :)
|
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
what exactly do you want? mimic the behaviour of a windows.bat file? (you click on it, a terminal window opens, the program runs in it) ? |
| |
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. |
| |
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. |
| |
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... |
| |
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). |
| |
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 :)
|
| |
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
|
| |
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....
|
| |
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.
|
| |
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 :)
|
... 1 post hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |