execl.s
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· S 代码 · 共 34 行
S
34 行
/* @(#)execl.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: execl.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(execl, 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 jal execv lw ra,FRMSIZE-4(sp) addu sp,FRMSIZE RET # execl(file, arg1, arg2, ..., 0);.end execl
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?