home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!sgiblab!cs.uoregon.edu!ogicse!das-news.harvard.edu!spdcc!dirtydog.ima.isc.com!laidbak!tellab5!vpnet!cgordon
- From: cgordon@vpnet.chi.il.us (gordon hlavenka)
- Newsgroups: comp.sys.ibm.pc.hardware
- Subject: Re: eprom checksum
- Message-ID: <1992Nov04.033558.25890@vpnet.chi.il.us>
- Date: 4 Nov 92 03:35:58 GMT
- Article-I.D.: vpnet.1992Nov04.033558.25890
- References: <1992Nov02.123234.19615@donau.et.tudelft.nl>
- Organization: Vpnet Public Access
- Lines: 37
-
-
- martijn@zen.et.tudelft.nl (Martijn Nykerk) writes:
- >Does anybody out there now how to compute the checksum (assuming there is one)
- >for an EPROM. I am trying to add some hardware to a PC with its own EPROM,
- >but can't seem to tell DOS to install it.
- >I known there is a byte after the AA 55, but what does it say?
-
- The "BIOS Extension Signature" is 55 AA nn where nn is the length of
- the extension. I think the unit used is 128-byte chunks, but I'm not
- sure. Anyway, the arithmetic sum (mod 256) of all bytes in the
- extension must be zero.
-
- How it is adjusted doesn't matter; by convention the last byte in the
- ROM is set to the appropriate value to adjust the checksum. You could
- use any byte in the ROM -- provided that byte isn't say, code or something.
-
- The contents of the ROM will be executed at boot time; the entry point
- is at offset 3. Again by convention, this location holds a JMP
- instruction to the initialization code. (The initialization code
- could just as well start at offset 3, though.) The idea here is that
- you get control to do any required initialization. The inialization
- would, in addition to actually setting up the hardware, hook whatever
- interrupt vectors were applicable so you could access your hardware
- later. After initialization, return control to the BIOS with a RETF.
-
- Your ROM _can't_ use any DOS calls during initialization, since DOS
- hasn't loaded yet. And, you shouldn't use DOS calls in the ROM
- elsewhere either, since that would really bug someone trying to write
- a NextStep driver for your hardware. (or whatever :-)
-
- There may be some errors / omissions in the above, but it's certainly
- close enough to get you started.
-
- --
- ----------------------------------------------------
- Gordon S. Hlavenka cgordon@vpnet.chi.il.us
- "A political plug formerly appeared here."
-