I'm very much a newbie on assembly and NASM. I'm trying to define a variable in the .bss section and use it but I couldn't get it to run. It gives me this error:
"Access violation writing location 0x000000000000000C"
Here is my code:
section .bss
var: resb 64
section .text
global _start
_start:
[BITS 64]
mov qword [var],10
I tried all kind of things like mov rax, 10 and mov [var], rax and this kind of stuff but I couldn't get it to run.