Some Intel Assembler ExamplesSome Intel assembly language using gcc... these generally show how some high-level language constructs are accomplished in assembly code:
For each test case above, here are links to the C code, gcc-generated assembly code, and my clean-up version of the assembly code.
One more "example." Here's a file I use as a starting point or template when creating assembly code files. This may keep you from making silly mistakes and also keeps a nice common style across files. Copy this template file to your local folder and modify it for your purposes. Please note: all these examples and the template reside in the Common Area of our class k: drive.
|