after I wrote the assembly code, I have used NASM with 64bit and linker in linux to run the code. however, after I have tried to run the code, the segmentation error occurred.
segment .data:
file_name: db "haneens_texts.txt"
msg: db "Even if you’re on the right track, you’ll get run over if you just sit there"
len: equ $-msg
segment .bss:
segment .text:
global _start
_start:
mov edx,0777
mov ecx,2
mov ebx,file_name
mov eax,5
int 21H
mov eax,1
mov ebx,file_name
mov ecx,msg
mov ebx,1
mov eax,4
int 21H
mov eax,1
mov eax,3
mov ebx,1
mov ecx,26
mov edx,26
int 21H
mov eax,6
mov ebx,1
int 21H
mov eax,1
mov ebx,0
int 21H