	title	Module from library BASE_2 : STRCM0
	name	('STRCM0')
	maclib	baselib.lib

; Output a string to selected device, closed by zero

; Copyright (C)	Werner Cirsovius
;		Hohe Weide 44
;		D-20253 Hamburg
;		Tel.: +49-40-4223247

;		Version 1.0 July 1987

; ENTRY	Reg pair <DE> holds string address
;	See module COMOUT for further details

; EXIT	None

	entry	strcm0

	extrn	comout

strcm0:
	push	de
	call	str?		; .. do the job
	pop	de
	ret
str?:
	ld	a,(de)		; Get character
	inc	de
	or	a		; Test end
	ret	z		; .. yeap
	call	comout		; Print normal
	jr	str?

	end

