VZEditor/SRC/printf.asm
2025-03-31 14:42:09 +09:00

46 lines
632 B
NASM
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;**************************** ; ##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>
ret
printf endp
public sprintf
sprintf proc
include sprintf.inc
sprintf endp
endes
end
;****************************
; End of 'printf.asm'
; Copyright (C) 1989 by c.mos
;****************************