29 lines
659 B
NASM
29 lines
659 B
NASM
|
;== Include memorymap, header info, and SNES initialization routines
|
||
|
.INCLUDE "header.inc"
|
||
|
.INCLUDE "../common/InitSNES.asm"
|
||
|
|
||
|
;========================
|
||
|
; Start
|
||
|
;========================
|
||
|
|
||
|
.BANK 0 SLOT 0
|
||
|
.ORG 0
|
||
|
.SECTION "MainCode"
|
||
|
|
||
|
Start:
|
||
|
InitSNES ; invoke SNES init
|
||
|
|
||
|
stz $2121 ; set $2121 to zero, this sets palette color 0
|
||
|
lda #%00010011 ; binary is more visual, but if you
|
||
|
sta $2122 ; Colors are 2 bytes. Write first byte from A
|
||
|
stz $2122 ; second byte is 0
|
||
|
|
||
|
lda #$0F ; = 00001111
|
||
|
sta $2100 ; Turn on screen, full brightness
|
||
|
|
||
|
|
||
|
forever:
|
||
|
jmp forever
|
||
|
|
||
|
.ENDS
|