section .data
    multiplicando dd 5
    multiplicador dd 4
    resultado dd 0

    msg db "Resultado: 20", 10
    len equ $ - msg

section .text
    global _start

_start:
    mov eax, [multiplicando]
    mov ecx, [multiplicador]
    mov ebx, 0

ciclo_suma:
    cmp ecx, 0
    je fin_multiplicacion

    add ebx, eax
    dec ecx
    jmp ciclo_suma

fin_multiplicacion:
    mov [resultado], ebx

    ; imprimir resultado
    mov eax, 4
    mov ebx, 1
    mov ecx, msg
    mov edx, len
    int 0x80

    ; salir
    mov eax, 1
    mov ebx, 0
    int 0x80