// We assume that the caller put the filename onto the stack, // using the standard calling convention for the x86. open: // Put the code for the system call we want into %eax. movl #SysCallOpen, %eax // Trap into the kernel. int #TrapCode // Return to the caller; the kernel puts the return value in %eax. ret