Here is a collection of links that were very useful:

C64.ch, A vast resource for C64 demos, cracktros and intros
The 6502 instruction set
The KickAssembler instructions
The C64 Memory Map
The C64 ROM Routines
The awesome Retro Debugger
Codebase64, the best resource for demo effects