# sysca3.s
# getting a return value from a system call

.section .bss
.lcomm pid, 8
.lcomm uid, 8
.lcomm gid, 8

.section .text
.globl _start
_start:

movq $20, %rax
int $0x80
movq %rax, pid # retrieves the process

movq $24, %rax
int $0x80
movq %rax, uid # retrieves the user

movq $47, %rax
int $0x80
movq %rax, gid # retrieves the group

end:
movq $1, %rax
movq $0, %rbx
int $0x80

