I'm doing some x64 assembly with Visual C++ 2010 and masm ('fast call' calling convention).
So let's say I have a function in C++:
extern "C" void fillArray(unsigned char* byteArray, unsigned char value);
The pointer to array will be in RCX and char value will be in DL
How can I fill RAX with values using DL such that if I were to mov qword ptr [RCX], RAX
and print byteArray, all the values would be equal to 'char value'?
Please note that I'm not trying to do out-code my compiler, I'm just learning.
See Question&Answers more detail:os