ack/mach/m65oo2/libsys/execle.s

25 lines
319 B
ArmAsm
Raw Permalink Normal View History

2024-02-22 15:13:52 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define _execle
.extern _execle, _execve
_execle:
push si
push di
push bp
mov bp,sp
lea si,10(bp)
1: mov di,si
add si,2
cmp (di),0
jne 1b
push (si)
lea ax,10(bp)
push ax
push 8(bp)
call _execve
add sp,6
mov sp,bp
pop bp
pop di
pop si
ret