📄 rxdosdef.asm
字号:
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Data Structures and Definitions ;
;...............................................................;
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Real Time Dos Data Structure Definitions ;
;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
; ;
; Data Structure Definitions ;
; ;
; ;
; (c) Copyright 1990, 1997 Api Software and Mike Podanoffsky ;
; All Rights Reserved Worldwide. ;
; ;
; This product is protected under copyright laws and may not ;
; be reproduced in whole or in part, in any form or media, ;
; included but not limited to source listing, facsimile, data ;
; transmission, cd-rom, or floppy disk without the expressed ;
; written consent of the author. ;
; ;
; License for distribution for commercial use or resale ;
; required from: ;
; ;
; Api Software ;
; 12 South Walker Street ;
; Lowell, MA 01851 ;
; ;
; internet: mikep@world.std.com ;
; ;
;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -;
; Compile with MASM 5.1 ;
;...............................................................;
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Set ROM IDENTIFICATION ;
;...............................................................;
IFDEF RxDOS_ROMVERSION
ROM_IDENTIFICATION equ 8 ; ROM Version Status
ELSE
ROM_IDENTIFICATION equ 0 ; not in ROM
ENDIF
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Default Configuration Parameters ;
;...............................................................;
;RxDOS_TRACEBUILD equ 1
DEFAULT_FILES equ 8 ; MS DOS default is 8
DEFAULT_FCBS equ 4 ; MS DOS default is 4
DEFAULT_BUFFERS equ 10 ; MS DOS default is 2
DEFAULT_LASTDRIVE equ 'E' ; MS DOS default is e:
DEFAULT_FCBOPENMODE equ 2 ; change only if you want read-only
DEFAULT_STACKS equ 9 ;
DEFAULT_CODEPAGE equ CODEPAGE_UNITEDSTATES ; default code page
DEFAULT_COUNTRYCODE equ COUNTRY_UNITEDSTATES ; default country code
DEFAULT_MINENVIRONMENT equ 2048 ; bytes default environment space
DEFAULT_MINALLOWEDENVIRONMENT equ 160 ; MS DOS minimum
DEFAULT_MAXALLOWEDENVIRONMENT equ 32768 ; MS DOS maximum
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Max Configuration Parameters Allowable ;
;...............................................................;
; max allowed values, not actual values
CONFIGMAX_FILES equ 255 ; MS DOS default is 8 (value is max allowed)
CONFIGMAX_BUFFERS equ 99 ; MS DOS default is 2 (value is max allowed)
CONFIGMAX_FCBS_X equ 255 ; MS DOS default is 4 (value is max allowed)
CONFIGMAX_FCBS_Y equ 255 ; MS DOS default is 0 (value is max allowed)
CONFIGMIN_STACKS_X equ 8 ; MS DOS default is 9
CONFIGMAX_STACKS_X equ 64
CONFIGMIN_STACKS_Y equ 32 ; MS DOS default is 128
CONFIGMAX_STACKS_Y equ 512
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; DOS Functions ;
;...............................................................;
ProgramTerminate equ 00h ; Program Terminate
KeyboardInput equ 01h ; Keyboard Input
DisplayOutput equ 02h ; Display Output
AuxInput equ 03h ; Aux Input
AuxOutput equ 04h ; Aux Output
PrinterOutput equ 05h ; Printer Output
DirectConsole equ 06h ; Direct Console
DirectConsoleInputNoEcho equ 07h ; Direct Console Input NoEcho
ConsoleInputNoEcho equ 08h ; Console Input NoEcho
DisplayString equ 09h ; Display String
BufferedKeyboardInput equ 0Ah ; Buffered keyboard input
GetLine equ BufferedKeyboardInput
CheckKeyboardInput equ 0Bh ; Check keyboard input
ClearBufferedKeyboardInput equ 0Ch ; Clear Buffered keyboard input
DiskReset equ 0Dh ; Disk reset
SelectDisk equ 0Eh ; Select disk
OpenFileFCB equ 0Fh ; Open file FCB
CloseFileFCB equ 10h ; Close file FCB
SearchFirstFileFCB equ 11h ; Search first file FCB
SearchNextFileFCB equ 12h ; Search next file FCB
DeleteFileFCB equ 13h ; Delete file FCB
SeqReadFileFCB equ 14h ; Seq read file FCB
SeqWriteFileFCB equ 15h ; Seq write file FCB
CreateFileFCB equ 16h ; Create file FCB
RenameFileFCB equ 17h ; Rename file FCB
CurrentDisk equ 19h ; Current disk
SetDiskTransferAddress equ 1Ah ; Set disk transfer address
SetDTA equ SetDiskTransferAddress
GetDefaultDriveData equ 1Bh ; Get Default Drive Data
GetDriveData equ 1Ch ; Get Drive Data
GetDefaultDriveParameterBlock equ 1Fh ; Get Default Drive Parameter Block
ReadFileFCB equ 21h ; Read file FCB
WriteFileFCB equ 22h ; Write file FCB
FileSizeFCB equ 23h ; File size FCB
SetRelativeRecordFCB equ 24h ; Set relative record FCB
SetIntVector equ 25h ; Set interrupt vector
CreateNewProgramSeg equ 26h ; Create new program seg
RandomBlockReadFCB equ 27h ; Random block read FCB
RandomBlockWriteFCB equ 28h ; Random block write FCB
ParseFilenameFCB equ 29h ; Parse filename FCB
GetDate equ 2Ah ; Get date
SetDate equ 2Bh ; Set date
GetTime equ 2Ch ; Get time
SetTime equ 2Dh ; Set time
SetVerifySwitch equ 2Eh ; Set verify switch
GetDiskTransferAddress equ 2Fh ; Get disk transfer address
GetDTA equ GetDiskTransferAddress
GetDOSVersion equ 30h ; Get DOS version
TerminateStayResident equ 31h ; Terminate stay resident
GetDriveParameterBlock equ 32h ; Undocumented (Get Drive Parameter Block)
CtrlBreakCheck equ 33h ; Ctrl break check
GetINDOSFlagAddress equ 34h ; Get INDOS Flag Address
GetIntVector equ 35h ; Get interrupt vector
GetFreeDiskSpace equ 36h ; Get free disk space
GetSetSwitchChar equ 37h ; Get/set switch char
CountryDependentInfo equ 38h ; Country dependent info
CreateSubdirectory equ 39h ; Create subdirectory
RemoveSubdirectory equ 3Ah ; Remove subdirectory
ChangeSubdirectory equ 3Bh ; Change subdirectory
CreateFile equ 3Ch ; Create file
OpenFile equ 3Dh ; Open file
CloseFile equ 3Eh ; Close file
ReadFile equ 3Fh ; Read file
WriteFile equ 40h ; Write file
DeleteFile equ 41h ; Delete file
MoveFilePointer equ 42h ; Move file pointer
ChangeFileMode equ 43h ; Change file mode
IoControl equ 44h ; Io Control
DuplicateFileHandle equ 45h ; Duplicate file handle
ForceFileHandle equ 46h ; Force file handle
GetCurrentDirectory equ 47h ; Get current directory
AllocateMemory equ 48h ; Allocate memory
FreeAllocatedMemory equ 49h ; Free allocated memory
ModifyAllocatedMemory equ 4Ah ; Modify allocated memory
ExecuteProgram equ 4Bh ; ExecuteProgram
TerminateProcess equ 4Ch ; Terminate process
TerminateProgram equ TerminateProcess
GetReturnCode equ 4Dh ; Get return code
FindFirstFile equ 4Eh ; Find first file
FindNextFile equ 4Fh ; Find next file
SetPSPAddress equ 50h ; Set PSP Address
GetPSPAddress equ 51h ; Get PSP Address
GetDosDataTablePtr equ 52h ; Undocumented (Get DOS Data Table)
GetVerify equ 54h ; Get verify
DuplicatePSP equ 55h ; Duplicate PSP
RenameFile equ 56h ; Rename file
SetFileDateTime equ 57h ; Set file date time
GetAllocationStrategy equ 5800h ; Get allocation strategy
SetAllocationStrategy equ 5801h ; Set allocation strategy
GetExtendedError equ 59h ; Get extended error
CreateUniqueFile equ 5Ah ; Create unique file
CreateNewFile equ 5Bh ; Create new file
LockFileAccess equ 5Ch ; Lock file access
ServerShareAndSwap equ 5Dh ; Server Share/ Swap
SetExtendedError equ 5D0Ah ; Set Extended Error
GetMachineName equ 5Eh ; Get machine name
GetRedirectionList equ 5Fh ; Get redirection list
GetActualFileName equ 60h ; Undocumented (Get Actual FileName)
GetProgramSegmentPrefix equ 62h ; Get program segment prefix
ExtCountryDependentFunctions equ 65h ; Country Dependent Functions
SetHandlesCount equ 67h ; Set Handles Count
CommitFile equ 68h ; Commit File
GetDiskSerialNumber equ 69h ; Get Disk Serial Number
ExtendedOpenCreate equ 6Ch ; Extended Open/ Create
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Network Redirector (2F11) Functions ;
;...............................................................;
IFSInstallCheck equ 00h ; Install Check
IFSRemoveDirectory equ 01h ; Remove Directory
IFSMakeDirectory equ 03h ; Make Directory
IFSChangeDirectory equ 05h ; Change Directory
IFSCloseFile equ 06h ; Close File
IFSCommitFile equ 07h ; Commit File
IFSReadFile equ 08h ; Read File
IFSWriteFile equ 09h ; Write File
IFSLockRegion equ 0Ah ; Lock Region
IFSUnlockRegion equ 0Bh ; Unlock Region
IFSGetDiskSpace equ 0Ch ; Get Disk Space
IFSSetFileAttributes equ 0Eh ; Set File Attributes
IFSGetFileAttributes equ 0Fh ; Get File Attributes
IFSRenameFile equ 11h ; Rename File
IFSDeleteFile equ 13h ; Delete File
IFSOpenFile equ 16h ; Open File
IFSCreateFile equ 17h ; Create File
IFSFindFirst equ 1Bh ; Find First
IFSFindNext equ 1Ch ; Find Next
IFSCloseAllFiles equ 1Dh ; Close All Files
IFSSetRedirection equ 1Eh ; Set Redirection
IFSPrinterSetup equ 1Fh ; Printer Setup
IFSFlushBuffers equ 20h ; Flush Buffers
IFSSeekFromEnd equ 21h ; Seek From End
IFSTerminateProcess equ 22h ; Terminate Process
IFSQualifyFilename equ 23h ; Qualify Filename
IFSPrinterMode equ 25h ; Printer Mode
IFSPrinterOnOff equ 26h ; Printer On/Off
IFSCopy equ 27h ; Copy
IFSIOCTL equ 2Bh ; IOCTL
IFSExpandedOpen equ 2Eh ; Expanded Open/Create
IFSGetSegment equ 30h ; Get NFS Segment
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Interrupt Definitions ;
;...............................................................;
intTERMINATEAPP equ 22h ; terminate app
intCONTROLC equ 23h ; control-c handler
intCRITICALERROR equ 24h ; critical error
intIDLELOOP equ 28h ; let other applications run
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Standard I/O Definitions ;
;...............................................................;
STDIN equ 00
STDOUT equ 01
STDERR equ 02
STDAUX equ 03
STDPRN equ 04
;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''';
; Seek Definitions ;
;...............................................................;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -