文章目录
无条件跳转
- Jumps
- 格式
jmp location - 分类
- short jump (offset less than 128 bytes)
- Near jump
- Far jump (jump to another segment)
- 示例
- 格式
#jumptest.s - An example of the jmp instruction
.section .text
.globl _start
_start:
nop
mov $1, %eax
jmp overwhere
mov $10, %ebx
int 0x80
overwhere:
mov $20, %ebx
int $0x80
运行后使用 echo $? 查看返回值
- Calls
- 格式
call address - 函数模板
- 格式
function_label:
pushl %ebp
movl %esp, %ebp
< normal function code goes here >
movl %ebp,