Jump to content

how to read it in ASM...

- - - - -

  • Please log in to reply
6 replies to this topic

#1
kiddies

kiddies

    Programmer

  • Members
  • PipPipPipPip
  • 130 posts
hello brother..

how to read it in ASM...i ve syscall table but i dont understand how to use n read it

Linux System Call Table

help me to read it...

thanks

#2
Guest_h4x_*

Guest_h4x_*
  • Guests
example, you want to call sys_fork:
mov eax,2
mov ebx,0
mov ecx,0
mov edx,0
mov esi,0
mov edi,0
int 80h
and there is no 'esx'

Edited by Jaan, 21 September 2009 - 08:45 AM.
Please use code tags when you are posting your codes !


#3
kiddies

kiddies

    Programmer

  • Members
  • PipPipPipPip
  • 130 posts
give the explanation of the code...couse i understand syscall for exit with explanation of code ASM, thank for reply...

#4
Guest_h4x_*

Guest_h4x_*
  • Guests
what you dont understand?
only sucky thing about that table is that i dont know if pointer is in, out or both.

you pass arguments on registers.

#5
kiddies

kiddies

    Programmer

  • Members
  • PipPipPipPip
  • 130 posts
like sys_exit

xor eax, eax //its make null of register

like that, give the explanation for it, couse im new understanding ASM

#6
Guest_h4x_*

Guest_h4x_*
  • Guests
so first of all you should get fasm. i dont know what your using, but get fasm.
mov = copy data from 2nd operand to first.
mov can specify (1 operand) reg, mem, and 2nd reg, mem, and imm value.


int 80h is interrupt, cpu will call proper function to handle it. in lunix its ring0 window, for safe memory managment.

i dont know what else u want to know, just ask.

#7
kiddies

kiddies

    Programmer

  • Members
  • PipPipPipPip
  • 130 posts
ok thanks sir...i will develope my language,hehehe




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users