Tweak comments in header.asm.

This commit is contained in:
Colin McMillen 2015-05-22 14:24:25 -04:00
parent 61b82e2d6f
commit 8a646c4266
3 changed files with 23 additions and 32 deletions

View File

@ -1,11 +1,7 @@
;------------------------------------------------------------------------ ;------------------------------------------------------------------------
;- Standard SNES initialization routine, by Neviksti ;- Standard SNES initialization routine, originally by Neviksti
;------------------------------------------------------------------------ ;------------------------------------------------------------------------
;----------------------------------------------------------------------------
; InitSNES -- my "standard" initialization of SNES memory and registers
;----------------------------------------------------------------------------
.MACRO InitSNES .MACRO InitSNES
sei ;disable interrupts sei ;disable interrupts
clc ;switch to native mode clc ;switch to native mode

View File

@ -1,39 +1,32 @@
;------------------------------ Header File --------------------------------- ; LoRom header.
; This is basically a combo of MarctheMER's and Neviksti's header files
; Perhaps reading their's will also help your understanding of the header,
; but I believe this will be the simplest method of defining your header,
; as Marc's doesn't provide a full explanation, and Neviksti's can be
; a bit more difficult for beginners (using the WLA directives is easier).
;----------------------------------------------------------------------------
;==LoRom== ; We'll get to HiRom some other time. .MEMORYMAP
.MEMORYMAP ; Begin describing the system architecture. SLOTSIZE $8000 ; The slot is $8000 bytes in size.
SLOTSIZE $8000 ; The slot is $8000 bytes in size. More details on slots later. DEFAULTSLOT 0 ; The SNES only has 1 slot.
DEFAULTSLOT 0 ; There's only 1 slot in SNES, there are more in other consoles.
SLOT 0 $8000 ; Define's Slot 0's starting address. SLOT 0 $8000 ; Define's Slot 0's starting address.
.ENDME ; End MemoryMap definition .ENDME
.ROMBANKSIZE $8000 ; Every ROM bank is 32 KBytes in size .ROMBANKSIZE $8000 ; Every ROM bank is 32 KB in size.
.ROMBANKS 8 ; 2 Mbits - Tell WLA we want to use 8 ROM Banks .ROMBANKS 8 ; 8 ROM banks = 2 Mb (256 KB).
.SNESHEADER .SNESHEADER
ID "SNES" ; 1-4 letter string, just leave it as "SNES" ID "SNES"
NAME "PEW PEW " ; Program Title - can't be over 21 bytes, NAME "PEW PEW " ; Program title. Should be 21 bytes long;
; "123456789012345678901" ; use spaces for unused bytes of the name. ; "123456789012345678901" ; use spaces for unused bytes of the name.
SLOWROM SLOWROM
LOROM LOROM
CARTRIDGETYPE $00 ; $00 = ROM only, see WLA documentation for others CARTRIDGETYPE $00 ; $00 = ROM only.
ROMSIZE $08 ; $08 = 2 Mbits, see WLA doc for more.. ROMSIZE $08 ; $08 = 2 Mbits.
SRAMSIZE $00 ; No SRAM see WLA doc for more.. SRAMSIZE $00 ; No SRAM.
COUNTRY $01 ; $01 = U.S. $00 = Japan, that's all I know COUNTRY $01 ; $01 = U.S.; $00 = Japan.
LICENSEECODE $00 ; Just use $00 LICENSEECODE $00
VERSION $00 ; $00 = 1.00, $01 = 1.01, etc. VERSION $00 ; $00 = 1.00, $01 = 1.01, etc.
.ENDSNES .ENDSNES
.SNESNATIVEVECTOR ; Define Native Mode interrupt vector table .SNESNATIVEVECTOR ; Native Mode interrupt vector table.
COP EmptyHandler COP EmptyHandler
BRK EmptyHandler BRK EmptyHandler
ABORT EmptyHandler ABORT EmptyHandler
@ -41,7 +34,7 @@
IRQ EmptyHandler IRQ EmptyHandler
.ENDNATIVEVECTOR .ENDNATIVEVECTOR
.SNESEMUVECTOR ; Define Emulation Mode interrupt vector table .SNESEMUVECTOR ; Emulation Mode interrupt vector table.
COP EmptyHandler COP EmptyHandler
ABORT EmptyHandler ABORT EmptyHandler
NMI EmptyHandler NMI EmptyHandler
@ -49,12 +42,14 @@
IRQBRK EmptyHandler IRQBRK EmptyHandler
.ENDEMUVECTOR .ENDEMUVECTOR
.BANK 0 SLOT 0 ; Defines the ROM bank and the slot it is inserted in memory. ; Defines the ROM bank and the slot it is inserted in memory.
.ORG 0 ; .ORG 0 is really $8000, because the slot starts at $8000 ; .ORG 0 is really $8000, because the slot starts at $8000.
.BANK 0 SLOT 0
.ORG 0
.SECTION "EmptyVectors" SEMIFREE .SECTION "EmptyVectors" SEMIFREE
EmptyHandler: EmptyHandler:
rti rti
.ENDS .ENDS

View File

@ -38,7 +38,7 @@ Start:
sta $4200 sta $4200
; Store zeroes to the controller status registers. ; Store zeroes to the controller status registers.
; TODO(mcmillen): is this needed? ; TODO(mcmillen): is this needed? I think the system should do this.
stz $4218 stz $4218
stz $4219 stz $4219