mirror of https://github.com/nmlgc/ReC98.git
59 lines
816 B
NASM
59 lines
816 B
NASM
|
; master library - (pf.lib)
|
||
|
;
|
||
|
; Description:
|
||
|
; 読み込み用に開いたファイルのクローズ
|
||
|
;
|
||
|
; Functions/Procedures:
|
||
|
; void bcloser(bf_t bf);
|
||
|
;
|
||
|
; Parameters:
|
||
|
; bf bファイルハンドル
|
||
|
;
|
||
|
; Returns:
|
||
|
; none
|
||
|
;
|
||
|
; Binding Target:
|
||
|
; Microsoft-C / Turbo-C / Turbo Pascal
|
||
|
;
|
||
|
; Running Target:
|
||
|
; MS-DOS
|
||
|
;
|
||
|
; Requiring Resources:
|
||
|
; CPU: 186
|
||
|
;
|
||
|
; Notes:
|
||
|
;
|
||
|
;
|
||
|
; Assembly Language Note:
|
||
|
;
|
||
|
;
|
||
|
; Compiler/Assembler:
|
||
|
; TASM 3.0
|
||
|
; OPTASM 1.6
|
||
|
;
|
||
|
; Author:
|
||
|
; iR
|
||
|
; 恋塚昭彦
|
||
|
;
|
||
|
; Revision History:
|
||
|
; BCLOSER.ASM 339 94-05-26 22:51
|
||
|
; 95/ 1/10 Initial: bcloser.asm/master.lib 0.23
|
||
|
|
||
|
func BCLOSER ; bcloser() {
|
||
|
push BP
|
||
|
mov BP,SP
|
||
|
|
||
|
;arg bf:word
|
||
|
bf = (RETSIZE+1)*2
|
||
|
|
||
|
mov ES,[BP+bf] ; BFILE構造体のセグメント
|
||
|
mov BX,ES:[b_hdl]
|
||
|
msdos CloseHandle
|
||
|
|
||
|
push ES
|
||
|
_call HMEM_FREE
|
||
|
|
||
|
pop BP
|
||
|
ret (1)*2
|
||
|
endfunc ; }
|