Hi, i'm currently learning assembly with the nasm assembler and i'm stuck trying to get a memory address into a register. Here is what I have:
[bits 32] [org 100h] section .data msg db "Hello", 0 section .text mov si, [msg] ;lea si, [msg] ret
I read the nasm manual and it appear that both instructions should work but they don't. With lea si stays at 0, with mov si gets the wrong address What exactly am I doing wrong here??