Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   __asm to asm (VS Version to Delphi Version)->__emit ?? (https://www.delphipraxis.net/53960-__asm-asm-vs-version-delphi-version-__emit.html)

sniper_w 26. Sep 2005 13:45


__asm to asm (VS Version to Delphi Version)->__emit ??
 
Code:
void funcname( int func )
{
   unsigned regEAX, regEBX, regECX, regEDX;

   __asm mov eax, func
   __asm __emit 00fh
   __asm __emit 0a2h
   __asm mov regEAX, eax
   __asm mov regEBX, ebx
   __asm mov regECX, ecx
   __asm mov regEDX, edx
Wie soll das in Delphi Asembler aussehen ? __emit ?

Flocke 26. Sep 2005 13:48

Re: __asm to asm (VS Version to Delphi Version)->__emit ?
 
einfach "db"

Delphi-Quellcode:
asm
  mov eax, func
  db $0f
  db $a2
  mov regEAX, eax
  mov regEBX, ebx
  mov regECX, ecx
  mov regEDX, edx
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz