Delphi: Basm code snippets

On this page, there are links to some short assembler code examples. Please note that much more information and code examples can be found in the article Considerations for writing and using Intel assembly code in Delphi projects, which has recently been reissued as completely revised second edition. Feel free to send me your remarks or tips about these pages and the other Delphi-related content you can find here. All code examples open in a new window.

Direct I/O in Windows 95, 98 and Me
Counting the number of set bits in an integer
Checking whether a specific bit (0-31) is set
Setting a given bit (0-31) in an integer
Clearing a given bit (0-31) in an integer
Extracting a bit array from an integer


This page was last updated 30 August 2003.