Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (56 sloc) 1.17 KB
;== Include memorymap, header info, and SNES initialization routines
.include "libSFX.i"
;===================
; Start
;===================
Main:
VBL_on
stz $2121
stz $2122
stz $2122
lda #$0F
sta $2100
wai
jmp red
red:
stz $2121
stz $2122
lda #$1F
sta $2122
lda #$0F
sta $2100
jsr waitingaholebunch
jmp blue
blue:
stz $2121
lda #$7C
sta $2122
stz $2122
lda #$0F
sta $2100
jsr waitingaholebunch
jmp green
green:
stz $2121
lda #$03
sta $2122
lda #$E0
sta $2122
lda #$0F
sta $2100
jsr waitingaholebunch
jmp red
waitingaholebunch:
lda #$20
sta $0000 ; loop counter
wait:
lda $0000
dec a
sta $0000
wai
lda #$0F
sta $2100
lda $0000
cmp #$00
bne wait
rts
You can’t perform that action at this time.