diff options
author | AriaHiro64 <45049787+AriaHiro64@users.noreply.github.com> | 2020-12-22 23:22:09 -0500 |
---|---|---|
committer | AriaHiro64 <45049787+AriaHiro64@users.noreply.github.com> | 2020-12-22 23:22:09 -0500 |
commit | 05bb8704b52243a24b40a70e661f58a3b26746e5 (patch) | |
tree | 6d16e5f65a8fe6dee352c54ba3303137d043154f | |
parent | b8b75dbfdfa8bb51210d4dcf400919ad7ae13d71 (diff) |
Created Adding BLUMON.GB debugging features to a POKERED build. (markdown)
-rw-r--r-- | Adding-BLUMON.GB-debugging-features-to-a-POKERED-build..md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Adding-BLUMON.GB-debugging-features-to-a-POKERED-build..md b/Adding-BLUMON.GB-debugging-features-to-a-POKERED-build..md new file mode 100644 index 0000000..843b11c --- /dev/null +++ b/Adding-BLUMON.GB-debugging-features-to-a-POKERED-build..md @@ -0,0 +1,46 @@ +This will create a pokemon red debug build to the build option. The reason this is not included in base pokered is because there is no red debug to disassemble. Go to your Makefile and edit these lines. + +`- roms := pokered.gbc pokeblue.gbc pokeblue_debug.gbc` +`+ roms := pokered.gbc pokeblue.gbc pokered_debug.gbc pokeblue_debug.gbc` + +...` + +` pokered_debug_obj := $(rom_obj:.o=_red_debug.o)` +`+ pokered_debug_obj := $(rom_obj:.o=_red_debug.o)` +` pokeblue_debug_obj := $(rom_obj:.o=_blue_debug.o)` + +`...` + +` blue: pokeblue.gbc` +`+ red_debug: pokered_debug.gbc` +` blue_debug: pokeblue_debug.gbc` + +`...` + +` tidy:` +`- rm -f $(roms) $(pokered_obj) $(pokeblue_obj) $(pokeblue_debug_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o` +`+ rm -f $(roms) $(pokered_obj) $(pokeblue_obj) $(pokeblue_debug_obj) $(pokered_debug_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o` +` $(MAKE) clean -C tools/` + +`...` + +` $(pokeblue_obj): RGBASMFLAGS += -D _BLUE` +`+ $(pokered_debug_obj): RGBASMFLAGS += -D _RED -D _DEBUG` +` $(pokeblue_debug_obj): RGBASMFLAGS += -D _BLUE -D _DEBUG` + +`...` + +` $(foreach obj, $(pokeblue_obj), $(eval $(call DEP,$(obj),$(obj:_blue.o=.asm))))` +`+ $(foreach obj, $(pokered_debug_obj), $(eval $(call DEP,$(obj),$(obj:_red_debug.o=.asm))))` +` $(foreach obj, $(pokeblue_debug_obj), $(eval $(call DEP,$(obj),$(obj:_blue_debug.o=.asm))))` + +`...` + +` pokeblue_pad = 0x00` +`+ pokered_debug_pad = 0xff` +` pokeblue_debug_pad = 0xff` +` ` +` pokered_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON RED"` +` pokeblue_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"` +`+ pokered_debug_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON RED"` +` pokeblue_debug_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"` |