make DEBUG=1 logs all symbols in the .map and .sym files

This commit is contained in:
Rangi 2020-06-14 21:52:33 -04:00
parent 75035a71a5
commit 401aa383e2
4 changed files with 27 additions and 21 deletions

7
.gitignore vendored
View File

@ -42,11 +42,12 @@ used_space.png
# osx files # osx files
.DS_STORE .DS_STORE
*.dimensions # compiled graphics
*.gbcpal
*.2bpp
*.1bpp *.1bpp
*.2bpp
*.lz *.lz
*.gbcpal
*.dimensions
*.animated.tilemap *.animated.tilemap
*.sgb.tilemap *.sgb.tilemap
gfx/pokemon/*/bitmask.asm gfx/pokemon/*/bitmask.asm

View File

@ -67,6 +67,11 @@ tools:
RGBASMFLAGS = -L -Weverything RGBASMFLAGS = -L -Weverything
# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
ifeq ($(DEBUG),1)
RGBASMFLAGS += -E
endif
$(crystal_obj): RGBASMFLAGS += $(crystal_obj): RGBASMFLAGS +=
$(crystal11_obj): RGBASMFLAGS += -D _CRYSTAL11 $(crystal11_obj): RGBASMFLAGS += -D _CRYSTAL11
$(crystal_au_obj): RGBASMFLAGS += -D _CRYSTAL11 -D _CRYSTAL_AU $(crystal_au_obj): RGBASMFLAGS += -D _CRYSTAL11 -D _CRYSTAL_AU

View File

@ -516,7 +516,7 @@ ret_96f76:
GiveItemScript: GiveItemScript:
callasm ret_96f76 callasm ret_96f76
writetext ReceivedItemText writetext .ReceivedItemText
iffalse .Full iffalse .Full
waitsfx waitsfx
specialsound specialsound
@ -529,7 +529,7 @@ GiveItemScript:
pocketisfull pocketisfull
end end
ReceivedItemText: .ReceivedItemText:
text_far _ReceivedItemText text_far _ReceivedItemText
text_end text_end

View File

@ -182,17 +182,17 @@ NeighborScript:
turnobject PLAYERSHOUSE1F_POKEFAN_F, RIGHT turnobject PLAYERSHOUSE1F_POKEFAN_F, RIGHT
end end
TVScript: PlayersHouse1FTVScript:
jumptext TVText jumptext PlayersHouse1FTVText
StoveScript: PlayersHouse1FStoveScript:
jumptext StoveText jumptext PlayersHouse1FStoveText
SinkScript: PlayersHouse1FSinkScript:
jumptext SinkText jumptext PlayersHouse1FSinkText
FridgeScript: PlayersHouse1FFridgeScript:
jumptext FridgeText jumptext PlayersHouse1FFridgeText
MomTurnsTowardPlayerMovement: MomTurnsTowardPlayerMovement:
turn_head RIGHT turn_head RIGHT
@ -351,20 +351,20 @@ NeighborText:
line "#MON!" line "#MON!"
done done
StoveText: PlayersHouse1FStoveText:
text "Mom's specialty!" text "Mom's specialty!"
para "CINNABAR VOLCANO" para "CINNABAR VOLCANO"
line "BURGER!" line "BURGER!"
done done
SinkText: PlayersHouse1FSinkText:
text "The sink is spot-" text "The sink is spot-"
line "less. Mom likes it" line "less. Mom likes it"
cont "clean." cont "clean."
done done
FridgeText: PlayersHouse1FFridgeText:
text "Let's see what's" text "Let's see what's"
line "in the fridge…" line "in the fridge…"
@ -372,7 +372,7 @@ FridgeText:
line "tasty LEMONADE!" line "tasty LEMONADE!"
done done
TVText: PlayersHouse1FTVText:
text "There's a movie on" text "There's a movie on"
line "TV: Stars dot the" line "TV: Stars dot the"
@ -396,10 +396,10 @@ PlayersHouse1F_MapEvents:
coord_event 9, 4, SCENE_DEFAULT, MeetMomRightScript coord_event 9, 4, SCENE_DEFAULT, MeetMomRightScript
db 4 ; bg events db 4 ; bg events
bg_event 0, 1, BGEVENT_READ, StoveScript bg_event 0, 1, BGEVENT_READ, PlayersHouse1FStoveScript
bg_event 1, 1, BGEVENT_READ, SinkScript bg_event 1, 1, BGEVENT_READ, PlayersHouse1FSinkScript
bg_event 2, 1, BGEVENT_READ, FridgeScript bg_event 2, 1, BGEVENT_READ, PlayersHouse1FFridgeScript
bg_event 4, 1, BGEVENT_READ, TVScript bg_event 4, 1, BGEVENT_READ, PlayersHouse1FTVScript
db 5 ; object events db 5 ; object events
object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_1 object_event 7, 4, SPRITE_MOM, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, MomScript, EVENT_PLAYERS_HOUSE_MOM_1