baisc shell code
dany@chroot.org 【程序编程相关:SLES 相关的若干问题】 【推荐阅读:精品推荐:命令大集合[分类整理]】2005/02/19 【扩展信息:多个文件函数互相引用的编译操作】 2 common assembly instructions ..mov <dest>, <src> ..add <dest>, <src> ; sub <dest>, <src> ..push <target> ; pop <target> ..jmp <address> ..call <address> ..lea <dest>, <src> ..int <value> 3 linux system calls ../usr/include/asm/unistd.h ..#ifndef _asm_i386_unistd_h_ ..#define _asm_i386_unistd_h_ ../* ..* this file contains the system call numbers. ..*/ ..#define __nr_restart_syscall 0 ..#define __nr_exit 1 ..#define __nr_write 4 ..#define __nr_execve 11 4 hello world ..write & exit function ..eax, ebx, ecx, edx are used to determine which function to call ... 下一页