Posts by Fnr • 103 points
1 post
-
0
votes1
answer43
viewsQ: Segmentation fault when switching system call the "int" to "syscall" in Assembly x86 linux
When I change the system call of int $0x80 for syscall or sysenter in this code: mov $4, %rax mov $1, %rbx mov $String1, %rcx mov $16, %rdx int $0x80 the program ends up in Segmentation fault. In…