mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 03:52:59 +00:00
19 lines
225 B
ArmAsm
19 lines
225 B
ArmAsm
.globl _waitpid
|
|
.globl waitpid
|
|
_waitpid:
|
|
waitpid:
|
|
pushfl
|
|
popl %eax
|
|
orl $0x8c4,%eax
|
|
pushl %eax
|
|
popfl
|
|
movl $0x7, %eax
|
|
lcall $7,$0
|
|
jb _cerror
|
|
movl 8(%esp), %ecx
|
|
testl %ecx, %ecx
|
|
je bye
|
|
movl %edx, (%ecx)
|
|
bye:
|
|
ret
|