I’m attempting to write out the value of each integer in an array in decimal form. I’m using a premade function to do the conversion, but it requires that the data be padded with zeroes to output properly. Is it possible to use movzx or something similar when copying values from an array?
I’ve tried using this:
movzx eax, intArray[esi]
but I’m unable to get it working.
Any help is much appreciated, thanks.
You need to tell the assembler what size it is extending from. Because of the register, it knows the destination is 32 bits, but it doesn’t know how big the source is. Example assuming source size of bytes: