moved first four syscall pseudocode to exceptions