So, from my understanding DB can be used to create a string in x86 Assembly. I am trying to move my index pointer to be at the beginning of the string so I can iterate through it. I am getting this error,
"instruction operands must be the same size"
So far I have tried using a doubleword which is the correct 32-bit size, but the issue with this is it says my string is too large for that definition. I'm confused as to how I can solve this.
.DATA
excerpt db "Follow. But! Follow only if ye be men of valour, for the entrance to this cave is guarded by a creature so foul, so cruel that no man yet has fought with it and lived! Bones of full fifty men lie strewn about its lair."
db "So, brave knights, if you do doubt your courage or your strength, come no further, for death awaits you all with nasty, big, pointy teeth. – Tim" ; string
lenExcerpt equ $ - excerpt ; length of string
compvar db "t"
compvar2 db "T"
.CODE
main PROC
mov ecx, 0
mov esi, excerpt
xor ebx, ebx