home *** CD-ROM | disk | FTP | other *** search
- Program ViewCodeGeneration;
- { This is a sample program that shows how to use an Inline }
- { statement to view the code generated by the compiler. We }
- { will also use DOS's debug utility to view the code that }
- { the compiler has generated. }
-
- Uses
- Crt;
-
- Var
- X,
- I : Word;
-
- Begin
- ClrScr;
- Writeln( 'This is a sample to show usage of an inline statement' );
- I := 0;
- Randomize;
- X := Random( MaxInt );
- Inline( $90/$90/$90 );
- For I := 1 to 10 Do
- X := X * I;
- Inline( $90/$90/$90 );
- Writeln( 'X = ', X );
- Writeln( 'I = ', I );
- Readln;
- End.
-