Ok lets say I have something like this
struc any
{
.anystring rb 128
}
str1 db "Hello",0
strucname any
then I try this
mov ,str1
Then I get this error: Invalid use of symbol
How do I get this to work properly?
struc any
{
.anystring rb 128
}
str1 db "Hello",0
strucname any
then I try this
mov ,str1
Then I get this error: Invalid use of symbol
How do I get this to work properly?
Because you have defined .anystring to be byte size, "mov ,str1" is interpreted as the "mov byte ,str1" and the str1 symbols - which needs a fixup - cannot be used this way (relocatable symbols must be dword in size). If you want to store the address of str1 in the first four bytes of .anystring, use "mov dword ,str1" instruction, if you want to copy the contents of str1 to .anystring, you can do it using string operations (lodsb/stosb/movsb).