|
Post by Kurious on Oct 5, 2007 12:58:13 GMT -5
I'm trying to write assembly code for the C64. I do remember how to code 6510. However, I do not know which is the best tool to use. I'm using Kubuntu Linux and I don't know of a crossassembler that I can use. I found Turbo Macro Pro for the C64 itself, which is fine by me, however, I don't know how to make this work. I LOAD and SYS 32768; then I write
*=$4000 LDA #$01 STA $D020 RTS
Then I press <- and 3 to compile; S to start and wierd behavior happens and SYS 32768 works no more.
Help is appreciated.
|
|
|
Post by Robin Harbron on Oct 5, 2007 14:20:26 GMT -5
*=$4000 LDA #$01 STA $D020 RTS Then I press <- and 3 to compile; S to start and wierd behavior happens and SYS 32768 works no more. Hi! Do you know which version of Turbo Macro Pro you are using? The regular distribution includes something like 4 different builds, depending on whether you have a REU or not, or have a multi-C64 setup. The REU version is quite good, but you'll need to enable the REU in your emulator. I assume you're using VICE? In WinVICE, it's located under Settings->Cartridge/IO Settings->REU Settings... Let me know if that helps. If you're looking to cross compile, you should probably check out cc65: www.cc65.org/It has a fair learning curve, but is very powerful. There is also xlang: www.ffd2.com/fridge/slang/I've been using it again lately. It allows you to freely mix assembly with the C64-specific "Slang" language.
|
|
|
Post by Kurious on Oct 5, 2007 14:32:08 GMT -5
I can try compiling cc65. Slang looks interesting except that I only use emulators (which don't emulate SCPU).
I'm interested in this TMP thing. I was using the REU version; and I did have it enabled in the emulator. But it still works incorrectly, i.e., fills the screen with @ and uneven colors, and does not take SYS 32768.
Update-- I tried the non-REU without a REU configuration and it works. Perhaps it's a VICE error.
|
|
|
Post by Robin Harbron on Oct 5, 2007 15:22:27 GMT -5
I can try compiling cc65. Slang looks interesting except that I only use emulators (which don't emulate SCPU). Look for the xlang package - it has a built-in partial SCPU emulator that allows the slang binaries to run in other environments. I think it'll work for you. I've used the REU in WinVICE quite a bit without problems, but maybe there is a problem with the build you've got, yeah. I can't help you there, but maybe someone else will wander by and give some advice.
|
|
|
Post by iamdenteddisk on May 5, 2008 14:00:01 GMT -5
The best asm setup I have achieved is listed below,mostly because of integration wich helps me keep codeing without haveing to stop defrag my mind then compile then run ,with these tools you just write the code hit F6 and your playing the game ,oh and I might add all these where free downloads too.
1.relaunch64 ,wich is a windows GUI graphic user interface in english that basicly makes asm for the 6502/6510-more user friendly it has pulldown menues and supports up to three different asemblers but "this is no assembler" but an interface between you and a commandline driven assembler,also has support for autostart of emulator and more .
2.kick assembler wich is a java based assembler I dont know much about it but it seems to work for me so I like it.
3.winvice1.22 emulator,just an awesome windows based gui-emulator!,morebuilt-in tools.
This setup and some reference manuals and most nooby's will be hacking out code in no time. As for native assemblers i use turbo6&7,a super snapshotV5 crt cartrige image the coolest thing its like "The force of the jedi" happy codeing!*****iamdenteddisk@yahoo.com
|
|