The Program Segment Prefix (PSP) is a data structure used in DOS systems to store the state of a program. It resembles the Zero Page in the CP/M operating system. The PSP has the following structure:

{| border="1" width="100%" class="wikitable"

! Offset

! Size

! Contents

|-

| 00h–01h

| 2 bytes (code)

| CP/M-80-like<!-- not CP/M-86! --> exit (always contains INT 20h)

</references>

Further reading

  • (41 pages)
  • (1123+v pages, foldout, 5.25"-floppy)
  • Accessing Command Line Arguments (Microsoft.com)