.globl _start
_start:
mov $3,%ah
mov $5,%al
add %ah,%al
movl $0,%ebx
int 0x80
I assemble and link like this without errors:
as file.s -o file.o
ld file.o -o file
but if I run it ./file then it gives me segmentation error.
I've searched it up but I dont get where I did wrong (newbie here..?) please help....