所以这是我的代码,我正在尝试将 a_character 设置为 ecx,即我的加密字母。我没有收到任何错误,但变量不会改变。
void get_char(char& a_character)
{
a_character = (char)_getwche();
if (a_character == '\r' || a_character == '\n') // allow the enter key to work as the terminating character too
{
a_character = dollarchar;
}
__asm
{
cmp ecx, '[';
jb RANGE_C;
jge RESUME;
RANGE_C: cmp ecx, '@';
ja LOWER;
jle RESUME;
LOWER: ADD ecx, 32
JMP RESUME;
RESUME:
mov a_character, ecx
}
}