| |
PAL
Registered: Mar 2009 Posts: 292 |
want to code
OK dudes... I need to start coding. I am in the need to get up and running... I am a fool and an idiot but I know a lot about the c64 and I know how to but not in code. I need someone who can guide me to start to be a coder, that said it is not like I want to be feed with links... I want to start coding with you as a guide and my mentor!
My dream: is there someone who can put aside one hour a day or second day with me and that know how to make me understand the basics so that I can expand on my own? I know nothing in commands and such as of start we can assume.
I know it might sound stupid but are there anyone out there who could do this? with me?
I can pay back with logos, graphics, part ideas and such...
pal of offence |
|
... 81 posts hidden. Click here to view all posts.... |
| |
QuasaR
Registered: Dec 2001 Posts: 145 |
Still one of the most complete tutorials about coding: http://codebase64.org/doku.php?id=base:demo_coding_introduction
When I started coding, it was very important to understand and get a feel of the hardware itself, e.g. getting the VIC registers right and the register thingie (A, X and Y). The commands itself are very basic, like Mixer explained (store values at specific times in a certain register...) |
| |
4mat
Registered: May 2010 Posts: 66 |
I learnt from TMR's The Hex Files tutorial. |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quoting FungusI suggest getting Jim Butterfield's book if you are a complete beginner.
Seconded, Butterfields book is the best to learn from, and once you have the basics down you should read Puterman's articles on demo coding. |
| |
PAL
Registered: Mar 2009 Posts: 292 |
thanx for answering. I have started a bit here. I know how to set colors of screen and border, I know how to pint at a mem location and also to display something from there in a sprite or as chars on screen. I know some basics... I do not know but I start to understand some. I think it is so hard to get the concept of a loop and then something else should happen but still continuing in the loop and all but I think with some practice it will come to me.
Made a logo shower today.
http://www.flottaltsaa.no/c64/logo_a.prg
http://www.flottaltsaa.no/c64/logo_b.prg
I will check out different stuff more. Thanx to all that did send me messages and also answered here and my dudes in offence and so on.
I will code a part on the c64! |
| |
algorithm
Registered: May 2002 Posts: 705 |
Remember that everyone starts from the beginning. Not a case of someone waking up one day then coding a trackloader immediately etc. Carry on persevering and dont give up |
| |
Ejner
Registered: Oct 2012 Posts: 43 |
I'm also in the process of learning how to code and I find the book "The Programmers Reference Guide" very helpful. I'd say it's almost a must-have along with the original c64 Users Guide.
Nice logo showers you coded. However you are assuming the charcolour is light blue. That is not always the case, so you need to change all the characters on the screen to be light blue, colour #$0e, easily done with a small loop:
lda #$0e
ldx #$00
loop sta $d800,x
sta $d900,x
sta $da00,x
sta $dae8,x
inx
bne loop
:-) |
| |
Ejner
Registered: Oct 2012 Posts: 43 |
Cruzer will of course tell you that you need to unroll your loop to optimize your code :-)
lda #$0e
sta $d800
sta $d801
sta $d802
...
sta $dbe7
... Or more likely even: code an algorithm that generates the unrolled code, optimizing both speed and file size. :-) |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quoting Martin PiperThere is no need to be so nasty. I've collaborated with RB on a number of projects, I would definitely say he is a coder. He produces a lot of original good stuff and isn't afraid to reuse code written by others when it helps him complete a project. Being able to work with others is a good trait to have for a programmer.
I hate HTML frames for breaking site navigation. The direct link to the programming part of his site is http://tnd64.unikat.sk/assemble_it.html
There's no doubt that Richard is one of the most productive game coders in the C64 scene today, but his old coding tutorials are awful. There's no excuse for confusing misinformation like this:
Quoting Richard Bayliss
BEQ STATEMENT
Similar BNE, BCC and BCS, but a bit different. These are mainly used in loops, to default values of pointers.
SEI
SEI turns off an IRQ interrupt flag, when a loop is inside the program
CLI
Clears registers and allows the programmer to insert additional commands, which they cannot use inside an IRQ loop!
PLA
PHA
RTI
These are special commands.
TAX or TAY
Mainly used to control scrolling types, initialize everything, for example, music!
|
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 - Next |