mirror of https://github.com/nmlgc/ReC98.git
68 lines
1.3 KiB
NASM
68 lines
1.3 KiB
NASM
|
; superimpose & master library module
|
||
|
;
|
||
|
; Description:
|
||
|
; BFNTファイルのデータ部の先頭へシークする
|
||
|
;
|
||
|
; Functions/Procedures:
|
||
|
; int bfnt_extend_header_skip( unsigned handle, BFNT_HEADER * bfntheader )
|
||
|
;
|
||
|
; Parameters:
|
||
|
; handle ファイルハンドル
|
||
|
; bfntheader BFNTヘッダ構造体へのポインタ
|
||
|
;
|
||
|
; Returns:
|
||
|
; NoError (cy=0) 読み取り成功
|
||
|
; InvalidData (cy=1) 読み取り失敗
|
||
|
;
|
||
|
; Binding Target:
|
||
|
; Microsoft-C / Turbo-C / Turbo Pascal
|
||
|
;
|
||
|
; Running Target:
|
||
|
; PC-9801
|
||
|
;
|
||
|
; Requiring Resources:
|
||
|
; CPU: 8086
|
||
|
;
|
||
|
; Notes:
|
||
|
;
|
||
|
;
|
||
|
; Compiler/Assembler:
|
||
|
; TASM 3.0
|
||
|
; OPTASM 1.6
|
||
|
;
|
||
|
; Author:
|
||
|
; Kazumi(奥田 仁)
|
||
|
; 恋塚(恋塚昭彦)
|
||
|
;
|
||
|
; Revision History:
|
||
|
; $Id: bfntexts.asm 0.05 93/01/19 17:05:57 Kazumi Rel $
|
||
|
;
|
||
|
; 93/ 2/25 Initial: master.lib <- super.lib 0.22b
|
||
|
; 94/ 6/10 [M0.23] seek を current相対に変更
|
||
|
;
|
||
|
|
||
|
func BFNT_EXTEND_HEADER_SKIP
|
||
|
mov BX,SP
|
||
|
|
||
|
; 引数
|
||
|
@@handle = (RETSIZE+DATASIZE)*2
|
||
|
@@bfntheader = (RETSIZE+0)*2
|
||
|
|
||
|
mov CX,SS:[BX+@@handle]
|
||
|
_les BX,SS:[BX+@@bfntheader]
|
||
|
l_ <mov DX,ES:[BX].extSize>
|
||
|
s_ <mov DX,[BX].extSize>
|
||
|
; mov AX,4200h ; DOS: SEEK HANDLE (from TOP)
|
||
|
mov AX,4201h ; DOS: SEEK HANDLE (from current)
|
||
|
mov BX,CX
|
||
|
xor CX,CX
|
||
|
; add DX,BFNT_HEADER_SIZE
|
||
|
; adc CX,CX
|
||
|
int 21h
|
||
|
mov AX,InvalidData
|
||
|
jc short @@QUIT
|
||
|
mov AX,NoError
|
||
|
@@QUIT:
|
||
|
ret (DATASIZE+1)*2
|
||
|
endfunc
|