Program Segment Prefix: Difference between revisions

Content deleted Content added
m External links: Moved into sub-category
Asmpgmr (talk | contribs)
minor cleanup
Line 48:
| 2Eh-31h
| dword
| SS:SP on entry to last INT 21h call (Internalinternal)
|-
| 32h-33h
| word
| job file table size (internal)
| Max open files (Internal - see below)
|-
| 34h-37h
| dword
| pointer to job file table (internal)
| Handle-entries address (Internal - see below)
|-
| 38h-4Fh
Line 93:
Alternatively, in [[.COM]] programs, one can address the PSP directly just by using the offsets listed above. 00h points to the beginning of the PSP, FFh points to the end, etc. For example, the following code displays the command line arguments:
 
<!-- This may serve as an example for illustration purposes, but it would be a bad idea to actually code it this way. It would be very easy to crash the system by just giving a command line longer than 126 bytes. -->
<pre><nowiki>
org 100h