I try to print b
, but it prints nothing. Also I wanted to find length of b
to hardcode it (because dw
s have the same length), but it printed nothing too (that's why I created lenlen
— len of blen
, so that I can print blen
). Don't pay attention to k
and a
, they are not used yet.
global _main:
section .data
b: dw 10
blen: equ $-b
lenlen: equ $-blen
k: dw 6
section .bss
a: resw 1
section .text
_main:
mov rax, 0x2000004
mov rdi, 1
mov rsi, b
mov rdx, blen
syscall
mov rax, 0x2000001
mov rdi, 0
syscall