Preview:
data segment
num DB 5,9,20,25,79,0  
even db ?
odd db ?
data ends
code segment
assume cs:code,ds:data 
start:
mov ax,data
mov ds,ax
lea si,num
mov bl , 0h
mov bh, 0h
mov cl , [si]
inc si
up: mov al,[si]
ror al,1
jc go
inc bl
jmp next
go: inc bh
next: inc si
dec cl
jnz up
mov even,bl
mov odd,bh
mov AH,4CH
INT 21H
code ends 
end start



OUTPUT:

05,09,14,19,4F,03,02
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter