Initial Commit
This commit is contained in:
commit
0a2a2ae622
4 changed files with 70 additions and 0 deletions
50
header.asm
Normal file
50
header.asm
Normal file
|
@ -0,0 +1,50 @@
|
|||
.MEMORYMAP
|
||||
SLOTSIZE $8000
|
||||
DEFAULTSLOT 0
|
||||
SLOT 0 $8000
|
||||
SLOTSIZE $10000
|
||||
SLOT 1 $0000
|
||||
.ENDME
|
||||
|
||||
.SNESHEADER
|
||||
NAME "Super Metroid "
|
||||
SLOWROM
|
||||
LOROM
|
||||
CARTRIDGETYPE $35
|
||||
ROMSIZE $0C
|
||||
SRAMSIZE 3
|
||||
COUNTRY 1
|
||||
LICENSEECODE 0
|
||||
VERSION 0
|
||||
.ENDSNES
|
||||
.ROMBANKMAP
|
||||
BANKSTOTAL 256
|
||||
BANKSIZE $8000
|
||||
BANKS $40
|
||||
BANKSIZE 1 ;Well it gets copied together
|
||||
BANKS $40
|
||||
BANKSIZE $8000
|
||||
BANKS $40
|
||||
BANKSIZE $10000
|
||||
BANKS $40
|
||||
.ENDRO ;I am a cheater
|
||||
.SNESNATIVEVECTOR
|
||||
COP EmptyHandler
|
||||
BRK EmptyHandler
|
||||
ABORT EmptyHandler
|
||||
NMI NMI
|
||||
IRQ IRQ
|
||||
.ENDNATIVEVECTOR
|
||||
.SNESEMUVECTOR
|
||||
COP EmptyHandler
|
||||
ABORT EmptyHandler
|
||||
NMI EmptyHandler
|
||||
RESET Reset
|
||||
IRQBRK EmptyHandler
|
||||
.ENDEMUVECTOR
|
||||
.BANK 0 SLOT 0
|
||||
.SECTION "EmptyVectors"
|
||||
EmptyHandler:
|
||||
jml EmptyHandler ;Forever
|
||||
.ENDS
|
||||
.EMPTYFILL $FF
|
11
main.asm
Normal file
11
main.asm
Normal file
|
@ -0,0 +1,11 @@
|
|||
.INCLUDE "header.asm"
|
||||
.BANK 0
|
||||
.ORG 0
|
||||
.SECTION "main" SEMIFREE
|
||||
NMI:
|
||||
rti
|
||||
IRQ:
|
||||
rti
|
||||
Reset:
|
||||
|
||||
.ENDS
|
7
make.sh
Normal file
7
make.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
wla-65816 -o main.asm main.o
|
||||
wlalink -vr proj.lnk sm.smc
|
||||
printf '\x23' | dd of=sm.smc bs=1 seek=32725 count=1 conv=notrunc
|
||||
dd if=sm.smc bs=32768 count=64 > tmp
|
||||
dd if=sm.smc bs=192 skip=171 count=32768 >> tmp
|
||||
mv tmp sm.smc
|
2
proj.lnk
Normal file
2
proj.lnk
Normal file
|
@ -0,0 +1,2 @@
|
|||
[objects]
|
||||
main.o
|
Loading…
Reference in a new issue