def syscall(self):
index = self._syscall_abi.syscall_number()<EOL>try:<EOL><INDENT>table = getattr(linux_syscalls, self.current.machine)<EOL>name = table.get(index, None)<EOL>implementation = getattr(self, name)<EOL><DEDENT>except (AttributeError, KeyError):<EOL><INDENT>if name is not None:<EOL><INDENT>raise SyscallNotImplemented(index, name)<EOL><DEDENT>else:<EOL><INDENT>raise Exception(f"<STR_LIT>")<EOL><DEDENT><DEDENT>return self._syscall_abi.invoke(implementation)<EOL>
Syscall dispatcher.