	.section	.text
	.intel_syntax
	.global	putz
	.type	putz, @function
putz:
	push	[%esp + 8]		# Address of string
	call	zstr_len
	.ifdef	NetBSD
	push	%eax			# Length
	push	[%esp + 16]		# String
	push	[%esp + 16]		# File descriptor
	push	0			# Extra double-word
	mov	%eax, 4			# Write system call
	int	128
	add	%esp, 20		# Clean up the stack
	.else
	add	%esp, 4			# Clean up the stack
	push	%ebx
	mov	%edx, %eax		# Length
	mov	%ecx, [%esp + 12]	# String
	mov	%ebx, [%esp + 8]	# File descriptor
	mov	%eax, 4			# Write system call
	int	128
	pop	%ebx
	.endif
	ret
