0
_start:
    mov ax, 0x167 ;putting syscall number of socket which is 359
    mov bl, 0x2   ;putting 2 as first argument
    mov cl, 0x1   ;putting 1 as second argument
    xor dx, dx    ;putting 0 as third argument
    int x80       ;calling socket(2,1,0)

Where will the return value of called function be stored or do I need to specify the register or memory address with some instruction?

0 Answers0