ibm PCjr — 5-18

BIOS Programming Guidelines The BIOS code is invoked through software interrupts. The programmer should not I hard code I BIOS addresses into applications. The internal workings and absolute addresses within BIOS are subject to change without notice. If an error is reported by the diskette code, you should I reset I the drive adapter and retry the operation. A specified number of retries should be required on diskette I reads I to insure the problem is not due to motor start-up. When altering I/O-port bit-values, the programmer should change only those bits which are necessary to the current task. Upon completion, the programmer should restore the original environment.

'Failure to adhere to this practice may be incompatible with present and future systems. Adapter Cards with System-Accessible ROM-Modules The ROM BIOS provides a facility to integrate adapter cards with on-board ROM-code into the system. During the Power-On Self-Test (POST), interrupt vectors are established for the BIOS calls. Mter the default vectors are in place, a scan for additional ROM modules takes place. At this point, a ROM routine on the adapter card may gain control. The routine may establish or intercept interrupt vectors to hook themselves into the system. The absolute addresses hex COOOO through hex DOOOO are scanned in 2K-byte blocks in search of a valid adapter card ROM.

A valid ROM is defined as follows: 5-18 Other Memory Usage