;put into the public domain by Russell Nelson, nelson@clutx.clarkson.edu

ether_byte	db	?,?,?,?

get_address:
	mov	cx,EADDR_LEN
get_address_2:
	push	cx
	push	di
	mov	di,offset ether_byte
	call	get_hex
	mov	al,cl			;remember the number in al.
	pop	di
	pop	cx
	jc	get_address_3		;exit if no number at all.
	stosb				;store a byte.
	cmp	byte ptr [si],':'	;skip colons between bytes.
	jne	get_address_4
	inc	si
get_address_4:
	loop	get_address_2
	clc
get_address_3:
	ret


