6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 03, 2024 12:42 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Apr 29, 2014 7:07 pm 
Offline

Joined: Sun Feb 23, 2014 1:45 pm
Posts: 12
So, I think I now have all that I need to actually make some code, but I can't find a reference code (for NES) anywhere. I know some of the stuff I need to add to the code, but I don't know the overall code structure. Can someone make a short code that has everything that is needed (iNES header, Vectors, Banks, PPU Masking and some code for each used bank (if something is required to the end of the code, that too)).


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 29, 2014 7:34 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8172
Location: Midwestern USA
Baka94 wrote:
So, I think I now have all that I need to actually make some code, but I can't find a reference code (for NES) anywhere. I know some of the stuff I need to add to the code, but I don't know the overall code structure. Can someone make a short code that has everything that is needed (iNES header, Vectors, Banks, PPU Masking and some code for each used bank (if something is required to the end of the code, that too)).

Pardon me if I seem abrupt, but your request isn't making a whole lot of sense to me. Have you visited an website that caters to NES developers?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 30, 2014 10:21 am 
Offline

Joined: Sat Mar 27, 2010 7:50 pm
Posts: 149
Location: Chexbres, VD, Switzerland
I don't know which assembler/tools you are using, but as far as I can tell :

- iNES header in itself has nothing to do with coding, it's just an artifact when storing the ROM on a PC for the emulator to know which cartridge type to emulate. So consult your tutorial's doccumentation about how to add this at the begining of the ROM.
- Vectors (I assume you're talking about interrupt vectors) should be present at $fffa-$ffff, again just consult your tutorial. For a beginner you don't need to use IRQ and NMI yet to get an hello world-type of programm (set them to any value, like 0), just make sure RESET points to the start of your code.
- Banks : You won't need them for a while so don't bother yet, just know how to use a plain cartridge (ROM only) before dealing with mappers, etc...
- PPU Masking : I'm not even sure what you're refering to. Are you talking about the bits in $2001 that allows you to mask the left 8 pixels of the screen ?
In all cases you'll have to understand how the PPU works and play with it's registers for a while.

Also this site is more 6502 related, not really NES related so please come to NESdev if you want more NES related support. You'd come here if you need 6502 specific programming techniques or advice.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: