📄 dvdrdata.inc
字号:
; MMURTL Operating System Source Code
; Copyright 1991,1992,1993, Richard A. Burgess
; ALL RIGHTS RESERVED
; Version x0.8
;These are the Equates and data for the device driver entry and exit code.
nDevices EQU 24 ;Number of Device Control Blocks
;Device Control Block. This structure defines the DCB layout for all
;device drivers. Each driver is responsible for creating and initially
;setting up a DCB prior to calling InitDevDr. The OS maintains an array
;of pointers to the device drivers. The physical device number
;(0-nDevices) is determined by the position in the array. An array
;position that contains a NULL pointer indicates a device is not installed.
;For instance, if the first pointer in the rgpDCBs is NULL, device "0"
;is not available. The DCB also maintains a 12 byte name for the device
;which the installer specifies. A PUBLIC call is provided to translate
;the name to a device number so callers and services can find the
;physical number from the name.
;The name of a device is case aware but NOT case sensitive
;
; The DCB structure layout follows:
;
sDevCB EQU 64 ;size of the Device Control Block
DevCBType STRUC ;Block Device Control block
DevName DB 12 DUP (0) ;Device Name
sbDevName DB 0 ;Length of Devname
DevType DB 0 ;1 = RANDOM, 2 = SEQUENTIAL, 0 = No Device
nBPB DW 0 ;Bytes per Block (1 to 65535 max)
LastDevErc DD 0 ;Last error code from an operation
nDevBlocks DD 0 ;Number of blocks in device (0 for sequential)
;24
pDevOp DD 0 ;Offset to device Operation handler
pDevInit DD 0 ;Offset to device Init handler
pDevSt DD 0 ;Offset to device Status handler
;36
fDevReent DB 0 ;Is device handler reentrant?
fSingleUser DB 0 ;Is device assignable?
wJob DW 0 ;If assignable, is it? (0 for no, else Job Num)
DevSemExch DD 0 ;Exch for device semaphore (if not reentrant)
DevSemMsg DD 0 ;Msg holder for msg from WAIT on queued Tasks
DevSemMsg1 DD 0 ;Msg holder (second DWord)
;52
DevRsvd DB 12 DUP(0) ;Reserved out to 64 bytes
DevCBType ENDS
rgpDCBs DD nDevices DUP (0) ;
rgReDIR DD nDevices DUP (0) ;For redirection of devices
;Standard Devices are:
;# Device Standard name
;0 NULL device NUL (OS built-in)
;1 Keyboard (sequential) KBD (OS built-in, ReadOnly)
;2 Video (sequential) VID (OS built-in, WriteOnly)
;3 Printer (parallel 1) LPT1 (OS built-in)
;4 Printer (parallel 2) LPT2 (OS built-in)
;5 RS-232 1 COM1 (OS built-in)
;6 RS-232 2 COM2 (OS built-in)
;7 RS-232 3 COM3 (OS built-in)
;8 RS-232 4 COM4 (OS built-in)
;9
;10 Floppy FD0 (OS built-in)
;11 Floppy FD1 (OS built-in)
;12 Hard disk HD0 (OS built-in)
;13 Hard disk HD1 (OS built-in)
;14
;15
;16
;17
;18
;19
;20
;21
;22
;23
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -