//
// stupid 'chdir' syscall example by madcr
//

.globl _start
_start:
    movb $12,%al     # chdirS
    movl $m1,%ebx    # path
    int $0x80

# and for test chdir , creat file in new directory:

    movb $8,%al      # creatS
    movl $m2,%ebx    # filename
    movb $0,%cl      # attribute
    int $128
    
    movb $0x1,%al     
    int $0x80

m1: .string "/mnt/"
m2: .string "test"
    