I have done my fair share of searching the web and I cant seem to find a satisfactory answer to this question. Yes, I see answers like it means contents of an such.. however, what I can't seem to wrap around my head is the following
Suppose I declare a var to hold a string value "Hi my name is jeff" and I want to print it out to the screen.
var1: db "Hi my name is jeff",0
len equ $-var1
mov eax, 4
mov ebx, 1
mov ecx, var1
mov edx, len
int 80h
Following the logic of the square brackets the above code should not be printing out the "contents" of the variable byte by byte, but the addresses of the variable byte by btye incremented.
I am just trying to learn assembly and have found myself asking questions similar to this or when I should put square brackets or not.. More likely then not I have just tested it and if its giving me a wrong output I put square brackets around it. I would like to actually understand when to use and when not to use it