[Maintenance] Move the snd_load() constants into a separate ASM include file

And place it at a position where I don't forget to remove it once it's
no longer necessary.

Part of P0263, funded by [Anonymous].
This commit is contained in:
nmlgc 2023-11-28 19:44:34 +01:00
parent 741d889c07
commit a308c486d6
12 changed files with 14 additions and 7 deletions

View File

@ -1,6 +1,3 @@
SND_LOAD_SONG equ (KAJA_GET_SONG_ADDRESS shl 8)
SND_LOAD_SE equ (PMD_GET_SE_ADDRESS shl 8)
SND_LOAD_FN_LEN equ 13
public _snd_load_fn
_snd_load_fn db SND_LOAD_FN_LEN dup(?)

2
th02/snd/snd.inc Normal file
View File

@ -0,0 +1,2 @@
SND_LOAD_SONG equ (KAJA_GET_SONG_ADDRESS shl 8)
SND_LOAD_SE equ (PMD_GET_SE_ADDRESS shl 8)

View File

@ -6466,6 +6466,7 @@ main_01____TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
include th02/snd/snd.inc
extern @ZUN_ERROR$Q11ZUN_ERROR_T:proc
extern _key_delay:proc
extern MPN_LOAD:proc

View File

@ -2924,6 +2924,7 @@ maine_01_TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
include th02/snd/snd.inc
extern _graph_putsa_fx:proc
extern _key_delay:proc
extern _pi_load:proc

View File

@ -2658,6 +2658,7 @@ mainl_03_TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
include th02/snd/snd.inc
extern _snd_determine_mode:proc
extern _snd_delay_until_volume:proc
extern _snd_load:proc

View File

@ -3305,6 +3305,7 @@ op_03_TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
include th02/snd/snd.inc
extern @game_exit_to_dos$qv:proc
extern _snd_determine_mode:proc
extern _snd_load:proc

View File

@ -10485,10 +10485,7 @@ BOSS_BG_TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
assume cs:g_SHARED
;org 0Dh
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing
include th02/snd/snd.inc
extern VECTOR2:proc
extern FRAME_DELAY:proc
extern MPN_FREE:proc

View File

@ -3188,6 +3188,7 @@ maine_01_TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
include th02/snd/snd.inc
extern FRAME_DELAY:proc
extern PI_PALETTE_APPLY:proc
extern PI_PUT_8:proc

View File

@ -1462,6 +1462,7 @@ op_01_TEXT ends
; ===========================================================================
SHARED segment word public 'CODE' use16
include th02/snd/snd.inc
extern FRAME_DELAY:proc
extern PI_PALETTE_APPLY:proc
extern PI_PUT_8:proc

View File

@ -7252,6 +7252,7 @@ SHARED segment word public 'CODE' use16
SHARED ends
SHARED_ segment word public 'CODE' use16
include th02/snd/snd.inc
extern CDG_PUT_NOALPHA_8:proc
extern SND_SE_PLAY:proc
extern _snd_se_update:proc

View File

@ -6320,6 +6320,8 @@ SHARED_ segment word public 'CODE' use16
;org 0Ch
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing
include th02/snd/snd.inc
include th04/hardware/grppsafx.asm
extern CDG_PUT_NOALPHA_8:proc
extern SND_SE_PLAY:proc

View File

@ -1489,6 +1489,8 @@ SHARED segment word public 'CODE' use16
SHARED ends
SHARED_ segment word public 'CODE' use16
include th02/snd/snd.inc
assume cs:g_SHARED
; org 4
assume es:nothing, ss:nothing, ds:_DATA, fs:nothing, gs:nothing