I am new to GNU Assembler and I am trying to execute this piece of code:
.globl _main _main: movl $1, %eax movl $0, %ebx int $0x80
This program should exit the system call ( 1 ). Compiled (no warnings):
gcc test.s
But running it gives me an error: Illegal instruction: 4
Thanks for the help!
source share