program in assembly language to find even numbers from 1 to 10

section .data
    num db 1

section .text
    global _start

    mov ecx, 10

    mov eax, 0
    mov al, [num]
    test al, 1
    jnz odd_number

    ; Print even number
    mov eax, 4
    mov ebx, 1
    mov edx, 1
    int 0x80

    inc byte [num]

    ; Check if we reached 10
    cmp byte [num], 11
    jz end_program

    jmp loop_start

    ; Exit program
    mov eax, 1
    xor ebx, ebx
    int 0x80