Initial revision
This commit is contained in:
17
mach/i86/libsys/wait.s
Normal file
17
mach/i86/libsys/wait.s
Normal file
@@ -0,0 +1,17 @@
|
||||
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
|
||||
.define _wait
|
||||
.extern _wait, cerror
|
||||
_wait:
|
||||
mov bx,sp
|
||||
mov ax,2 ! void info about unused memory
|
||||
! Should be 0 according to /usr/include/sys.s, but
|
||||
! that doesn't work
|
||||
push ax
|
||||
push 2(bx)
|
||||
push ax ! dummy return address
|
||||
int 0x87
|
||||
jb 9f
|
||||
add sp,6
|
||||
ret
|
||||
9: add sp,6
|
||||
jmp cerror
|
||||
Reference in New Issue
Block a user