home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / TP_ADV.ZIP / LIST0815.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1989-07-31  |  1.2 KB  |  40 lines

  1. Unit List815;
  2. { This is a simple example of a unit that has the signature    }
  3. { procedure inside the implemenation section.  The only        }
  4. { purpose of this unit is to demonstrate usage of the          }
  5. { signature idea for determining the order of units in the OVR }
  6. { file.                                                        }
  7.  
  8. {$O+,F+}
  9.  
  10. Interface
  11.  
  12. Procedure One;
  13.  
  14. Implementation
  15.  
  16. Procedure Signature;
  17. { This is the signature procedure.  It is important to keep in }
  18. { mind that this procedure MUST be called, and that each unit  }
  19. { MUST have a UNIQUE identifier.  To change the signature, all }
  20. { that is necessary is to change the last two bytes of the     }
  21. { inline code to the new signature.  You must also then create }
  22. { a test file that contains the unit's name and its unique     }
  23. { signature.  An example follows.                              }
  24.  
  25. Begin
  26.   Inline( $EB/$03/             { JMP 03 }
  27.           $90/$00/$00 );       { Unique Signature }
  28. End;
  29.  
  30. Procedure One;
  31. { Simple example procedure that calls the signature procedure }
  32. { and then writes a message.                                  }
  33.  
  34. Begin
  35.   Signature;
  36.   Writeln( 'One...' );
  37. End;
  38.  
  39. End.
  40.