
%define stdin   0
%define stdout  1
%define stderr  2

%define sys_exit        0x01
%define sys_read        0x03
%define sys_write       0x04
%define sys_open        0x05
%define sys_close       0x06
%define sys_mprotect    0x4a

%macro system 1
    push 0x00           ; Simulate call (the kernel expects this)
    mov eax, %1
    int 0x80
    add esp, 4
%endmacro

%macro sys.exit 1
    push dword %1
    system sys_exit
%endmacro
