1 Count odd and even numbers.asm
chyavan-mc_Basic-8051-Assembly-Level-and-Embedded-C-Programs/Set 3/1 Count odd and even numbers.asm
org 000h
	mov r0,#30h	;Pointer to the base of the array
	mov r1,#0Ah	;Set N
	mov r2,#00h
	mov r3,#00h
rpt:	mov a,@r0
	jnb a.0, next
	inc r3		;increment odd count
	sjmp again
next:	inc r2		;increment even count
again:	inc r0
	djnz r1, rpt
	end