Write assembly to do the syscall instruction with whatever params you need.
Relevant, reader mode recommended: https://www.ee.torontomu.ca/~elf/hack/recovery.html
Relevant, reader mode recommended: https://www.ee.torontomu.ca/~elf/hack/recovery.html