; School of Computer Engineering
; K.N. Toosi University of Technology

segment .data

a:         dd     0
format1:   db   "%d", 0
format2:   db   "|%d| = %d", 10, 0

segment .text
        extern labs, scanf, printf
        global main

main:           
        push a
        push format1
        call scanf
        add esp, 8

        push dword [a]
        call labs
        add esp, 4
        
        push eax
        push dword [a]
        push format2
        call printf
        add  esp, 12

        mov eax, 1
        int 0x80