VZEditor/SRC/printf.asm
2025-04-02 07:52:59 +09:00

44 lines
606 B
NASM

;**************************** ; ##156.95
; 'printf.asm'
;****************************
include vz.inc
eseg
extrn puts :near
extrn pfbufp :word
$ld_strseg macro
movseg ds,ss
endm
assume ds:nothing
public printf
printf proc
pushm <si,di,ds,es>
movseg ds,cs
movseg es,ss
mov di,pfbufp
push di
call sprintf
pop si
movseg ds,ss
call puts
popm <es,ds,di,si>
VZ_RET
printf endp
public sprintf
include sprintf.inc
endes
end
;****************************
; End of 'printf.asm'
; Copyright (C) 1989 by c.mos
;****************************