snes-asm/tic_tac.asm

33 lines
456 B
NASM
Raw Normal View History

2016-12-02 19:26:09 -08:00
.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