29 lines
497 B
NASM
29 lines
497 B
NASM
|
.include "header.inc"
|
||
|
.include "snes_init.asm"
|
||
|
|
||
|
VBlank:
|
||
|
RTI
|
||
|
|
||
|
Start:
|
||
|
|
||
|
Snes_Init ; Initialize the SNES
|
||
|
|
||
|
sep #$20 ; set A register to 8-bit
|
||
|
|
||
|
|
||
|
lda #%10000000 ; force Vblank by turning off screen
|
||
|
sta $2100
|
||
|
|
||
|
; load 16-bit color into color data register $2122
|
||
|
lda #%11100000 ;low byte of green
|
||
|
sta $2122
|
||
|
lda #%00000000 ;high byte of green
|
||
|
sta $2122
|
||
|
|
||
|
lda #%00001111 ; End Vblank set brightness to 0b1111 (=100%)
|
||
|
sta $2100 ; store it to Screen Display Register
|
||
|
|
||
|
; loop forever
|
||
|
Forever:
|
||
|
jmp Forever
|