33 lines
456 B
NASM
33 lines
456 B
NASM
|
.include "header.inc"
|
||
|
.include "snes_init.asm"
|
||
|
|
||
|
.BANK 0 SLOT 0
|
||
|
.org 0
|
||
|
.section "Vblank"
|
||
|
|
||
|
VBlank:
|
||
|
rti
|
||
|
|
||
|
.ENDS
|
||
|
|
||
|
.BANK 0 SLOT 0
|
||
|
.ORG 0
|
||
|
.section "Main"
|
||
|
|
||
|
Start:
|
||
|
Snes_Init
|
||
|
|
||
|
sep #$30 ; get 8-bit registers
|
||
|
stz $2121 ; write to CGRAM from $0
|
||
|
lda #%10000000 ; this is
|
||
|
ldx #%00111100 ; a green color
|
||
|
sta $2122 ; write it
|
||
|
stx $2122 ; to CGRAM
|
||
|
lda #%00001111 ; turn on screen
|
||
|
sta $2100 ; here
|
||
|
|
||
|
mainloop:
|
||
|
jmp mainloop
|
||
|
|
||
|
.ENDS
|