Category : Assembly Language Source Code
Archive   : DDKIT.ZIP
Filename : REQHDR.MAC

 
Output of file : REQHDR.MAC contained in archive : DDKIT.ZIP
;
;
; static request header
LNG EQU 0 ;BYTE: first byte is length of header
UNIT EQU 1 ;BYTE: unit number for block devices
CMD EQU 2 ;BYTE: command code for request
STAT EQU 3 ;WORD: status
DOS_Q EQU 5 ;DWORD: DOS queue
DEV_Q EQU 9 ;DWORD: device queue
;
; init header
UNITS EQU 13 ;BYTE: number of units
BRKOFF EQU 14 ;DWORD: ending address for resident code
BRKSEG EQU 16 ;
BPB EQU 18 ;DWORD: ptr to BPB array on exit (block devices only)
PARMS EQU 18 ;DWORD: ptr to string following "device=" cmd
;
; non destructive read - no wait
PRECHAR EQU 13 ;BYTE: one look ahead character
;
; input, output, IOCTL in, IOCTL out
MEDIA EQU 13 ;BYTE: media descriptor byte
BUF EQU 14 ;DWORD: buffer address
CNT EQU 18 ;WORD: byte/sector count
START EQU 20 ;WORD: starting sector number
;
; status word bit definitions (most significant byte)
;
REQDON EQU 01H ;request complete
BUSY EQU 02H ;device busy
ERROR EQU 80H ;error encountered
;
; status word error codes (least significant byte)
;
NOTRDY EQU 02H ;device not ready
UNKCMD EQU 03H ;unknown command
NOPAPER EQU 09H ;printer out of paper
WRFLT EQU 0AH ;write fault
RDFLT EQU 0BH ;read fault
FAIL EQU 0CH ;general failure




  3 Responses to “Category : Assembly Language Source Code
Archive   : DDKIT.ZIP
Filename : REQHDR.MAC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/