Actually a lot of asm code I replaced it but having a compiler that supports inline is for me and for the kind of code I write very useful (I know enough about the asm).
for example:
function TPeFile.Find (ImageBase: Pointer; ImageSize: Cardinal; Pattern: Pointer; PatternSize: Cardinal): Pointer;
asm
{$ IFDEF CPUX64}
@pattern_search_begin:
push rcx
push rdi /
push rsi
push r10
xor rdi, rdi
xor rsi, rsi
xor r10, r10
sub edx, r9d
@pattern_search_loop:
cmp esi, edx
jae @pattern_search_not_found
mov r10b, byte ptr [r8 + rdi]
cmp r10b, byte ptr [rcx + rdi]
je @pattern_search_matched
cmp r10b, 0CCh
jne @pattern_search_continue
@pattern_search_matched:
inc edi
cmp edi, r9d
jae @pattern_search_exit
jmp @pattern_search_loop
@pattern_search_continue:
xor rdi, rdi
inc rcx
inc
jmp @pattern_search_loop
@pattern_search_not_found:
xor rcx, rcx
@pattern_search_exit:
mov rax, rcx
pop r10
pop rsi
pop rdi
pop rcx
{$ ENDIF}
end;

I congratulate you for the great work you did and what you are doing with llvm (which is not really user-friendly)

Il 08/09/2018 09:20, Martin Schreiber ha scritto:
On Saturday 08 September 2018 07:25:26 Duat wrote:
In my projects I use a lot of Inline Assembler.

And why do your projects need inline assembler?

Martin


_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to