New ROM - tic tac toe

This commit is contained in:
greg 2016-12-02 19:26:09 -08:00
parent 38b9fdf070
commit fad2c429df
3 changed files with 48 additions and 3 deletions

View File

@ -1,4 +1,14 @@
all: smc #all: smc
all: tic_tac
tic_tac: tic_tac.obj
wlalink -vr tic_tac.link tic_tac.smc
tic_tac.obj: tic_tac.asm
wla-65816 -vo tic_tac.asm tic_tac.obj
greenspace.obj: greenspace.asm greenspace.obj: greenspace.asm
wla-65816 -vo greenspace.asm greenspace.obj wla-65816 -vo greenspace.asm greenspace.obj
@ -9,5 +19,6 @@ smc: greenspace.obj
clean: clean:
rm greenspace.obj rm -f *.obj
rm greenspace.smc rm -f greenspace.smc
rm -f tic_tac.smc

32
tic_tac.asm Normal file
View File

@ -0,0 +1,32 @@
.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

2
tic_tac.link Normal file
View File

@ -0,0 +1,2 @@
[objects]
tic_tac.obj