mirror of
https://github.com/NishiOwO/VZEditor.git
synced 2025-04-21 16:44:40 +00:00
44 lines
606 B
NASM
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
|
|
;****************************
|