PAGE 6 "THE INFORMER" BY MATT LOVELESS & MIKE EGGERS (From the May '86 Antic) (synopsis) The Informer puts a four-item status line into the screen display of your BASIC programs. This final installment of the Page 6 Grab-Bag is a BASIC program that works on all 8-bit Atari computers of any memory size, with disk drive. The third and final installment of our Page 6 Grab-Bag series is a single program, The Informer, that creates a single-line "text window" in your 8-bit Atari and lets you see the current [SHIFT]-[CAPS] mode, the cursor row and column, and the amount of free memory left for your BASIC program. (Page 6 is 256 memory bytes from location 1536 to 1791 -- $0600 $06FF in hexadecimal. "Protected" from the operating system and BASIC, Page 6 provides a safe homebase for fast, powerful machine language routines which can be called from your BASIC program. The Informer places a status line above your standard screen display. The information there is updated sixty times per second. From left to right, the line provides the following information: MODE indicates the current [CAPS]-lock status. If you press [SHIFT] and [CAPS], a letter "A" is displayed, indicating all input will be in upper-case. Similarly, an "a" indicates lower case, while a heart character [ ] is shown when all key-presses are to be interpreted as [CONTROL] characters. This occurs when you press [CONTROL]-[CAPS]. MODE also indicates whether input is in inverse video or normal mode. ROW, COLUMN shows the current cursor position. In addition to the GRAPHICS 0 cursor, the position of the invisible graphics cursor is displayed as well. Note that in GRAPHICS 7 or 8, garbage will appear here if a number is greater than 40. FREE provides a hexadecimal display of how many free bytes of memory are available to the BASIC programmer. Free memory is calculated by subtracting the value of MEMTOP (top of memory) from LOMEM (bottom of memory). MEMTOP is a two-byte pointer to the top of BASIC memory. To determine MEMTOP, take the value found in memory location 145 ($91) and multiply it by 256. Add this number to the value found in location 144 ($90). In other words: MEMTOP=PEEK(145)*256 + PEEK(144) LOMEM may be calculated similarly using memory locations 128 and 129 ($80, $81). LOMEM is maintained by BASIC and must not be confused with the operating system's MEMLO. Once invoked, The Informer stays at the top of the screen until the computer is turned off, or the Deferred Vertical Blank vector (VVBLKD, locations 548-549 ($0224-$0225)) is reset. If you switch screen modes, The Informer's status line will redraw itself at the top of the new display. Even pressing [RESET] will not disturb The Informer. And since it sits above the screen that Atari uses, The Informer will not hamper program operation. The Informer status line disappears during time-critical periods such as disk I/O. It reappears, updated and ready to go, when the critical period is over. This line replaces one of the BLANK 8 LINES instructions in the ANTIC display list. You can disable The Informer by pressing [OPTION] [SHIFT]-[RESET]. Reinstate it with [SHIFT]-[RESET]. This routine will not work with the Atari Editor/Assembler cartridge because the cartridge squelches all deferrred vertical blanks. Download INFORM.ARC. Use the ARC utilities in the 8-bit section of SIG*ATARI to extract INFORMER.EXE and INFORMER.M65, the MAC/65 source code. To use The Informer, copy INFORMER.EXE to another disk (make sure the disk has the DOS.SYS file on it!). Next, change the name of INFORMER.EXE to AUTORUN.SYS. Now, re-boot your Atari with this disk, and The Informer will appear. (bio) Cousins Matt Loveless and Mike Eggers were both in their mid-teens when Page 6 was originally released on disk by Synapse Software in 1982.