linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* chdir on linux does not work
@ 2006-05-24  2:49 Noprianto
  2006-05-24  4:26 ` Timo Lindfors
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Noprianto @ 2006-05-24  2:49 UTC (permalink / raw)
  To: linux-assembly

Dear All,

Anyone can tell me why this chdir code doesnot work on
linux ?

-> from what i read, chdir is system call number 12


section .text
        global _start

_start:
        mov eax, 12
        mov ebx, dir
        int 80h


        mov eax, 1
        mov ebx, 0
        int 80h



section .data
dir:    db      '/bin'



Thanks,
Pri

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-05-25  4:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24  2:49 chdir on linux does not work Noprianto
2006-05-24  4:26 ` Timo Lindfors
2006-05-24  6:49   ` Frank Kotler
2006-05-24  7:15     ` Brian Raiter
2006-05-24  7:21       ` Frank Kotler
2006-05-24 12:17       ` Timo Lindfors
2006-05-25  3:55     ` Adrian Ho
2006-05-25  4:18       ` Frank Kotler
2006-05-24  6:18 ` Brian Raiter
2006-05-24 14:06 ` jeff
2006-05-25  3:20   ` Noprianto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).