Watch, Follow, &
Connect with Us

Please visit our new home

Welcome, Guest
Guest Settings

Thread: Please help to convert win32 asm to win64 asm

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0
Gerhard Knapp

Posts: 5
Registered: 3/1/04
Please help to convert win32 asm to win64 asm  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 11, 2015 7:13 AM
This is my problem:
mov ecx, core_globals_value
mov edx, dword ptr TSRMLS_DC
mov eax, dword ptr [edx]
mov ecx, dword ptr [eax+ecx*4-4]
mov core_globals, ecx
mov rcx, core_globals_value
mov rdx, qword ptr TSRMLS_DC
mov rax, qword ptr [rdx]
mov rcx, qword ptr [rax+rcx*4-4]
mov core_globals, rcx

Delphi 10 Seattle,
TSRMLS_DC is type of Pointer
core_globals_value is a record

Line: mov rax, qword ptr [rdx] causes a vialotion error.

the CPUX86 part works correct, but how i have to alter the x64 part to work?

many thanks if you have a solution
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02