For loop in x86 assembly and optimising code?
问题 I am currently learning assembly programming as part of one of my university modules. I have a program written in C++ with inline x86 assembly which takes a string of 6 characters and encrypts them based on the encryption key. Here's the full program: https://gist.github.com/anonymous/1bb0c3be77566d9b791d My code fo the encrypt_chars function: void encrypt_chars (int length, char EKey) { char temp_char; // char temporary store for (int i = 0; i < length; i++) // encrypt characters one at a