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?
Posted on 2002-12-04 13:54:47 by CyberGuy
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).
Posted on 2002-12-04 14:02:59 by Tomasz Grysztar