I followed a tutorial to make a Hello World program but when I run it, either my computer freezes for a while or I get a Segmentation Fault. This is the code
section .bss
msg resb 1600000000
section .text
global _start
_start:
loop:
mov byte[msg+rbx], 1
inc rbx
cmp rbx, 1600000000
jl loop
mov rax, 0x3c
mov rdi, 0
syscall
I looked on google, in the comments of the video and even the Linux manual for devs. Any help would be appreciated