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: 621
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: 277
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: 44
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: 639
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
csabanw
Jammer
Flex/Artline Designs
Chrx/Design/Chaos
Guests online: 100
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 Triad  (9.3)
5 Censor Design  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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