[Translation unit catch-up] [th03] snd_delay_until_volume()

Part of P0138, funded by [Anonymous] and Blue Bolt.
This commit is contained in:
nmlgc 2021-04-08 08:41:23 +02:00
parent 0e11d33520
commit 1e5c677ae9
3 changed files with 2 additions and 29 deletions

View File

@ -115,7 +115,7 @@ bin\th03\main.exe: bin\th03\main.obj th03\main_01.cpp bin\th03\vector2.obj bin\t
$**
|
bin\th03\mainl.exe: bin\th03\mainl.obj bin\th02\snd_load.obj bin\th03\vector2.obj bin\th03\exit.obj bin\th03\cdg_put.obj bin\frmdely1.obj bin\th03\input_s.obj bin\th03\pi_put.obj bin\th03\pi_put_i.obj bin\th02\snd_se_r.obj bin\th03\snd_se.obj bin\th03\snd_kaja.obj bin\th03\initmain.obj bin\th03\cdg_load.obj th03\exitmain.cpp bin\th03\grppsafx.obj bin\th03\snd_dlym.obj bin\th03\inp_wait.obj bin\th03\pi_load.obj bin\th03\pi_put_q.obj bin\th03\inp_m_w.obj bin\th03\cdg_p_na.obj bin\hfliplut.obj
bin\th03\mainl.exe: bin\th03\mainl.obj bin\th02\snd_dlyv.obj bin\th02\snd_load.obj bin\th03\vector2.obj bin\th03\exit.obj bin\th03\cdg_put.obj bin\frmdely1.obj bin\th03\input_s.obj bin\th03\pi_put.obj bin\th03\pi_put_i.obj bin\th02\snd_se_r.obj bin\th03\snd_se.obj bin\th03\snd_kaja.obj bin\th03\initmain.obj bin\th03\cdg_load.obj th03\exitmain.cpp bin\th03\grppsafx.obj bin\th03\snd_dlym.obj bin\th03\inp_wait.obj bin\th03\pi_load.obj bin\th03\pi_put_q.obj bin\th03\inp_m_w.obj bin\th03\cdg_p_na.obj bin\hfliplut.obj
$(CC) $(CFLAGS) $(LARGE_LFLAGS) -DGAME=3 -nbin\th03\ -eMAINL.EXE @&&|
$**
|

View File

@ -1,27 +0,0 @@
public _snd_delay_until_volume
_snd_delay_until_volume proc
arg @@volume:byte
push bp
mov bp, sp
@@loop:
mov ah, KAJA_GET_VOLUME
cmp _snd_midi_active, 1
jz short @@midi
int 60h
jmp short @@reached?
@@midi:
int 61h
@@reached?:
cmp al, @@volume
jz short @@ret
jmp short @@loop
@@ret:
pop bp
ret
_snd_delay_until_volume endp
nop ; word alignment

View File

@ -5517,7 +5517,7 @@ include th01/hardware/vram_planes_set.asm
db 0
include th02/snd/detmode.asm
include th02/snd/pmd_res.asm
include th02/snd/delayvol.asm
extern _snd_delay_until_volume:proc
extern _snd_load:proc
extern VECTOR2:proc
extern _game_exit:proc