nineTENdo wrote:
Can Some one tell me what banks are used for ?? How many can we have?
It's related to mapper stuff. Stick with mapper 0 for now. Meaning all your code will be at $8000-FFFF. You don't have to worry about any banks or anything.
Although nesasm has its ".bank" keyword which is pretty silly and is only loosely related. Overall though, I'd say don't worry about it yet, and come back to this after you've gotten a better grasp on other areas.
Quote:
Why does the code start as .org $8000 and the .chr and sprites at .org $0000?
Because nesasm is silly. CHR shouldn't really be .org'd anywhere, nesasm just likes doing things in a crazy manner.
PRG (your code/data) will lie at $8000-FFFF in
CPU addressing space. This is why you .org $8000 for your code, because that's the start of the block designated for PRG.
CHR (graphics) will lie at $0000-1FFF in
PPU addressing space. CHR is not directly accessable by your program, so .org'ing it at $0000 isn't really doing what it may seem.