Copyright (C) 2000-2012 |
GNU Info (nasm.info)Section 7.37.3. Producing `.SYS' Files =========================== MS-DOS device drivers - `.SYS' files - are pure binary files, similar to `.COM' files, except that they start at origin zero rather than `100h'. Therefore, if you are writing a device driver using the `bin' format, you do not need the `ORG' directive, since the default origin for `bin' is zero. Similarly, if you are using `obj', you do not need the `RESB 100h' at the start of your code segment. `.SYS' files start with a header structure, containing pointers to the various routines inside the driver which do the work. This structure should be defined at the start of the code segment, even though it is not actually code. For more information on the format of `.SYS' files, and the data which has to go in the header structure, a list of books is given in the Frequently Asked Questions list for the newsgroup `comp.os.msdos.programmer'. automatically generated by info2www version 1.2.2.9 |