mirror of
https://github.com/froggestspirit/wland3.git
synced 2024-11-23 05:50:00 +00:00
Initial Commit
This commit is contained in:
parent
31a057604d
commit
45009223c5
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*.gbc
|
||||
*.gb
|
||||
*.o
|
14
Makefile
Normal file
14
Makefile
Normal 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 $@
|
@ -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
26
macros.asm
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user