Fixed bugs in instructions, implemented syscalls