Creating a directory in linux assembly language
Posted
by
Jayson Kane
on Stack Overflow
See other posts from Stack Overflow
or by Jayson Kane
Published on 2012-03-19T17:44:16Z
Indexed on
2012/03/19
18:03 UTC
Read the original article
Hit count: 360
I am trying to create a small assembly program to create a folder. I looked up the system call for creating a directory on this page: http://www.ctyme.com/intr/rb-8144.htm
It says that it is identified by 27h. How would I go about implementing the "mkdir somename" in assembly? I am aware that the program should move 27 into eax but I am unsure where to go next. I have googled quite a bit and no one seems to have posted anthing about this online. This is my current code (I don't know in which register to put filename and so on)
section .data
section .text
global _start
mov eax, 27
mov ????????
....
int 80h
Thanks
© Stack Overflow or respective owner