diff --git a/src/OpenSHC/IO/LowLevelMemory/copyStringUntilFirstDot.cpp b/src/OpenSHC/IO/LowLevelMemory/copyStringUntilFirstDot.cpp new file mode 100644 index 0000000..41234d3 --- /dev/null +++ b/src/OpenSHC/IO/LowLevelMemory/copyStringUntilFirstDot.cpp @@ -0,0 +1,33 @@ +#include "OpenSHC/IO/LowLevelMemory.func.hpp" + +namespace OpenSHC { +namespace IO { + + // FUNCTION: STRONGHOLDCRUSADER 0x0046AE50 + void LowLevelMemory::copyStringUntilFirstDot(char* source, char* destination) + { + __asm + { + mov edi, destination + mov esi, source + + loop_start: + mov al, [esi] + + cmp al, '.' + je loop_end + cmp al, 0 + je loop_end + + mov [edi], al + + add esi, 1 + add edi, 1 + + jmp loop_start + loop_end: + } + } + +} +} diff --git a/status/addresses-SHC-3BB0A8C1.txt b/status/addresses-SHC-3BB0A8C1.txt index b68c070..883188d 100644 --- a/status/addresses-SHC-3BB0A8C1.txt +++ b/status/addresses-SHC-3BB0A8C1.txt @@ -10181,7 +10181,7 @@ SHC_3BB0A8C1_0x0046A970 | 0.0% | Pending SHC_3BB0A8C1_0x0046AAF0 | 0.0% | Pending SHC_3BB0A8C1_0x0046AB30 | 0.0% | Pending SHC_3BB0A8C1_0x0046ABA0 | 0.0% | Pending -SHC_3BB0A8C1_0x0046AE50 | 0.0% | Pending +SHC_3BB0A8C1_0x0046AE50 | 100.0% | Reimplemented, but pure inline assembly SHC_3BB0A8C1_0x0046AE80 | 0.0% | Pending SHC_3BB0A8C1_0x0046AEC0 | 0.0% | Pending SHC_3BB0A8C1_0x0046B080 | 0.0% | Pending