| |
spinal Account closed
Registered: Jan 2005 Posts: 47 |
noob requires help to start coding
ok here goes, i would like to code something for the C64, don't have a clue where to start, i cnow a little C, a little more BASIC and havent even looked at ASM, so what im asking is -
Is there a good C cross-compiler that i can download from anywhere? (assuming that it is free) |
|
... 27 posts hidden. Click here to view all posts.... |
| |
spinal Account closed
Registered: Jan 2005 Posts: 47 |
So you guys are saying i shoudn't use C on the C64...
OK then, ill first do some BASIC, only problem is, i dont have an origional C64 anymore, and im using VICE, does anyone know how to map the keyboard so the keys match up? i dont like having to remember that '#' = '=' and ']' = '*' etc. I would like to be able to type BASIC code without it ending up as complete gibberish!! |
| |
yago
Registered: May 2002 Posts: 333 |
You can crossdevelop BASIC-Programs with your favorite Text-editor.
Then use "petcat -w2" to produce the loadable Program.
petcat is a part of VICE, there are also other Tokenizer.
@enthusi: Did you take a look at k2devel.sourceforge.net/doc_k2asm.html ? Pretty "structurized" ASM
|
| |
enthusi
Registered: May 2004 Posts: 677 |
@yago, no I havent until now.
Nice :)
I just wanted to point out that C isnt THAT slow and that I'd rather code something in C than nothing in asm.
Actually, right now, In coding several things in asm :o)
Also, when I mean asm I mean NO cross-asm, so this might add to the difference c-asm.
As long as anyone codes anything for the c64 Im happy :)
Be it brainfuck or forth (java excluded). |
| |
Raf
Registered: Nov 2003 Posts: 343 |
spinal : VICE allows to remap keyboard , actually linux version of vice is configured as PC layout by default - not c64 alike (so pressing shift+2 gives @ instead of " ) and this should also be confgiurable under windows. |
| |
spinal Account closed
Registered: Jan 2005 Posts: 47 |
can i assume that BASIC would be too slow for a side-scrolling platform game? (cos thats what i would like to eventually do) |
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
no, as i said: on c64 you have to use assembler for EVERYTHING except a few tools which spend 99% of their time waiting on user input and printing text. |
| |
spinal Account closed
Registered: Jan 2005 Posts: 47 |
are you saying BASIC is NOT too slow, or that it IS? |
| |
tlr
Registered: Sep 2003 Posts: 1790 |
Quote: are you saying BASIC is NOT too slow, or that it IS?
BASIC _is_ too slow. You need to code in assembly to do demo stuff. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
spinal: to give you an idea: to calculate a 256 byte long sinus table takes about 1 minute in basic. |
| |
enthusi
Registered: May 2004 Posts: 677 |
morning :)
I think all basic indeed good for is testing stuff.
Simple stuff. Like making sprites or something. If you already did it in basic, it well get even simpler in asm. The main prob about basic and speed is, that its 'unpredictable' - there are many rather odd ways to speed up basic. Non of them is nice ;)
In your case, I'd take a nice asm-tutorial thats not all too technical and start right away. Maybe with a monitor-prg frist but you will soon want an assembler I guess. First programs are just as easy as in basic and acutaully they make more sense.
I think this one is nice for very first steps:
http://www.redizajn.sk/tnd64/assemble_it.html
Have fun & code well,
enthusi |
Previous - 1 | 2 | 3 | 4 - Next |