Wednesday, March 2, 2011

View your code in assembly

As you know, every line of code you write has to eventually translate into machine code in order for your computer to understand. If you're interested in seeing the assembly language (easier to understand version of machine code) equelant of what you write while debugging (for example)...

  • Exit Delphi
  • Run "Registry Editor" (run regedit.exe or regedit32.exe)
  • Select following registry key:


  • Add an item of type "REG_SZ" named "EnableCPU" and set its value to "1" (without the quotes)
  • Exit Registry Editor
  • Restart Delphi and select "View | CPU"
Now when you debug your program, you'll see the assembly instructions in the new "DiassemblyView" window.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum