	title	Module from library HILIB_1 : @STRIP
	name	('@STRIP')
	maclib	baselib.lib

; Language : BASIC

; Strip off MSB of a string

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

;		Version 1.0, August 1987

; ENTRY	Reg pair HL points to source string closed by zero
;	Reg pair DE points to destination string

; EXIT	Destination string filled without MSB

	entry	@strip

@strip:
	push	de
	push	hl
strip:
	ld	a,(hl)		; Get character
	and	NoMSB		; Strip off MSB
	ld	(de),a		; .. store
	inc	de
	inc	hl
	jr	nz,strip	; .. till zero
	pop	hl
	pop	de
	ret

	end

