It is currently Fri Apr 28, 2017 4:41 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: ASM6 templates
PostPosted: Fri Jul 24, 2015 4:06 am 
Offline

Joined: Sat Apr 12, 2014 12:11 pm
Posts: 120
Location: Gothenburg, Sweden
Deemar wrote:
I'm super new to Assembly, what are these templates for exactly? If it's a template for making a NES game, why is there more than one? Thanks.

A template is just something to help getting started with a project.

So, for example, let's say you want to make a small game, without any mapper:
Use nrom (the size of Super Mario Bros, Kung Fu, etc)

nrom is 32k (2x16) of code, 8k of chr rom. <-- start here :)

unrom allows you to add additional (in this case 8x16k) program memory and switch whenever you need to.

cnrom allows you to switch between 4 different chr rom banks in 8k sections.

_________________
I´ve got %01100011 problems but the BITs aint one.


Top
 Profile  
 
 Post subject: Re: ASM6 templates
PostPosted: Fri Jul 24, 2015 5:59 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 9548
Location: Rio de Janeiro - Brazil
Yeah, these are just "skeletons" you can use to get started. They already generate .nes files in the correct format to be used with NES emulators. They don't have any code though, you have to write that part.

There are different templates because there are different types of NES cartridges, with different hardware configurations. These templates cover the most common configurations used by beginners.


Top
 Profile  
 
 Post subject: Re: ASM6 templates
PostPosted: Tue Mar 07, 2017 2:23 pm 
Offline
User avatar

Joined: Wed Apr 07, 2010 1:14 am
Posts: 462
Location: Iran
According to this topic I used .pad instead of .org
Is it ok?

TNROM Template :

Code:
; ASM6 TNROM Template (512KB PRG + 8KB VRAM + 8KB WRAM + Battery)
; Use Notepad++ for best view
;-----------------------------------------------------------------------------------
;iNES Header
  .db $4E, $45, $53, $1A, $20, $00, $42, $00, $00, $00, $00, $00, $00, $00, $00, $00
;-----------------------------------------------------------------------------------
;PRG Bank0 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank1 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank2 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank3 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank4 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank5 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank6 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank7 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank8 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank9 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank10 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank11 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank12 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank13 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank14 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank15 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank16 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank17 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank18 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank19 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank20 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank21 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank22 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank23 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank24 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank25 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank26 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank27 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank28 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank29 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank30 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank31 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank32 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank33 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank34 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank35 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank36 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank37 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank38 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank39 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank40 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank41 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank42 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank43 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank44 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank45 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank46 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank47 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank48 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank49 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank50 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank51 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank52 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank53 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank54 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank55 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank56 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank57 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank58 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank59 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000
;-----------------------------------------------------------------------------------
;PRG Bank60 $8000 ~ $9FFF
  .base $8000
  ;User Codes
  .pad $A000
;-----------------------------------------------------------------------------------
;PRG Bank61 $A000 ~ $BFFF
  .base $A000
  ;User Codes
  .pad $C000 
;-----------------------------------------------------------------------------------
;PRG Bank62 $C000 ~ $DFFF
  .base $C000
  ;User Codes
  .pad $E000
;-----------------------------------------------------------------------------------
;PRG Bank63 $E000 ~ $FFFF
  .base $E000
  ;User Codes

RESET:


NMI:
   RTI
 
IRQ:
   RTI
 
;Vectors
  .org $FFFA
  .dw NMI
  .dw RESET
  .dw IRQ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 6 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:  
Powered by phpBB® Forum Software © phpBB Group