;
; *** Listing 10-7 ***
;
; Initializes a 1000-word array using a loop and
; non-string instructions.
;
	jmp	Skip
;
ARRAY_LENGTH	equ	1000
WordArray	dw	ARRAY_LENGTH dup (?)
;
Skip:
	call	ZTimerOn
	mov	di,offset WordArray
			;point to array to fill
	sub	ax,ax	;we'll fill with the value zero
	mov	cx,ARRAY_LENGTH ;# of words to fill
ZeroLoop:
	mov	[di],ax	;zero one word
	inc	di	;point to the next word
	inc	di
	loop	ZeroLoop
	call	ZTimerOff
