Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Assembly in delphi

delphi assembly

  • Please log in to reply
1 reply to this topic

#1 untitled_1

untitled_1

    CC Addict

  • Validating
  • PipPipPipPipPip
  • 129 posts
  • Location:3rd rock from the sun
  • Programming Language:C, C++, Delphi/Object Pascal, Assembly
  • Learning:Python, Perl, Ada, Fortran, Bash

Posted 05 November 2010 - 11:14 PM

Is there any way to embed assembly into Delphi?
  • 0

#2 Alexander

Alexander

    YOL9

  • Moderator
  • 3963 posts
  • Location:Vancouver, Eh! Cleverness: 200
  • Programming Language:C, C++, PHP, Assembly

Posted 05 November 2010 - 11:22 PM

Is there any way to embed assembly into Delphi?

On Win32 there is an inline assembly option, much like GCC in its own format.
var
  ByteVar: Byte;
  WordVar: Word;
  IntVar: Integer;
       .
       .
       .
asm
  MOV AL,ByteVar
  MOV BX,WordVar
  MOV ECX,IntVar
end;

  • 0

All new problems require investigation, and so if errors are problems, try to learn as much as you can and report back.






Also tagged with one or more of these keywords: delphi, assembly

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download