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
.DS_STORE
*.dimensions
*.gbcpal
*.2bpp
# compiled graphics
*.1bpp
*.2bpp
*.lz
*.gbcpal
*.dimensions
*.animated.tilemap
*.sgb.tilemap
gfx/pokemon/*/bitmask.asm

View File

@ -67,6 +67,11 @@ tools:
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 +=
$(crystal11_obj): RGBASMFLAGS += -D _CRYSTAL11
$(crystal_au_obj): RGBASMFLAGS += -D _CRYSTAL11 -D _CRYSTAL_AU

View File

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

View File

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