/ emx_386/write.s (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes

#include <emx/asm386.h>
#include "syscalls.h"

        .globl  ___write

/ __write (int handle, void *buf, size_t nbyte)

        ALIGN

___write:
        pushl   %ebx
        movl    4*4(%esp), %ecx         /* nbyte */
        movl    3*4(%esp), %edx         /* buf */
        movl    2*4(%esp), %ebx         /* handle */
        SYSCALL (0x40)
        popl    %ebx
        SET_EAX
        EPILOGUE (__write)
