mirror of https://github.com/nmlgc/ReC98.git
54 lines
835 B
NASM
54 lines
835 B
NASM
|
; master library - BGM
|
||
|
;
|
||
|
; Description:
|
||
|
; 演奏を止める
|
||
|
;
|
||
|
; Function/Procedures:
|
||
|
; int bgm_stop_play(void);
|
||
|
;
|
||
|
; Parameters:
|
||
|
; none
|
||
|
;
|
||
|
; Returns:
|
||
|
; BGM_COMPLETE 正常終了
|
||
|
; BGM_NOT_PLAY 既に止まっている
|
||
|
;
|
||
|
; Binding Target:
|
||
|
; Microsoft-C / Turbo-C / Turbo Pascal
|
||
|
;
|
||
|
; Running Target:
|
||
|
; PC-9801V
|
||
|
;
|
||
|
; Requiring Resources:
|
||
|
; CPU: V30
|
||
|
;
|
||
|
; Notes:
|
||
|
;
|
||
|
;
|
||
|
; Assembly Language Note:
|
||
|
;
|
||
|
;
|
||
|
; Compiler/Assembler:
|
||
|
; TASM 3.0
|
||
|
; OPTASM 1.6
|
||
|
;
|
||
|
; Author:
|
||
|
; femy(淀 文武) : オリジナル・C言語版
|
||
|
; steelman(千野 裕司) : アセンブリ言語版
|
||
|
;
|
||
|
; Revision History:
|
||
|
; 93/12/19 Initial: b_sp_ply.asm / master.lib 0.22 <- bgmlibs.lib 1.12
|
||
|
|
||
|
func BGM_STOP_PLAY
|
||
|
cmp glb.rflg,ON
|
||
|
jne short @@NOTPLAYING
|
||
|
mov glb.rflg,OFF
|
||
|
nopcall _BGM_BELL_ORG
|
||
|
xor AX,AX ; BGM_COMPLETE
|
||
|
ret
|
||
|
even
|
||
|
@@NOTPLAYING:
|
||
|
mov AX,BGM_NOT_PLAY
|
||
|
ret
|
||
|
endfunc
|