fix: xor -> mov to be "identical"

This commit is contained in:
DwifteJB 2026-03-04 21:42:04 +00:00
parent 1558de3a7b
commit 9ffd437a4b
No known key found for this signature in database
GPG key ID: E9A084A6DBE8B6A0
2 changed files with 12 additions and 1 deletions

11
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,11 @@
{
"cmake.configureArgs": [
"-DCMAKE_TOOLCHAIN_FILE=${workspaceFolder}/cmake/LinuxCrosscompile.cmake"
],
"cmake.configureEnvironment": {
"CC": "cl",
"CXX": "cl"
},
"cmake.generator": "Ninja",
"cmake.buildDirectory": "${workspaceFolder}/build"
}

View file

@ -21,7 +21,7 @@ extern "C" FILE* __cdecl __acrt_iob_func(unsigned index);
extern "C" __attribute__((naked)) FILE* __cdecl __iob_func(void) {
__asm__(
".intel_syntax noprefix\n\t"
"xor ecx, ecx\n\t"
"mov ecx, 0\n\t"
"jmp __acrt_iob_func\n\t"
".att_syntax prefix"
);