I have problem with my code. this code in c++ i have to write in assembly. i try to write but it doesnt work
for (i=1; i<11; i++)
if(i%2 == 0)
sum = sum +i
mov cl, 02d
mov ax, 0d
mov bh, 0d
check:
inc al
mov dl, al
div cl
cmp ah, 0d
je sum
cmp ax, 11d
jne check
sum:
add bh, al
jmp check