summaryrefslogtreecommitdiff
path: root/audio/engine.asm
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-07-03 17:07:05 -0400
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-07-03 17:07:05 -0400
commite1659ecd41dfac70eb021c0f5fe983ed6f043433 (patch)
tree86ec6137c666650168716247fa63241e79b1788b /audio/engine.asm
parentf3f0e711bf4f4205fd29f2b448c93ff5597507e5 (diff)
Introduce linkerscript.
Addresses of sections will now be added to the linkerscript via `org`, and the section name will be the path/to/file. If there is more than one section in the file, then add a @SectionName after the path/to/file to describe the section.
Diffstat (limited to 'audio/engine.asm')
-rw-r--r--audio/engine.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/engine.asm b/audio/engine.asm
index e4f3a2f..6fdc555 100644
--- a/audio/engine.asm
+++ b/audio/engine.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Audio", ROMX[$4000], BANK[$3A]
+SECTION "audio/engine.asm@Audio", ROMX
_DisableAudio:: ; 3a:4000
push hl
@@ -208,7 +208,7 @@ Functione80fa: ; 3a:40fa
.jumptable
; TODO
-SECTION "IsChannelSFXOn", ROMX[$42bd], BANK[$3a]
+SECTION "audio/engine.asm@IsChannelSFXOn", ROMX
IsChannelSFXOn: ; 3a:42bd
; If it's not a valid channel, return
ld a, [wCurChannel]
@@ -249,7 +249,7 @@ IsAnySFXOn: ; 3a:42d0
scf
ret
-SECTION "Functione82f0", ROMX[$42f0], BANK[$3a]
+SECTION "audio/engine.asm@Functione82f0", ROMX
Functione82f0: ; 3a:42f0
call IncrementTempo
call PlayDanger
@@ -502,7 +502,7 @@ FadeMusic: ; 3a:43ce
ld [wVolume], a
ret
-SECTION "Audio engine, part 2", ROMX[$4CEE], BANK[$3A] ; TODO: disassemble what's above (gulp) and remove this
+SECTION "audio/engine.asm@Audio engine, part 2", ROMX
SetGlobalTempo: ; 3a:4cee
push bc
@@ -612,5 +612,5 @@ _PlayMusic:: ; 3a:4d66
xor a
; TODO
-SECTION "Song Header Pointers", ROMX[$52C7], BANK[$3A]
-INCLUDE "audio/song_header_pointers.inc"
+SECTION "audio/engine.asm@Song Header Pointers", ROMX
+INCLUDE "audio/song_header_pointers.inc" \ No newline at end of file