I have just started in nasm x86 Assembly and I just cannot figure out why I get this error:
main.asm:9: error: colon, comma, decorator, or end of line expected after operand
On this line:
mov [msg], db ‘Hello World’
Anyway thank you in advance!
msgto contain a pointer to the string, or are you trying to actually copy the string there? - Nate Eldredge.rodatafor your string data and use its address in the immediate for that store instruction. Also, the operand-size is ambiguous; I hope you wanted to store adwordpointer tomsg: resd 1in the BSS (C equivalentchar *msg;), not actually memcpy to a whole array. - Peter Cordes