📄 execle.s
字号:
/* @(#)execle.s 4.1 (ULTRIX) 7/3/90 *//* ------------------------------------------------------------------ *//* | Copyright Unpublished, MIPS Computer Systems, Inc. All Rights | *//* | Reserved. This software contains proprietary and confidential | *//* | information of MIPS and its suppliers. Use, disclosure or | *//* | reproduction is prohibited without the prior express written | *//* | consent of MIPS. | *//* ------------------------------------------------------------------ *//* $Header: execle.s,v 1.1 87/02/16 11:19:54 dce Exp $ *//* * Copyright 1985 by MIPS Computer Systems, Inc. */#include <mips/regdef.h>#include <mips/asm.h>#include <syscall.h>FRMSIZE = 20NESTED(execle, FRMSIZE, zero) subu sp,FRMSIZE sw ra,FRMSIZE-4(sp) sw a1,FRMSIZE+4(sp) sw a2,FRMSIZE+8(sp) sw a3,FRMSIZE+12(sp) move a1,sp addu a1,FRMSIZE+4 move a2,a11: lw v0,0(a2) addu a2,4 bne v0,zero,1b lw a2,0(a2) jal execve lw ra,FRMSIZE-4(sp) addu sp,FRMSIZE RET # execle(file, arg1, arg2, ..., 0, env);.end execle
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -