Skip to content

Commit

Permalink
Comment, remove, or revise many unreferenced labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Oct 27, 2020
1 parent a2b6bef commit 9dcdad5
Show file tree
Hide file tree
Showing 180 changed files with 809 additions and 1,031 deletions.
8 changes: 4 additions & 4 deletions audio/cries.asm
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ Cry_Sentret_Ch6:
square_note 8, 15, 1, 1824
sound_ret

Cry_Sentret_Ch8:
Cry_Sentret_Ch8: ; unreferenced
noise_note 8, 3, -3, 0
noise_note 8, 9, 2, 0
sound_ret
Expand Down Expand Up @@ -1082,7 +1082,7 @@ Cry_Weepinbell:
channel 6, Cry_Weepinbell_Ch6
channel 8, Cry_Weepinbell_Ch8

Cry_Unused_Ch5:
Cry_Unused_Ch5: ; unreferenced
duty_cycle_pattern 3, 3, 0, 0
square_note 15, 14, 0, 1920
square_note 15, 15, 0, 1924
Expand All @@ -1092,7 +1092,7 @@ Cry_Unused_Ch5:
square_note 8, 7, 1, 1924
sound_ret

Cry_Unused_Ch6:
Cry_Unused_Ch6: ; unreferenced
duty_cycle_pattern 0, 0, 1, 1
square_note 15, 10, 0, 1857
square_note 15, 11, 0, 1859
Expand All @@ -1102,7 +1102,7 @@ Cry_Unused_Ch6:
square_note 8, 3, 1, 1862
sound_ret

Cry_Unused_Ch8:
Cry_Unused_Ch8: ; unreferenced
noise_note 2, 15, 2, 76
noise_note 6, 14, 0, 58
noise_note 15, 13, 0, 58
Expand Down
9 changes: 5 additions & 4 deletions audio/engine.asm
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ _InitSound::
dec e
jr nz, .clearsound

ld hl, wChannels ; start of channel data
ld de, wChannelsEnd - wChannels ; length of area to clear (entire sound wram area)
.clearchannels
ld hl, wAudio
ld de, wAudioEnd - wAudio
.clearaudio
xor a
ld [hli], a
dec de
ld a, e
or d
jr nz, .clearchannels
jr nz, .clearaudio

ld a, MAX_VOLUME
ld [wVolume], a
call MusicOn
Expand Down
2 changes: 1 addition & 1 deletion audio/music/magnettrain.asm
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Music_MagnetTrain_Ch4:
drum_note 12, 16
sound_ret

.sub1: ; unused
.sub1: ; unreferenced
drum_note 9, 1
drum_note 8, 1
drum_note 8, 1
Expand Down
12 changes: 6 additions & 6 deletions audio/sfx.asm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Sfx_Menu:
Sfx_ReadText:
Sfx_ReadText2:
channel_count 1
channel 5, Sfx_ReadText2_Ch5
channel 5, Sfx_ReadText_Ch5 ; aka Sfx_ReadText2_Ch5

Sfx_Poison:
channel_count 1
Expand Down Expand Up @@ -486,10 +486,10 @@ Sfx_Elevator:
Sfx_LevelUp:
Sfx_DexFanfare5079:
channel_count 4
channel 5, Sfx_LevelUp_Ch5
channel 6, Sfx_LevelUp_Ch6
channel 7, Sfx_LevelUp_Ch7
channel 8, Sfx_LevelUp_Ch8
channel 5, Sfx_LevelUp_Ch5 ; aka Sfx_DexFanfare5079_Ch5
channel 6, Sfx_LevelUp_Ch6 ; aka Sfx_DexFanfare5079_Ch6
channel 7, Sfx_LevelUp_Ch7 ; aka Sfx_DexFanfare5079_Ch7
channel 8, Sfx_LevelUp_Ch8 ; aka Sfx_DexFanfare5079_Ch8

Sfx_LevelUp_Ch5:
Sfx_DexFanfare5079_Ch5:
Expand Down Expand Up @@ -942,7 +942,7 @@ Sfx_Fanfare2:
channel 6, Sfx_Fanfare2_Ch6
channel 8, Sfx_Fanfare2_Ch8

