Program Segment Prefix: Difference between revisions

Content deleted Content added
add link
m grammar
Line 8:
| 00h-01h
| 2 bytes (code)
| [[CP/M-86|CP/M]] exit (always containcontains [[INT 20h]])
|-
| 02h-03h
Line 103:
|}
 
The PSP is most often used to get the [[argc|command line arguments]] of a DOS program,; for example, the command "FOO.EXE /A /F" executes FOO.EXE with the arguments '/A' and '/F'.
 
The segment address of the PSP is passed in the DS register when the program is executed. It can also be determined later by using Int 21h function 51h or Int 21h function 62h. Either function will return the PSP address in register BX.<ref>{{cite web|url=http://www.htl-steyr.ac.at/~morg/pcinfo/hardware/interrupts/inte8fjk.htm|title=INT 21h,62h - Get PSP address (DOS 3.x)}}</ref>