PSP.DEF
资源名称:drdossrc.zip [点击查看]
上传用户:xiaogehua
上传日期:2007-01-08
资源大小:1183k
文件大小:4k
源码类别:
操作系统开发
开发平台:
Asm
- ; File : $PSP.DEF$
- ;
- ; Description :
- ;
- ; Original Author : DIGITAL RESEARCH
- ;
- ; Last Edited By : $CALDERA$
- ;
- ;-----------------------------------------------------------------------;
- ; Copyright Work of Caldera, Inc. All Rights Reserved.
- ;
- ; THIS WORK IS A COPYRIGHT WORK AND CONTAINS CONFIDENTIAL,
- ; PROPRIETARY AND TRADE SECRET INFORMATION OF CALDERA, INC.
- ; ACCESS TO THIS WORK IS RESTRICTED TO (I) CALDERA, INC. EMPLOYEES
- ; WHO HAVE A NEED TO KNOW TO PERFORM TASKS WITHIN THE SCOPE OF
- ; THEIR ASSIGNMENTS AND (II) ENTITIES OTHER THAN CALDERA, INC. WHO
- ; HAVE ACCEPTED THE CALDERA OPENDOS SOURCE LICENSE OR OTHER CALDERA LICENSE
- ; AGREEMENTS. EXCEPT UNDER THE EXPRESS TERMS OF THE CALDERA LICENSE
- ; AGREEMENT NO PART OF THIS WORK MAY BE USED, PRACTICED, PERFORMED,
- ; COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED,
- ; CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, RECAST,
- ; TRANSFORMED OR ADAPTED WITHOUT THE PRIOR WRITTEN CONSENT OF
- ; CALDERA, INC. ANY USE OR EXPLOITATION OF THIS WORK WITHOUT
- ; AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO CRIMINAL AND
- ; CIVIL LIABILITY.
- ;-----------------------------------------------------------------------;
- ;
- ; *** Current Edit History ***
- ; *** End of Current Edit History ***
- ;
- ; $Log$
- ;
- ; ENDLOG
- ;
- ; Program Segment Prefix
- ; ----------------------
- ; This structure holds vital information for DOS programs
- ;
- ;*******************************************************************************
- ;*
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 00 | int 20 | memory | *** | jmpf|longjmp off|
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 08 |longjmp seg| int22 Off | int22 Seg | int22 Off |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 10 | int22 Seg | int24 Off | int24 Seg | Parent |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 18 | Default Handle Table |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 20 | XFT (20 entries) |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 28 | XFT contd. | Environ | User SP |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 30 | User SS | xfnmax | xftoff | xftseg |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 38 | res1 | res2 | ric | *** | ********* |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 40 | version | ********* | ********* | ********* |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 48 | ********* | ********* | ********* | ********* |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 50 | int 21 | retf| *** | ********* | ********* |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- ;* 58 | ********* | ********* | PSP fcb 1 |
- ;* +-----+-----+-----+-----+-----+-----+-----+-----+
- PSP_INT20 equ es:word ptr .0000h
- PSP_MEMORY equ es:word ptr .0002h
- ;PSP_??? equ es:byte ptr .0004h
- PSP_LONGCALL equ es:byte ptr .0005h
- PSP_LONGOFF equ es:word ptr .0006h
- PSP_LONGSEG equ es:word ptr .0008h
- PSP_TERM_IP equ es:word ptr .000Ah
- PSP_TERM_CS equ es:word ptr .000Ch
- PSP_BREAK_IP equ es:word ptr .000Eh
- PSP_BREAK_CS equ es:word ptr .0010h
- PSP_ERROR_IP equ es:word ptr .0012h
- PSP_ERROR_CS equ es:word ptr .0014h
- PSP_PARENT equ es:word ptr .0016h
- PSP_XFT equ es:byte ptr .0018h
- ;
- ; The Default Handle Table is HERE !!
- ;
- PSP_ENVIRON equ es:word ptr .002ch
- PSP_USERSP equ es:word ptr .002eh
- PSP_USERSS equ es:word ptr .0030h
- PSP_XFNMAX equ es:word ptr .0032h
- PSP_XFTPTR equ es:dword ptr .0034h
- PSP_XFTOFF equ es:word ptr .0034h
- PSP_XFTSEG equ es:word ptr .0036h
- PSP_RES1 equ es:word ptr .0038h ; DOS Reserved 0FFFFh
- PSP_RES2 equ es:word ptr .003Ah ; DOS Reserved 0FFFFh
- PSP_RIC equ es:byte ptr .003Ch ; Return Interim Character flag
- PSP_VERSION equ es:word ptr .0040h ; DOS version number
- PSP_DOSCALL equ es:word ptr .0050h
- PSP_DOSRETF equ es:byte ptr .0052h
- PSP_FCB1 equ es:byte ptr .005Ch
- PSP_FCB2 equ es:byte ptr .006Ch
- PSP_COMLEN equ es:byte ptr .0080h
- PSP_COMLINE equ es:byte ptr .0081h
- XFNMAX equ 20
- PSPLEN equ 100h
- PSPILEN equ 60h