在知道了如何呼叫 linux system call 後 (exit)
便想找 1 個簡單的 system call 來試試
看來看去 mkdir 算是相對簡單的
不過卻讓我卡了 2 天
直到今天才恍然大悟自己錯在哪裡
原來我只顧著 create directory
卻沒有 call exit system call
難怪死得不明不白
.section .data
name:
.string "MK"
.section .text
.global _start
_start:
movl $39, %eax
movl $name, %ebx
movl $0777, %ecx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80
沒有留言:
張貼留言