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 > crossassembling
2007-01-02 07:17
null
Account closed

Registered: Jun 2006
Posts: 645
crossassembling

Since I have a laptop running Win2k now, I was looking for a crossassembler... but all I can find are tools to convert a .txt file to a c64 understandable format...(atleast, that's what I think they do...o.O)

Isn't there some kind of complete package running under Win2k, like you have Turbo Assambler on the c64?

and if there isn't... START CODING!!! =P

...nah, just kidding... in that case, I'd like to hear an easy solution for coding on a PC.

Cheers,
Knoeki.
 
... 35 posts hidden. Click here to view all posts....
 
2007-01-02 13:13
algorithm

Registered: May 2002
Posts: 705
or place something such as

*=$0800
!byte $xx,$xx,$xx,$xx,$xx,... etc

where xx is a combination of bytes which create an sys call in basic
2007-01-02 13:19
Frantic

Registered: Mar 2003
Posts: 1641
Like algorithm said.. Something like:

* = $0801

basic: ;"SYS2061"
.byte $0c,$08,$64,$0c,$9e,$32,$30
.byte $36,$31,$00,$00,$00
your_code_starts_here:

...OR use pucrunch or something like that to make it an executable (which includes such a SYS-instruction in its output).
2007-01-02 13:23
Scout

Registered: Dec 2002
Posts: 1570
Guys (algorithm+frantic).. his program has to load first.

Besides that, Knoeki is an absolute n00b regarding assembler so leave the pucrunch/exomizer bells 'n' whistles to rest for a while.
2007-01-02 13:36
Devia

Registered: Oct 2004
Posts: 401
inc $d020 is n00b'ish?
2007-01-02 13:39
null
Account closed

Registered: Jun 2006
Posts: 645
Quote: inc $d020 is n00b'ish?

I just used that as an example to test Relaunch + DASM + VICE... but VICE doesn't load my code, and there's the problem... as soon as I have this fixed, I'm gonna check out the Hex files again...=)
2007-01-02 13:45
Devia

Registered: Oct 2004
Posts: 401
x64.exe -autostart kickassdemo.prg

that will load the kickassdemo.prg and do a RUN, so you'd need that basic header or just ALT+R and then SYS4096 or whatever after loading.

..you "might" need to be in the directory of kickassdemo.prg.. can't remember if Vice handles paths properly or if that was some other emul that fucked that up.
2007-01-02 13:51
null
Account closed

Registered: Jun 2006
Posts: 645
Quote: x64.exe -autostart kickassdemo.prg

that will load the kickassdemo.prg and do a RUN, so you'd need that basic header or just ALT+R and then SYS4096 or whatever after loading.

..you "might" need to be in the directory of kickassdemo.prg.. can't remember if Vice handles paths properly or if that was some other emul that fucked that up.


well, in relaunch64 I alredy configured VICE to have -autostart (that happens automaticly)... It's just that VICE doesn't load the code...o.O


/knoeki
2007-01-02 14:54
Frantic

Registered: Mar 2003
Posts: 1641
perhaps the cross assembler you use doesn't apply a 2 byte load adress to the start of the file? ...but you said DASM, right? I think that one does..

You may need to switch cartridges off in VICE to get it working automatically. Otherwise you'll have to press F1 or so, if it's action replay.. ...and if you don't do it relatively fast, VICE won't go on with the autoload, eh.

(BTW, if you have RR-Net, I'd suggest using that instead, and transfer the code to the real thing instead of VICE.)
2007-01-02 15:22
Oswald

Registered: Apr 2002
Posts: 5074
knoeki: enter monitor in vice and check wether it has loaded your prg (most probably it has not). Anyways you should see the emulated c64 telling you:

load"myprogram.prg",8,1
searching for myprogram.prg
loading
ready
run

if you dont see the above only the basic prompt, then vice havent loaded anything up.

in vice: alt+m, and then d1000 in the monitor prompt. if you dont see inc d020 at the 1000 adress then your prg is not loaded, then doublecheck your commandline settings in relaunch64.
2007-01-02 15:22
null
Account closed

Registered: Jun 2006
Posts: 645
Quote: perhaps the cross assembler you use doesn't apply a 2 byte load adress to the start of the file? ...but you said DASM, right? I think that one does..

You may need to switch cartridges off in VICE to get it working automatically. Otherwise you'll have to press F1 or so, if it's action replay.. ...and if you don't do it relatively fast, VICE won't go on with the autoload, eh.

(BTW, if you have RR-Net, I'd suggest using that instead, and transfer the code to the real thing instead of VICE.)


I don't have an RR-net... I wish I had one...

also, I dont use any carts in VICE...

...strange...o.O;
Previous - 1 | 2 | 3 | 4 | 5 - 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
Visage/Lethargy
kbs/Pht/Lxt
E$G/HF ⭐ 7
Fred/Channel 4
Aomeba/Artline Desig..
zscs
Electric/Extend
JCH/Vibrants
iAN CooG/HVSC
Laurikka
Guests online: 89
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Comaland 100%  (9.6)
8 Wonderland XIV  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Morph  (9.5)
8 Dawnfall V1.1  (9.5)
9 Onscreen 5k  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.2)
Top Logo Graphicians
1 Sander  (9.8)
2 Mermaid  (9.5)
3 Facet  (9.4)
4 Shine  (9.4)
5 Pal  (9.4)

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