snes-asm/homebrew-tutorial/main.asm
2022-06-13 16:00:41 -07:00

34 lines
426 B
NASM

.p816
.smart
.include "macros.inc"
.include "registers.inc"
.include "header.asm"
.segment "CODE"
start:
.include "init.asm"
; Set up the color palette
stz CGADD
; Set color zero to some color
; $001f = %0000000000011111
; bbbbbgggggrrrrr
lda #$ff
sta CGDATA
lda #$03
sta CGDATA
lda #$0f
sta INIDISP
busywait:
bra busywait
nmi:
bit RDNMI
_rti:
rti