cmp.BYTES	MACRO	length,buff1,buff2,nomatch ; Compare buffers. If <> goto nomatch.	
		scope
		ld	b,length		; Setup to compare length bytes.
		ld	hl,buff1		; Get address of first buffer.
		ld	de,buff2		; Get address of second buffer.
$1		ld	a,(de)			; Get a byte from rbuffer.
		cp	(hl)			; Compare to other buffer.
		IF_NE_GOTO nomatch		; If compare fails match.
		inc	hl			; Advance pointers for 
		inc	de			; both buffers.
		LOOP	$1			; Loop until B=0
		endmac	cmp.BYTES

cmp.STRING	macro	buffer1,buffer2,nomatch ; Compare buffer 1 to buffer 2. If <> GOTO nomatch.
		endmac	cmp.STRING