Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions src/OpenSHC/IO/LowLevelMemory/copyStringUntilFirstDot.cpp
Original file line number Diff line number Diff line change
@@ -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:
}
}

}
}
2 changes: 1 addition & 1 deletion status/addresses-SHC-3BB0A8C1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down