Initial Commit

This commit is contained in:
froggestspirit 2020-08-15 23:41:53 -04:00
parent 31a057604d
commit 45009223c5
5 changed files with 178499 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.gbc
*.gb
*.o

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
.PHONY: all compare
objects := main.o
all: wl3.gbc compare
compare: baserom.gbc wl3.gbc
cmp $^
%.o: %.asm
rgbasm -o $@ $<
wl3.gbc: $(objects)
rgblink -p 0xFF -o $@ $^
rgbfix -p 0xFF -v $@

View File

@ -1,2 +1,6 @@
# wland3
Disassembly of Wario Land 3
Requires Wario Land 3 US rom named "baserom.gbc"
Compiles with RGBDS

26
macros.asm Normal file
View File

@ -0,0 +1,26 @@
farcall: MACRO
ld a,[$C5FF]
push af
ld a,BANK(\1)
ld [$C5FF],a
ld [$2100],a
call \1
pop af
ld [$C5FF],a
ld [$2100],a
ENDM
farjump: MACRO
ld a,[$C5FF]
push af
ld a,BANK(\1)
ld [$C5FF],a
ld [$2100],a
jp \1
ENDM
dbw: MACRO
db BANK(\1)
dw \1
ENDM

178452
main.asm Normal file

File diff suppressed because it is too large Load Diff