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 > Give it a go
2014-08-31 16:24
xIII

Registered: Nov 2008
Posts: 210
Give it a go

Hi all,

How do I compile and run code in relaunch64 ?
Some1 has a Script for me?
I use dasm and kickassembler code.

thx
2014-09-01 08:17
Richard

Registered: Dec 2001
Posts: 619
I take it you want to compile your program using a cross assembler, and a cruncher.

Go to the menu

Options,
Preferences,

click on the tab Compile and Run Script

Type in the PATH and commands to where your compiler is:

For example... I place ACME in a specified folder and use:

c:\acme\acme.exe -v3 xforce.asm

then underneath add the path and execution command for the cruncher... for example:

c:\exomizer\win32\exomizer.exe sfx $0400(change sfx value to the jump address of your code) xforce.prg -o xforce.prg -q

then add the path to call VICE to run the prg

c:\winvice\x64.exe xforce.prg

Name the script, and whenever ready for testing at any time, when programming click on the compiler button.

It might probably help if you add some MSDOS commands to your script, to delete the old .prg file, assemble it ... If errors occur in the code, the .prg won't exist for the exomizer to crunch it down. So it might be wise to add something like this example (Which I did for X-Force).

@echo off
del xforce.prg
c:\c64v11\c64\acme.exe -v3 xforce.asm
if not exist xforce.prg goto error
c:\exomizer\exomizer.exe sfx $0400 xforce.prg -o xforce.prg -q
if not exist xforce.prg goto error
goto end
:error
echo X-FORCE - FAILED TO COMPILE ... PLEASE CHECK SOURCE!
:end
2014-09-01 14:27
Dr.j

Registered: Feb 2003
Posts: 276
to compile ASM files you need to run a command line
like this one:
java -jar kickass.jar source.asm -o myprog.prg

you of course need to take care for accuracy of paths.
i recommend you to open the KickAssembler manual for
nice examples to compile and run on winvice . you can also
edit the configuration file of winvice for more options
and control
2014-09-02 05:58
AüMTRöN

Registered: Sep 2003
Posts: 42
For an extra portion of coolness when using DASM/VICE, also dump your symbols using the DASM "-s" switch, so you can load them into the VICE monitor. Helps a little for debugging purposes etc...

My DASM commandline looks like:
dasm.exe "%p%n%e" -o"%p%n.prg" -p3 -v3 -t2 -s"%p%n.sym" -l"%p%n.lst"

Then I launch VICE like:
x64sc.exe -moncommands "%p%n.sym" "%p%n.prg"

(quotes are cos i use crazy paths :P and %p/%n/%e specify the path, name and extension of the current file in UltraEdit - change as appropriate)

When you start the monitor, you then get all your labels when disassembling etc... can be handy. I'm sure other assemblers must have this facility too...

(Should probably mention, I'm using the iAN CooG enhanced version of DASM - http://iancoog.altervista.org )
2014-09-02 10:31
Linus

Registered: Jun 2004
Posts: 638
Offtopic:

Aumtron you piece of shite! =D
2014-09-04 06:11
xIII

Registered: Nov 2008
Posts: 210
Thx for the replies guys, I'll test things out asap!
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
Andy/AEG
Sokratekk
Alakran_64
MCM/ONSLAUGHT
megasoftargentina
katon/Lepsi De
Arcane/Glance
Didi/Laxity
MAT64
Gordian
Guests online: 108
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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