1
Good evening, I’m starting to study Assembly and I have doubts about the exercise I’m solving. The first I’m trying to create a section of uninitialized variables, and the initialized ones and make the following copies n1 = v1 N2 = v2 N3 = v3 made this code, I would like to see if it is really right what I did or if it has possible improvements, use some other register
section .data
v1: db 10d
v2: dd -20d
v3: dq -30d
section .bss
n1: resb 1
n2: resw 2
n3: resd 4
section .text
global _start
_start:
mov al , [v1]
mov [n1] , al
mov ebx , [v2]
mov [n2] , ebx
mov al , [v3]
mov [n3] , al
fim:
mov rax, 1
mov rbx, 0
int 0x80
then the MOV does not pass from memory directly to memory in Assembly :/ it is necessary to use a logger
– user33467