Writing an x86 emulator from scratch in JavaScript: 2. system calls

from blog Notes on software development, | ↗ original
Previously in emulator basics: 1. a stack and register machine In this post we'll extend x86e to support the exit and write Linux system calls, or syscalls. A syscall is a function handled by the kernel that allows the process to interact with data outside of its memory. The SYSCALL instruction takes arguments in the same order that the...