added condition to add instruction for syscall