Download Special AI Issue
Transcript
PUBLIC DOMAIN SOFTWARE FOR *ALL* COMPUTERS FROM THE LARGEST LIBRARY IN THE WORLD! Rent or buy complete user group libraries! (Or select individual disk: ONLY $4.00 each.) Since it's not copyrighted, PD software may be freely distributed. Get accounting, dbase, Games, Word Processors, Educational, Communications, Utilities, Spread Sheets and hundred~ more! User Group libraries are expanding every month as new software Is ·contributed, get the latest info: a directory disk and catalog - only $5.00 postpaid! (Specify computer). Browse through a rental library - copying out programs of Interest to build yollr very own special interest library! Rent Buy CP/M COMPUTERS- 300 Formats Available Rent Buy IBM-PC COMPUTERS IBM-PC SIG 454 Disksides .................. $460 $845 SIG/MUG 260 Disksides .•.•••.•...••.••••• $175 $600 PC-Blue 187 Disksides ....... : . ............ $190 $375 CP/M UG 92 Disksldes ..••••.•...••.••••... $ 45 $249 Capitol-PC 35 Disksides ....... ; ............ $ 40 $105 CP/M 86 25 Disksldes •.•.•••••....•.••••... $ 25 $100 Author's Showcase 25 Disksides ............ $ 50 · $100 Kaypro .UG 60 Disksldes •..•.•••........•.•. $ 70 $230 COMMODORE 64 Epson UG 58 Disksides • . . . . . • . . . . . . . • . . . • . . $ 70 $220 PC Gold 102 Disksides ..................... $100 $200 ATARI ST C-64 28 Disksides .......•.................. $ 25 $ 65 STD PD 25 Disksides ...•......•.••••.••...• $ 50 $100 Amiga 25 Disksides ........................ $ 50 $100 . Diskdownloadingservice-$10.00firstdisk,$5.00thereafter. APPLE (Also CP /M Format Available) No label disk sales $.69¢ with PD order. Rentals are for 7 days, Best of DOS 120 Disksides . . . . . . . . . . . . . . . . . . $120 $200 3 more days grace for return. We use UPS. Macintosh 74 Disksides ..................... $ 80 $225 Call (619) 727-1015 for 3 minute info recording. Call (619) 941-0925 for technical info. Call 1(800) 621-5640, wait for tone, then dial "PUBLIC" for orders only. Send large $.39¢ stamped envelope for free catalog. NATIONAL PUBLIC DOMAIN SOFTWARE LIBRARY, 1533-A AVOHILL, VISTA, CA 92084 dler. The communications 110 interrupt should be reserved for use only by additional serial ports in the system. Interrupt 15 - Cassette 1/0 This interrupt is used to interface a cassette tape recorder to the IBM-PC and is not used in my BIOS. Interrupt 16 - Console Input This handles all requests for keyboard data from the system. There are three available functions contained in the AH register on entry to this routine AH=O - Reads the next key, waiting until one is available. AH .... 1 - Returns the data available status in the Z (zero) flag. If the Z flag is set it means that no data is available. If the Z flag is clear, data is available, and the character is returned. The character read is n~t destroyed, but will be available for the next read function request. This is often referred to as a non-destructive read operation. AH ... 2 - Returns the shift status. The IBM keyboard is unencoded, and merely puts out a scan code. The ROM BIOS returns the ASCII translation in the AL register, and the raw scan code in the AH register. My terminal outputs ASCII data, and the scan code is always returned as zero. If you want to include the extra c;ode to return the scan codes, it could be done via a look-up table. The scan codes for the keys on the IBM-PC are listed' in the IBM hardware technical reference manual and are simply the numerical codes assigned to each key. I use an interrupt driven keyboard, but you don't have to. If you use a polled keyboard, make sure you implement the status routine properly so it returns the status without destroying the character (so a subsequent read can retrieve it). This means that the status routine must buffer one character. Interrupt 17 - Printer Output This interrupt is for printer output via a Centronics interface. This is the . default printer mode for PC-DOS. I did not use this interrupt, but if you need it, the following functions are available: AH= 0 - Prints the character in the AL register. Returns the status in AH. Sets AH to indicate a time out error if the character could not be printed. Sets any other status bits as appropriate. AH ... 1 - Initializes the printer port and returns the status in AH. AH ... 2 - Returns the printer status in the AH register. The status bits are defined as follows: Bit 0 - Set for a time out error. Bit 1 - Not used. Bit 2 - Not used. Bit 3 - Set for 1/0 error. Bit 4 - ·set for printer selected. Bit 5 - Set for out of paper. Bit 6 - Set for acknowledge returned from the printer. Bit 7 - Set for not busy condition. For all functions the printer number (not the port number) is contained in the DX register on entry to the interrupt handler. Interrupt 18 - BASIC This interrupt provides access to the BASIC ROM in the IBM-PC, and is not used by my BIOS. Interrupt 19 - Bootstrap This interrupt reads the boot sector (track 0, sector 1) from the disk in the first floppy disk drive. The data is placed at address 0000:7COO (segment:offset), and if a successful read occurs, the bootstrap program is then executed from that address. If an error occurs, the program continues looping (forever) until a successful read is accomplished. The disk 1/0 interrupt (interrupt 13 hex) is used to access the disk 1/0 routines, so there are no hardware dependent parameters in the boot routine. You may want to implement an error message after several retries to provide some indication that the system isn't completely hung up. The normal cause for· this error would be an unformatted disk, since the boot routine does not check the data which it loads from the boot sector. Interrupt lA - Time Of Day This interrupt either reads the timer counters (AH ... 0) or sets them· (AH= 1). Even if you don't have a clock in your system, you sh~uld (continued next page) MICRO CORNUCOPIA, #30, June-July 1986 59