Modifying a character array, the modified part shows up backwards
问题 I have just started learning assembly, and I am trying to modify a character array. This is my assembly code: .data data byte 'Five', 0 .code Asm proc lea rax, data mov dword ptr[rax], 'Four' ret Asm endp end And my C++ code: #include <stdio.h> #include <conio.h> // external function extern "C" char* Asm(); // main function int main() { printf(Asm()); _getch(); } When I comment out mov dword ptr[rax], 'Four' , the result is that the console prints: "Five" . But, with the above code