libk  kio_posix_fd_write.x86.lin.32.s at [3e3a628048]

File kio/kio_posix_fd_write.x86.lin.32.s artifact 7b77d86bab part of check-in 3e3a628048


bits 32
global kio_posix_fd_write

%include "../arch/x86.lin.32.s"
; vim: ft=nasm

kio_posix_fd_write:
	mov sys.reg.0, sys.call.write
	mov sys.reg.1, [esp + 4] ; holy god but this took the most
	mov sys.reg.2, [esp + 8] ; stupidly long time to fucking
	mov sys.reg.3, [esp + 12]; figure out
	sys.call
	ret