Sfx_Unused:
Sfx_Unused: ; unreferenced
channel_count 4
channel 5, Sfx_Unused_Ch5
channel 6, Sfx_Unused_Ch6
Expand Down
2 changes: 1 addition & 1 deletion audio/sfx_pointers.asm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ SFX:
dba Sfx_MilkDrink
dba Sfx_Present
dba Sfx_MorningSun
dba Sfx_LevelUp
dba Sfx_LevelUp ; aka Sfx_DexFanfare5079
dba Sfx_KeyItem
dba Sfx_Fanfare2
dba Sfx_RegisterPhoneNumber
Expand Down
2 changes: 1 addition & 1 deletion constants/map_constants.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
newgroup: MACRO
const_value = const_value + 1
const_skip
__map_value__ = 1
ENDM

Expand Down
2 changes: 1 addition & 1 deletion constants/map_data_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ NUM_MAP_PALETTES EQU const_value
shift_const NORTH

; SpawnPoints indexes (see data/maps/spawn_points.asm)
const_value = -1
const_def -1
const SPAWN_N_A
const SPAWN_HOME
const SPAWN_DEBUG
Expand Down
2 changes: 1 addition & 1 deletion constants/pokemon_data_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ NUM_TREEMON_SETS EQU const_value
const TREEMON_SCORE_RARE ; 2

; ChangeHappiness arguments (see data/happiness_changes.asm)
const_value = 1
const_def 1
const HAPPINESS_GAINLEVEL ; 01
const HAPPINESS_USEDITEM ; 02
const HAPPINESS_USEDXITEM ; 03
Expand Down
2 changes: 1 addition & 1 deletion constants/trainer_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ __trainer_class__ = 0
trainerclass: MACRO
\1 EQU __trainer_class__
__trainer_class__ = __trainer_class__ + 1
const_value = 1
const_def 1
ENDM

; trainer class ids
Expand Down
22 changes: 11 additions & 11 deletions data/battle_tower/parties.asm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BattleTowerMons:
; 10 groups of 21 mons.
; 10 groups (one per floor level) of 21 mons (BATTLETOWER_NUM_UNIQUE_MON).

BattleTowerMons1:
; BattleTowerMons group 1

db JOLTEON
db MIRACLEBERRY
Expand Down Expand Up @@ -550,7 +550,7 @@ BattleTowerMons1:
db "BARIYA-DO@@"


BattleTowerMons2:
; BattleTowerMons group 2

db UMBREON
db LEFTOVERS
Expand Down Expand Up @@ -1099,7 +1099,7 @@ BattleTowerMons2:
db "NUO-@@@@@@@"


BattleTowerMons3:
; BattleTowerMons group 3

db JOLTEON
db MIRACLEBERRY
Expand Down Expand Up @@ -1648,7 +1648,7 @@ BattleTowerMons3:
db "OKORIZARU@@"


BattleTowerMons4:
; BattleTowerMons group 4

db TAUROS
db GOLD_BERRY
Expand Down Expand Up @@ -2197,7 +2197,7 @@ BattleTowerMons4:
db "EREBU-@@@@@"


BattleTowerMons5:
; BattleTowerMons group 5

db KINGDRA
db GOLD_BERRY
Expand Down Expand Up @@ -2746,7 +2746,7 @@ BattleTowerMons5:
db "HURI-ZA-@@@"


BattleTowerMons6:
; BattleTowerMons group 6

db KINGDRA
db LEFTOVERS
Expand Down Expand Up @@ -3295,7 +3295,7 @@ BattleTowerMons6:
db "GORO-NIya@@"


BattleTowerMons7:
; BattleTowerMons group 7

db JOLTEON
db MIRACLEBERRY
Expand Down Expand Up @@ -3844,7 +3844,7 @@ BattleTowerMons7:
db "KAMEtuKUSU@"


BattleTowerMons8:
; BattleTowerMons group 8

db JOLTEON
db MIRACLEBERRY
Expand Down Expand Up @@ -4393,7 +4393,7 @@ BattleTowerMons8:
db "GURANBURU@@"


BattleTowerMons9:
; BattleTowerMons group 9

db UMBREON
db KINGS_ROCK
Expand Down Expand Up @@ -4942,7 +4942,7 @@ BattleTowerMons9:
db "BETOBETON@@"


BattleTowerMons10:
; BattleTowerMons group 10

db HOUNDOOM
db MINT_BERRY
Expand Down
Loading

0 comments on commit 9dcdad5

Please sign in to comment.