mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-11 07:44:47 +13:00
Merge branch 'master' of https://github.com/dannye/pokered
Conflicts: main.asm
This commit is contained in:
commit
a2084b200c
|
|
@ -1,11 +1,3 @@
|
||||||
# Getting Started
|
|
||||||
|
|
||||||
A base rom of Pokémon Red is required to assemble **pokered.gbc**.
|
|
||||||
|
|
||||||
Pokemon Red (UE) [S][!].gb
|
|
||||||
(MD5: 3d45c1ee9abd5738df46d2bdda8b57dc)
|
|
||||||
|
|
||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
|
|
||||||
Linux dependencies. OSX users already have these after installing Xcode.
|
Linux dependencies. OSX users already have these after installing Xcode.
|
||||||
|
|
@ -20,7 +12,6 @@ Set up the **pokered** repository:
|
||||||
|
|
||||||
./init.sh
|
./init.sh
|
||||||
|
|
||||||
Copy the Pokémon Red rom to this directory. Name it **baserom.gbc**.
|
|
||||||
|
|
||||||
Now **pokered.gbc** can be built from source.
|
Now **pokered.gbc** can be built from source.
|
||||||
|
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
PYTHON := python
|
PYTHON := python
|
||||||
.SUFFIXES: .asm .tx .o .gbc
|
.SUFFIXES: .asm .tx .o .gbc
|
||||||
.PHONY: all clean red blue
|
.PHONY: all clean red blue compare
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -24,6 +24,8 @@ $(shell $(foreach obj, $(OBJS), \
|
||||||
all: $(ROMS)
|
all: $(ROMS)
|
||||||
red: pokered.gbc
|
red: pokered.gbc
|
||||||
blue: pokeblue.gbc
|
blue: pokeblue.gbc
|
||||||
|
compare: baserom.gbc pokered.gbc
|
||||||
|
cmp $^
|
||||||
|
|
||||||
redrle: extras/redtools/redrle.c
|
redrle: extras/redtools/redrle.c
|
||||||
${CC} -o $@ $>
|
${CC} -o $@ $>
|
||||||
|
|
@ -56,10 +58,8 @@ $(OBJS): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_DEPENDENCIES))
|
||||||
pokered.gbc: globals.tx $(RED_OBJS)
|
pokered.gbc: globals.tx $(RED_OBJS)
|
||||||
rgblink -n $*.sym -m $*.map -o $@ $(RED_OBJS)
|
rgblink -n $*.sym -m $*.map -o $@ $(RED_OBJS)
|
||||||
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
|
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON RED" $@
|
||||||
cmp baserom.gbc $@
|
|
||||||
|
|
||||||
pokeblue.gbc: globals.tx $(BLUE_OBJS)
|
pokeblue.gbc: globals.tx $(BLUE_OBJS)
|
||||||
rgblink -n $*.sym -m $*.map -o $@ $(BLUE_OBJS)
|
rgblink -n $*.sym -m $*.map -o $@ $(BLUE_OBJS)
|
||||||
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON BLUE" $@
|
rgbfix -jsv -k 01 -l 0x33 -m 0x13 -p 0 -r 03 -t "POKEMON BLUE" $@
|
||||||
cmp blue.gbc $@
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue