Build code mixed with my C ++ code. How to transfer up to 64 bits

I am migrating 32-bit C ++ code to 64-bit in VS2008. Old code has mixed code written in assembly.
Example:

__asm

{
  mov esi, pbSrc
  mov edi, pbDest

  ...

}

I read somewhere that I need to delete all the assembly code and put them all in a separate project and somehow connect with it. Can someone give me a step by step step by step step for this. I know C ++ and C #, but I don't know assembly language. Thanks in advance.

+3
source share
2 answers

If you cannot use the built-in functions to accomplish your tasks or cannot write the equivalent in C / C ++, you will have to dive into x64 assembler. From a high level:

1) , x86, x64.

2) ML64 ( Microsoft x64) .OBJ, C/ ++.

3) , .ASM.

!

+1

Visual ++ 2005, 2008 2010 64- . x64 ASM , C (++) __asm, . , "" .

64- #define #ifdef . : http://msdn.microsoft.com/en-us/library/h2k70f3s.aspx

. , , , - ASM - "raw" - void* VirtualProtect() - . , / x64, , , . , 99,9% .

+4

Source: https://habr.com/ru/post/1772010/


All Articles