tw34055.pp 473 B

123456789101112131415161718192021222324
  1. {$mode objfpc}
  2. type
  3. TDOS_FIELDNAMES = (
  4. Dos_Signature, // ord = 0
  5. Dos_OffsetToNewExecutable // ord = 1
  6. );
  7. const
  8. DosFieldLabelsB : array[TDOS_FIELDNAMES]
  9. of pwidechar =
  10. (
  11. 'DOS signature',
  12. 'offset to new executable'
  13. );
  14. d : ppwidechar = @DosFieldLabelsB[Dos_OffsetToNewExecutable];
  15. begin
  16. if d<>@DosFieldLabelsB[Dos_OffsetToNewExecutable] then
  17. halt(1);
  18. end.