2014-10-17 16:26:56 +00:00
|
|
|
; int fprintf(FILE *F, const char *fmt, ...)
|
2014-11-05 17:20:02 +00:00
|
|
|
_fprintf proc
|
2014-10-17 16:26:56 +00:00
|
|
|
@@F = DPTR_ (cPtrSize + 2)
|
|
|
|
@@fmt = DPTR_ (cPtrSize + 2 + dPtrSize)
|
|
|
|
@@va = byte ptr (cPtrSize + 2 + dPtrSize + dPtrSize)
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push si
|
|
|
|
push di
|
|
|
|
mov ax, offset __FPUTN
|
|
|
|
push ax
|
|
|
|
if LDATA
|
|
|
|
push word ptr [bp+@@F+2]
|
|
|
|
endif
|
|
|
|
push word ptr [bp+@@F]
|
|
|
|
if LDATA
|
|
|
|
push word ptr [bp+@@fmt+2]
|
|
|
|
endif
|
|
|
|
push word ptr [bp+@@fmt]
|
|
|
|
lea ax, [bp+@@va]
|
|
|
|
push ax
|
|
|
|
call __vprinter
|
|
|
|
pop di
|
|
|
|
pop si
|
|
|
|
pop bp
|
|
|
|
ret
|
|
|
|
_fprintf endp
|