The Atari Tutorial Pa.rt 4: Display-List Interrupts

Chris Crawford 1272 Borregas Ave Sunnyvale CA 94086

The display-list interrupt is one of while it is being drawn. Of course, business. The interrupt to do this the most powerful features built into the must make each change must be precisely timed to occur at the Atari system. each time the screen is drawn, which exactly the same point during the It is also one of the least accessible happens 60 times per second. Also screen-drawing process. This spe­ features of the system, ' requiring of (and this is the tricky part), it must cially timed interrupt is provided by the programmer a firm understanding change the parameter in question at the ANTIC integrated circuit within of assembly language as well as all of exactly the same moment each time the Atari 400/ 800; it is called a the other characteristics of the the screen is drawn. That is, the cycle display-list interrupt (DLI). machine. Used alone, display-list in­ of changing screen parameters must The timing and execution of any in­ terrupts provide no additional be synchronized to the screen­ terrupt process can be intricate; there­ capabilities; they must be used in con­ drawing cycle. One way to do this fore, r shall first describe the sequence junction with the other features of the might be to lock the 6502 micro- of events in a properly working system, such as player-missile display-list interrupt. The process graphics, character-set indirection, or begins when the ANTIC chip en­ color-register indirection. With With display-list counters a display-list instruction display-list interrupts, the full power interrupts, many key having its interrupt bit (bit 07) set. of these features can be realized. Atari registers can be ANTIC waits until the last scan line Display-list interrupts take advan­ of the mode line it is currently tage of the sequential nature of the changed during the displaying. ANTIC then refers to its raster-scan television display. The drawing of a single NMIEN (nonmaskable interrupt television draws the screen image in a screen-display frame. enable) register (hexadecimal location time sequence, from the top of the D40E) to see if display-list interrupts screen to the bottom. This drawing have been enabled. If the enable bit process takes about 13,000 micro­ processor into a tight timing loop (bit 07) is cleared (to a logic 0), AN­ seconds and looks instantaneous to with an execution frequency of exact­ TIC ignores the interrupt and con­ the human eye. But that is a long time ly 60 hertz. This would make it very tinues its regular tasks. If the enable in comparison to the time scale the difficult for the computer to do bit is set (to a logic 1), ANTIC "pulls computer works in. The computer anything other than the screen­ down" the NMI (nonmaskable inter­ has plenty of time to change the display computations. It would also rupt) line on the 6502, signal ing an parameters of the screen display be a tedious job. A much better way interrupt. ANTIC then goes back to is to interrupt the 6502 just before the its normal display activities. The 6502 This article appears in slightly different time has come to change the screen starts executing an interrupt-service form in De Re Atari, a book published by parameters. The 6502 responds to the routine pointed to by the NMI vector Atari Inc, and is reproduced with its ex­ in terrup t, changes the screen in the operating system. This routine press permission. parameters, and returns to its normal first determines the cause of the inter-

166 December 1981 © BYTE Publications Inc No business is too small fora

Our new HORIZON computer lets you make beautiful music. HORIZON® is our multi-user system that business around the world.) supports up to five simultaneous users To find out how you can orchestrate your at a cost per user that is the best own kind of beautiful music, clip and in the industry. mail this coupon, or call TOLL FREE With it, you can use up to 800-447-4700. (Illinois 800-322-4400, five terminals performing Alaska/ Hawaii 800-447-0890.) word processing, accounting North Star , Inc. activities and information man­ 14440 Catalina St., San Leandro, agement-in perfect harmony. CA 94577 USA (415) 357-8500 Two packaged systems are avail- TWX/ Telex (910) 366-7001 able - the TSS/ 5, a 5Mb version and the y~, Pdlike~-;;r;-i;;ro-;-~tio; ~ N;rth St;':'s------i TSS/ 18, an 18Mb version. Solo HORIZONs ••• multi-user system performance. I can expand to duets, trios, quartets or NAME I quintets with North Star's TSS/ A Application System or : COMPANY : North Star's TSS/ C Multi-user CP/M ~ : ADDRESS I When you purchase the HORIZON multi-user I CITY : svstem , :you receive worldwide service, support and the I ZIP I J I STATE I .most widely used small business computer in the world. I I (There are some 30,000 HORIZONs conducting L =PHc:,0::.:N~E==--==-==c:==c::==c::=-=-=c:=-=-=-____ B1 ~ J T he No rth Slar logo and HORI ZON are trademarks or registered trademarks of No rt h Star Computers. Inc. FOLLOW THE STAR ¥... @J981. NOrlh Slar Computers. Inc. -- - . - ._------. --- - NorthSlOrT..

Circle 304 on inquiry card. Introducing the Sinclair ZX81 If you're ever going to buy If you already own a ZX80 a personal computer, now is the The BK Extended BASIC time to do it. chip used in the ZX81 is available The new Sinclair ZX81 is the as a plug-in replacement for your most powerful, yet easy-to-use ZXBO for only $39.95, plus shipping computer ever offered for anywhere and handling-complete with new key­ near the price: only $149.95" completely board overlay and the ZXB1 manual. assembled. So in just a few minutes, with no Don't let the price fool you. The special skills or tools required, you can ZX81 has just about everything you upgrade your ZXBO to have all the could ask for in a personal computer. powerful features of the ZXB1 . (You'll accurate to 8 decimal places A breakthrough have everything except continuous dis­ in personal computers • Unique one-touch entry of key words play, but you can still use the PAUSE like PRINT, RUN and LIST The ZX81 is a major advance over and SCROLL commands to get moving the original Sinclair ZX80-the world's • Automatic syntax error detection and graphics.) easy editing largest selling personal computer and With the BK BASIC chip, your the first for under $200. • Randomize function useful for both ZXBO will also be equipped to use the games and serious applications In fact, the ZX81's new 8K Extended ZX Printer and Sinclair software. BASIC offers features found only on com­ • Built-in interface for ZX Printer Warranty and Service Program"" puters costing two or three times as much. • 1K of memory expandable to 16K Just look at what you get: The ZX81 is also very convenient The Sinclair ZXB1 is covered by a 10-day money-back guarantee and a • Continuous display, including moving to use. It hooks up to any television set graphics to produce a clear 32-column by 24-line limited 90-day warranty that includes free • Multi-dimensional string and numerical display. And you can use a regular parts and labor through our national arrays cassette recorder to store and recall service-by-mail facilities. "'Plus shipping and handling. Price in cludes connectors programs by name. " Ooes not apply to ZX81 kits. for TV and cassette. AC adaptor, and FREE manual.

NEW SOFTWARE:Sinclair has ZX PRINTER: The Sinclair ZX 16K MEMORY MODULE: ZX81 MANUAL: The ZXS1 published pre-recorded pro­ P(inter will work with your ZXS1 , Like any powerful, full fledged comes with a comprehensive grams on cassettes for your or ZXSO with SK BASIC. It will computer, the ZXS1 is expand ­ 164-page programming guide ZXS1 , or ZXSO with SK BASIC. be available in the near future abl e. Sinclair's 16K memory and operating manual de­ We're constantly coming out and will cost less than $100. module plugs right onto the signed for both beginners and with new programs, so we'll back of your ZXS1 (or ZXSO, experienced computer users. send you our latest software with or without SK BASIC). A $10.95 value, it's yours free catalog with your computer. Cost is $99.95, plus shipping with the ZXS1. and handling. Introducing theZX81 kit If you really want to save money, and you enjoy building electronic kits, you can order the ZX81 in kit form for the incredible price of just $99.95~ It's the same, full-featured computer, only you put it together yourself. We 'll send complete, easy­ to-follow instructions on how you can assemble your ZX81 in just a few hou All you have to supply is the soldering How to order Sinclair Research is the world's larg­ est manufacturer of personal computers. The ZX81 represents the latest technology in microelectronics, and it picks up right where the ZX80 left off. Thousands are selling every week. We urge you to place your order for the new ZX81 today. The sooner you order, the sooner you· can start enjoying your own computer. To order, simply call our toll free number, and use your MasterCard or VISA. To order by mail, please use the . oupon. And send your check or money QTY. AMOUNT order. We regret that we cannot accept ~purchase orders or C.O.O:s. CALL 800-543-3000. Ask for op­ erator # 509. In Ohio call 800-582-1364. In Canada call 513-729-4300. Ask for operator # 509. Phones open 24 hours a day, 7 days a week. Have your Master­ Card or VISA ready. These numbers are for orders TOTAL only. For information, you must write to Sinclair Research Ltd ., One Sinclair Plaza, MAIL TO: Sin clair Research Ltd., One Sinclair Plaza, Nashua, NH 03061 . Nashua, NH 03061. NAME ______5in~lair

t u.s. Doilars rupt. If the interrupt is indeed a first thing you must do is write the memory. Page six (hexadecimal ad­ display-list interrupt, control is DLI routine itself. The routine must dresses 600 to 6FF) is an ideal place. transferred indirectly by means of the start by pushing any 6502 registers Set the vector at hexadecimal loca­ 16-bit address contained in hexa­ that will be altered onto the stack, tions 0200 and 0201 to point to your decimal locations 0200 and 0201 (low because the operating system routine. Determine the vertical point byte first) to a DLI-service routine. interrupt-poll routine itself saves no on the screen where you want the DLI The DLI routine changes one or more registers. (The 6502 status register is to occur, and then go to the cor­ of the graphics registers controlling automatically pushed onto the stack.) responding display-list instruction the display. The 6502 then returns The routine should be short and fast; and set bit D7 of the previous instruc­ from the interrupt routine to resume it should change only those registers tion. Finally, enable the DLI by set­ its mainline program. related to the display; and it should ting bit D7 of the NMIEN register at end by restoring any 6502 registers hexadecimal location D40E. The DLI Creating a Display-List Interrupt pushed onto the stack. will begin executing immediately. A number of steps are involved in Next, you must place the DLI­ As with any interrupt-service setting up a display-list interrupt. The service rou tine somewhere in routine, timing considerations can be critical. ANTIC does not send the in­ terrupt to the 6502 immediately upon encountering an interrupt instruction; it delays doing this until the last scan line of the interrupting mode line. The 6502 and the interrupt-service routine in the operating system together consume 33 machine cycles. Thus, the first instruction of your DLI-service routine will not be reached until 33 machine cycles have elapsed in the last scan line of the in­ terrupting mode line. Thirty-three D" machine cycles corresponds to 66 color clocks on the screen. Thus, your DLI-service routine will begin executing while the electron beam is partway across the screen in the last ~ scan line of the interrupting mode line. For example, if such a DLI WHY DOES OUR SPELLING CHECKER routine changes a color register, the COST LESS THAN THEIRS? old color will be displayed on the left half of the scan line and the 'new color will show up on the right half of the Maybe we goofed by not charging more The WORD gives you more! same scan line. Because of uncertain for The WORD. Our customers tell us we must be crazy, giving away this much The WORD gives you a 45,000 word timing in the response of the 6502 to software for only $75. dictionary that fits into less than 140K of an interrupt, the border. between the disk space. What's wrong with it? The WORD works with your favori te colors will not be sharp, but will Frankly, we're a little hurt when people text editor and marks mi stakes in your jiggle back and forth irritatingly. ask us this question. We guess everyone doc ument for easy, in'context, correc ti on. The solution to this problem is pro­ must be getting used to paying $200 to $300 The WORD's one·touch word review for decent software. An ything that costs lets you add new words to the dictionary vided in the form of the WSYNC less must be junk. Right? ... WRONG!!! with a single keypress. You can build your (wait for horizontal sync) register own custom di cti onaries too ! The WORD is not only cheaper, it's (hexadecimal address D40A). When­ better! The WORD wi ll look up the correct spelling of misspelled words. ever this register is addressed in any Available NOW for: The WORD anal yzes your writing, way, the ANTIC chip pulls down the 8" single CP/M" , CDOS™ counting words and showing you how XEROX 820 (8" only) oft en each word was used. RDY line on the 6502. This effectively Intertec Superbrain™ The WORD has a special homonym halts the 6502 until the WSYNC Apple™ with CP/M Soft card he/per feature to deal with these pesky register is reset by the next horizontal words. (35 .000 word dictionary) synch pulse. The result is that the North Sta?M Double/Qu ad with CP/M The WORD will find rh yming word s, CP / M is a registered trademark 01 Digital Research solve cro ssword pu zzles, and much more! 6502 freezes until the electron beam CALL TODAY! ' returns to the left edge of the screen. If you insert a ST A WSYNC instruc­ OASIS SYSTEMS (714) 291·9489 tion just before an instruction that 2765 REYNARD WAY, SAN DIEGO, CA 92103 stores a value into a color register, the color being displayed will change

170 December 1981 © BITE Publications Inc Circle 309 on inquiry card. Circle 358 on inquiry card. -+ If you don/t know a boud from'a fl;oppy ... YOU NEED TO KNOW THE QDP~IOO

Most people who need computers It does m.ore, QDP-IOO HAS SINGLE BOARD don't have the time; or ,desire, to SIMPUCITY. Eliminates the hassle· become full-time computer of complex multi-chip, multi­ "wizards," does it easieJ, board computers. With the budget-priced QDP-lOO QDP-IOO IS E,ASY to learn and to you get all the time-saving pre­ and costs a . operate. Most owners use their cision information you .want from QDP-IOO with professional skill and a computer, now and in the future, lot less. results in short order. Our instruction without all the unnecessary com­ manual doesn't need an interpreter. . plexity associated with less 'Consider­ If you'd rather be a wizard with ate computers. computer results, than with computers, QDP-lOO IS A FUll.SCAlE 8-bit computer, choose the QDP-IOO.Call or write for readily upgradeable to 16 bits as·your literature and full details. business or professional information­ QDP NEEDS A FEW MORE GOOD DEAlERS. processmg needs grow, It uses the IEEE Attractive, profitable, protected dealerships S-lOO bus, compatible with CP/M and are still available in several high-potential MP 1M disk operating systems. computer market areas. QDP-IOO HANDLES BOTH floppy disks and hard disks to give you total software versatility. Quasar QDP-IOO CONNECTS INSTANTLY to any standard terminal and printer. Both serial and parallel ports are Data available. Features most micro­ computers can't match. 'Products 10330 Brecksville Road Cleveland Ohio 44141 216/ 526·0838 Telex: 241596 ~~

CP 1M and MP 1M are registered tractemaiks 01 Digital Research Corp. Listing 1: A simple Atari BASIC program to demonstrate display-list interrupts. This program changes the screen color from blue to pink and darkens the character set halfway down the video display. The complete BASIC program in listing la contains the assembly-language routine given in listing lb.

1a 10 DLIST=PEEK(560)+256*PEEK(561):REM find display list

20 POKE DLIST+15,130:REM insert interrupt Instruction 30 FOR 1=0 TO 19:REM loop for poking DLI service routine 40 READ A:POKE 1536+I,A:NEXt

50 DATA 72,138,72,169,80,162,88

60 DATA 141,10,212,141,23,208 70 DATA 141,24,208,104,170,104,64 80 POKE 512,0:POKE 513,6:REM poke In Interrupt vector

90 POKE 54286,192:REM enab I e DLI

1b while the beam is off the left edge of PHA save accumulator the screen. The color transition will occur one scan line lower, but it will TXA be neat and clean. The proper way to use a display­ list interrupt, then, is to set the DLI PHA save X-register bit on the mode line before the mode line for which you want the action to LDA #$50 dark color for characters occur. The DLI-service routine should first save the 6502 registers LDX #$58 pink onto the stack and then load the 6502 registers with the new graphics values STA WSYNC walt to be used. It should execute a STA WSYNC immediately before storing \ the new values into the appropriate STA COLPF1 store color ANTIC or CTIA registers. Finally, it should restore the 6502 registers and STX COLPF2 store color return from the interrupt. This pro­ cedure will guarantee that the PLA graphics registers are changed while the electronic beam is off the screen and that the new display parameters TAX take effect at the beginning of the desired line. PLA restore registers The program in listing 1 is a very simple DLI-service routine. It changes RTI done the background color from blue to pink. It also changes the color of the characters so that they show up as dark against the pink background. The upper half of the screen remains

172 December 1981 © BYTE Publications Inc The MX-IOO. Not just better. Bigger. E

Our MX-80 was a pretty tough act to follow. I mean, beyond just the specs; something about the way it all how do you top the best-selling printer in the world? comes together, the attention to detail, the fit, the feel. Frankly, it wasn't easy. But the results of all our Mere words fail us. But when you see an MX-I00, you'll sleepless nights will knock your socks off. know what we mean. The MX-I00 is a printer that must be seen to be be­ All in all, the MX-lOO is the most remarkable printer lieved. For starters, we built in unmatched correspon­ we've ever built. Which creates rather a large prob­ dence quality printing, and an ultra-high resolution bit lem for those of us at image graphics capability. Then we added the ability to Epson. print up to 233 columns of information on 15" wide How are we going to paper to give you the most incredible spread sheets top this? you're ever likely to see. Finally, we topped it all off with both a satin-smooth friction feed platen and fully adjustable, removable tractors. And the list of standard Your next printer. features goes on and on and on. Needless to say, the specs on this machine - and especially at under $1000 - are practically unbelievable. EPSON But there's something about the MX-I00 that goes far EPSON AMERICA, INC. 3415 Kashiwa Street· Torrance, California 90505· (213) 539-9140 Circle 159 on inquiry card. See the whole incredible Epson M X Series of printers at your Authorized Epson Dealer. \ blue even though the DLI routine anyway). Use DLIs to change colors keeps stuffing pink into the color of lines below the first line. register. This is because the operating By stuffing colors directly into the CALL system's vertical-blank-interrupt hardware registers, you create a new routine keeps stuffing blue into the problem: you defeat the automatic color register during the vertical­ attract mode. Attract mode is a YOUR blank period. The blue color comes feature provided by the operating from the operating system's shadow system. After nine minutes without a LOCAL register for that color register. Every keypress, the colors on the screen hardware color register is shadowed begin to cycle through random hues out to a RAM (random-access at lowered luminances. This insures DYSAN read/ write memory) location. You that a computer left unattended for may already know about these several hours does not burn an image OFFICE: shadow registers at decimal locations into the television screen. 708 through 712. For most purposes, It is easy to build attract mode into you can change colors by poking a DLI routine by inserting only two 1320 I Bel-Red Road values into the shadow registers (see lines of assembly code, as shown in Suite 205. C9200 last month's article for an explanation listing 2. Bellevue, Washington 98004 6f shadow registers). If you poke The implementation of attract (206) 455-4725 directly into the hardware registers, mode in display-list interrupts exacer­ 1242 Kifer Road the operating system shadow process bates an already difficult problem: Sunnyvale, California 94086 will wipe out your poked color within the shortage of execution time during (408) 730-2145 %0 second (ie: at the top of a new a DLI. A description of DLI timing screen display). For DLIs, however, will make the problem more obvious. #10 11th Avenue you must store your new color values Glendora, New Jersey 08029 directly into the hardware registers. DLI Timing (609) 939-4762 You cannot use a DLI to set the color DLI execution is broken into three of the first displayed line of the phases. Phase 1 covers the period 999 Plaza Drive, Suite 400 screen. The operating system takes from the beginning of the DLI to the Schaumburg, Illinois 60195 care of that line for you {and the first ST A WSYNC instruction. During (312) 882-8176 line is off the top of the screen, phase 1, the electron beam is drawing the last scan line of the interrupting 6520 Powers Ferry Road mode line. Phase 2 covers the period Suite 200 Atlanta, Georgia 30339 Listing 2: Restoring the Atari attract from the ST A WSYNC instruction to (404) 952-0919 mode to a display driven by display-list the appearance of the beam on the interrupts. Only two 6502 assembly­ television screen. Phase 2 cor­ 122 East 42nd Street language instructions have to be added to responds to the horizontal blank; all 17th Floor the DLI routine. DRKMSK and COLRSH graphics changes should be made dur­ New York, New York 10017 are page zero locations (hexadecimal 4E ing this phase. Phase 3 covers the (212) 687-7122 and 4F) set up and updated by the period from the appearance of the operatjng system during the vertical blank beam on the screen to the end of the interrupt. When the attract mode is not in 19600 Fairchild DLI-service routine. The timing of force , COLRSH takes a value of 00 and Suite 150 DRKMSK takes a value of hexadecimal phase 3 is not critical. INine, California 92713 FF. When attract mode is in force , One horizontal scan line takes 114 (714) 851-9462 COLRSH is given a new random value clock cycles of real time. A DLI every four seconds and DRKMSK holds a reaches the 6502 on or around cycle value of hexadecimal F6. Thus, COLRSH number 15 . The 6502 takes about 7 scrambles the color and DRKMSK lops cycles to respond to the interrupt. off the high-order luminance bit. The operating-system routine to ser­ vice the interrupt and turn control LDA NEWCOL LDA NEWCOL over to the DLI-service routine takes 11 machine cycles. Thus, the DLI­ STA WSYNC EOR COLRSH service routine does not gain control DDY§£!lJ· until about 33 clock cycles have 5440 Patrick Henry Drive STA COLPF2 AND DRKMSK elapsed. Furthermore, the STA Santa Clara, CA 95050 WSYNC instruction must begin by 408/988-3472 cycle number 103; this reduces the TLX: 171551 DYSAN SNTA STA WSYNC time available in phase 1 by 11 cycles. Finally, ANTIC's DMA (direct STA COLPF2 memory access) will steal some of the

174 December 1981 © BYTE Publications Inc OURMEDIAIS OUR MESSAGE. Over the past seven years Discs, Disc Packs, and Disc Just dial Dysan direct TOLL we've earned a name for our­ Cartridges - all certified to be FREE at 800/538-8150 or selves by making the best 10or'lb error free both on-track 408/988-3472 (in California) or magnetic media in the busi­ and between the tracks. contact your local Dysan office. ness. Precision magnetic media Now we're making It - Diskettes. Mini Diskettes. Precision magnetic media easier for you to buy the best. from Dysan. Diagnostic Diskettes, Rigid Our media sa s it al l.

I@D):5(JII/ 13$1-"";' remaining clock cycles from the 6502. usable machine cycles are available to early in phase 3, if that color is not Nine cycles will be lost to memory­ phase 2. displayed on the left edge of the refresh DMA. This leaves an absolute The problems of DLI timing now screen. Similarly, a color not showing maximum of 61 cycles available for become obvious. To load, attract, up on the right side of the screen phase 1. This maximum is achieved and store a single color will consume could be changed during phase 1. only with blank-line mode lines. 14 ·cycles. Saving the 6502 A, X, and Another approach is to break one Character and map mode instructions Y registers onto the stack and then overactive DLI into two less am­ will result in the loss of one cycle for loading, attracti{lg, and saving three bitious DLIs, each doing half the each byte of display data. The worst colors into A, X, and Y registers will work of the original. The second DLI case arises with BASIC modes 0, 7, cost 47 cycles: most, if not all, of could be provided by inserting a and 8, which require 40 bytes per phase 1. Obviously, the programmer single-scan-line blank instruction line. Only 21 machine cycles are who wishes to use DLIs for extensive (with the DLI bit set) into the display available to phase 1 in these modes. graphics changes will expend much list just below the main interrupting Thus, a phase 1 routine will have effort on the timing of the DLI. For­ mode line. This will, of course, con­ from 21 to 61 machine cycles of tunately, the beginning programmer sume some screen space. execution time available to it. need not concern himself with exten­ Another partial solution is to per­ Phase 2, the critical phase, extends sive timing calculations. If only form the attract chores during over 24 clock cycles of real time. As single-color changes or simple vertical-blank periods. To do this, with phase 1, some of these cycles are graphics operations are to be per­ two tables of colors must be kept in lost to cycle-stealing DMA. Player­ formed, cycle counting and speed op­ memory. The first table contains missile graphics will cost 5 cycles if timiza tion are unnecessary. These color values intended to be displayed they are used. The display instruction considerations are only important for by the DLI routines. The second table will cost 1 cycle. Two more cycles high-performance situations. contains the attracted values of these will be stolen if the Load Memory No simple options are available to colors. During vertical blank, a user­ Scan option in the display list is used. the programmer'who needs to change supplied interrupt-service routine Finally, 1 or 2 cycles may be lost to more than three color registers in a fetches each color from the first table, memory refresh or display-data single DLI . It might be possible to attracts it, and stores the attracted retrieval. Thus, from 14 to 23 load, attract, and store a fourth color color in the second table. The DLI

~ 5E5 ==== PRODUCTS FOR YOUR RADIO SHACK ~~"7~( L R ( P lE ""~ MICROTEXT COMMUNICATIONS VIA YOUR MODEM! Now you can use your printer with your modem! Your computer can be an ~"* *" intelligent printing terminal. Talk to timeshare services or to other personal III1 11111111 1111 ..... GAMES computers ; print simultaneously through a second printer port; and re-display .,.. text stored in memory. Download text to Basic programs; dump to a cassette Star Blaster - Blast your way through an asteroid field in this action-packed tape , or printer, or both . Microtext can be used with any printer or no printer at Hi-Res graphics game! Available in RoMPACK ; requires 16K. Price: $39.95 all. It features user-configurable duplex/parity for special applications, and can Pac Attack - Try your hand at this challenging game by Computerware, with send any ASCII character. You 'll find many uses for this general purpose fantastic graphics, sound and action! Cassette requires 16K. Price : $24.95 module! Available in ROM PACK, ready-to-use, for $59.95. Berserk -=- Have fun zapping robots with this Hi-Res game by Mark Data Products. Cassette requires 16K. Price: $24.95 SDFTWARE DEVELDPMENT SYSTEM Adventure - Black Sanctum and Calixto Island by Mark Data Products. Each The Micro Works Software Developme-nt System (SDS80C) is a complete 6809 cassette requires 16K. Price: $19.95 'each . editor. assembler and monitor package contained in one Color Computer program pack! Vastly superior to RAM-based assemblers/editors, the SDS80C is non­ t------­ volatile, meaning that if your application program bombs , it can't destroy your RDMLESS PAK I - is an empty program pack capable of holding two 2716 or editor/assembler. Plus it leaves almost all of 16K or 32K RAM free for your 2732 EPRoMs , allowing you up to 8K of program! The PC board inside comes program . Since all three programs, editor, assembler and monitor are co-resident, with sockets installed, ready to go with the addition of your custom EPRoMs . we eliminate tedious program loading when going back and forth from editing to Price: $24.95 assembly and debugging! 2-PASS DISASSEMBLER - with documentation package. 16K; cassette . 80C The powerful screen-oriented Editor features finds, changes, moves , copys and Disassembler Price : $49.95 much more. All keys have convenient auto repeat (typamatic) . and since no line CBUG - Machine language monitor. CBUG Cassette Price: $29.95 numbers are required, the full width of the screen may be used to generate well CBUG ON 2716 EPROM : Can plug into Romless Pak I. CBUG ROM Price : commented code . $39.95 The Assembler features all of the following : complete 6809 instruction set; PARALLEL PRINTER INTERFACE - serial to parallel converter allows use of all complete 6800 set supported for cross-assembly; conditional assembly; local standard parallel printers . PI80C Price: $69.95 labels; assembly to cassette tape or to memory; listing to screen or printer; and Assembly Language Programming, by Lance Leventhal. Price : $16.95 mnemonic error codes instead of numbers. MEMORY UPGRADE KITS: 4-16K Kit Price $39.95 . 16-32K (requires soldering The versatile ABUG monitor is a compact version of CBUG, tailored for debugging experience) Price: $39.95 programs generated by the Assembler and Editor. It features examine/change 01 PARTS &. SERVICES: SAMs , 6809Es, RAMs , PIAs . Call for prices . memo~ or registers, cassette load and save, breakpoints and more . SDS80C WE SHIP FROM STOCK! 7.;;'n©~ ~ GOOD STUFF! Master ChargeNlsa and COD Accepted W@~ P.O. BOX 1110 DEL MAR, CA 92014 714-942-2400

176 December 1981 © BYTE Publications Inc Circle 260 on Inquiry card . Intecolor Drive · 225 Technology Park/Atlanta Norcross, Georgia 30092/ Phone 404/449-5295

Unretouched photos of screens. This offer, not available through computer stores , expires 12/31/81. U.S. domestic prices.

Circle 198 on Inquiry card.

If any of the numbers in the OUR MONEY-BACK table look familiar, MICRO-TAX * * * * MICRO-TAX SYSTEM DIRECTORY * * * * GUARANTEE. is for you. 1981 FEDERAL INCOME TAX If MICRO-TAX doesn't do Because MICRO-TAX is THE FOLLOWING FUNCTIONS ARE AVAILABLE just what you want it to do, the professional CP/M tax 1 CREATE NEW FilES FDA CLIENT 11 INITIALIZE A NEW CLIENT DISK return it in 30 days and we'll system that really makes 2 SelECT SCHEOULES AND FOAMS 12 LIST CLIENTS ON FilE 3 DISPLAY ACCOUNT STATUS 13 ACTIVATE ANOTHER CLIENT give you your money back. dollars and sense. 4 PAINT OUESTIONNAIRE 14 COPY CLIENT FILES 5 ENTER DATA 15 DELETE CLIENT FILES But chances are you'll FULL PROFESSIONAL 6 COMPUTE TAX 16 EXIT TO STATE TAX TABLE keep it because for the first 7 DISPLAY TRIAL RETURN 17 EXIT TO PARTNERSHIP TAX SYSTEM FEATURES FOR AS LITTLE 8 PRINT RETURN 1SLOAO SALES TAX TABLE time, your taxes can be as AS $250. 9 DEPRECIATION MODULE 19 UPDATE SYSTEM FilE 10 BATCH COMPUTE 'PAINT 20 SET SYSTEM SPECIFICATIONS easy as 5, 6, 8 (see the display). Whether you're a tax EJ EXIT FROM SYSTEM To get Uncle Sam's num­ professional doing thou- ber, just use one of ours to PLEASE ENTER FUNCTION NUMBER sands of forms a month or order MICRO-TAX today: an individual filling in one 800-854-2003 X823. excruciating return a year, you'll System. Both operate in the (CA: 800-522-1500 X823.) love MICRO-TAX. batch mode, so you can enter The Discount Software MICRO-TAX computes and data all day then compute and Group, 6520 Selma Avenue, Los prints all the schedules and forms print at night. Angeles, CA 90028. For addi­ in the table. It's menu-driven, so And both versions, besides tional information, call Mark at you choose the number of what . generating I RS-approved forms, (213) 837-5141 . you want done, then respond to can also print on standard IRS your computer's prompts. forms or on blank sheets for use UNCLE'S NUMBERS: MICRO-TAX'S NUMBERS: PRO- MICRO-TAX prints question­ with overlays. SCHEDULES & INDI- FESSIONAL PARTNER- naires for any or all of the forms MICRO.:rAX is the professional FORMS VIDUAL· INDIVIDUAL SHIP 1040. 1040A you select. Checks out alterna­ tax planning and preparation sys­ 1065 A. B.C. D.E.ES.G.R.RP tives for income averaging, mini­ tem you've been waiting for. F.SE mum tax and maximum tax on K. K-1 MICRO-TAX IS BETTER 2106 earned income several different 2119 . THAN EVER. 2210 ways, then lets you know where 2440 This year MICRO-TAX is half 244 1 your greatest savings are. Besides the size and four times as fast as 3468 just preparing your returns, it's 3903 it was last year. It runs on any 4137 terrific for your tax planning. 4562 .' 56k CP/ M micro, including the 4625 And MICRO-TAX even 4684 Apple, with at least 204k of disk 4726 generates I RS-approved forms. 4797 storage (one or more drives, 4952 DEPRKIATION, ACRS, BATCH 110k/drive minimum). 4972 5695 COMPUTING/PRINTING. It includes all the new 1981 6251 6252 For more complex returns, regulations, but if there are any 6765 Accelerated Cost MICRO-TAX has all the sophisti­ changes, just call CompuServe Recovery System cated features you need. and they're yours, instantly. Batch preparation and printing The Partnership and Profes­ And if you have any ques­ Print: I RS-approved forms . sional versions can maintain a tions at all , you 'll get your On IRS forms On blank sheets depreciable asset master file answers fast because we give for overlays and compute depreciation by you two technical hot lines: ours $250 $1000 $750 individual items and groups. and a direct line to MICRO-TAX. ·Printed, not computed. Both: $1500 Both versions handle the Now what could be finer Integrated State Income Tax programs from Accelerated Cost Recovery than that? $250 to $750. rnJ~~[illmJ[lIJ~TI

© Pawluk COrp. 1981 SOFTWARE Circle 129 on inquiry card. Circle 395 on inquiry card.

SAM'S BOOKS Listing 3a: An assembly-language routine which is included in the multiple display-list­ SAVE UP TO 250/0 interrupt program shown in listing 3b. BUY A SERIES FROM THIS LIST OR INDIVIDUAL TITLES USING THE 5 PHA DIGIT ORDER CODES. ORDER A CATALOG OF ALL SAM'S BOOKS AND SAVE! TXA SERIES 'A' COMPUTER COOKBOOKS PHA No. 21524 . The Cheap Video Cookbook o $7.95 No. 21723 · Son Of Cheap Video o $9.95 No. 21697 . 8085A Cookbook o $13.95 INC COUNTR No . 21313 . TV Typewriter Cookbook 0$11.95

SERIES 'B' TRS-80 LOX COUNTR

No. 21741 . Circuit Design Program s for the TRS80 o $14 .50 LOA COLTAB,X use page $FO for color table No. 21633 . TR S· 80 Interfacing · Book 1 o $10.95 No. 21739 . TRS ·80 Interfacing · Book 2 0 $11.95 STA VlSYNC wait SERIES 'C' 8080 No. 21541 · 8080 /8085 Software Design Book 10$12.95 STA COLBAK No. 21615 · 8080 /8085 Software Design Book 20 $1 2.95 No. 21628 . TEA : An 8080 / 8085 Assm . Editor 0 $11.95

SERIES ' 0' COMPUTER FUNDAMENTALS CPX 1/$4F I ast line?

No. 21698 · Gu ide Book To Small Computers 0 $6.95 No. 21486 . Getting Acquainted With BNE ENOOLI no, exit 0 $9.95 No . 21634 . Sam 's Crash Course In Microcomputers o $19.95 LOA 1/$00 yes, reset counter No. 2165 3 . Microcomputer Primer (Second Edition ). o $14 .50 No. 21483 . Your Own Computer 0 $1.95 STA COUNTR SERIES 'E' Z-80 ENOOLI PLA No. 21682 . 180 Microcomputer Design Projects 0 $13.95 No. 21500 · 180 Microcomputer Hand Book 0 $11.95 No. 21609 . 180 Microprocesso r Programing & TAX Interfacing, Book 1 0 $12.95 No. '21610 · 180 Microprocessor Programing & Interfacing, Book 2 0 $15.95 PLA restore accumulator

SERIES 'F' 6502/6800

No. 21656 . 6502 So ftware Des ign 0 $12.95 RTI No. 21459 . How To Program Microcomputers 0 $10.95 No. 21684 . How To Program And Interface The 6800 o $15 .95 No. 21726 . 6801 , 6870 1. & 6803 Microcomputer routine then retrieves values directly men ted and used as an index to a Programming & Interfacing 0 $14.95 from the second table without paying table of values, A sample DLI routine SERIES 'G' COOK BOOKS the time penalty for attract. for doing this is given in listing 3. No. 21695 · ICOP -AMP Cookbook (2nd Edition) 0 $15.95 Another way to implement multi­ No. 21168 · Active Filter Cookbook 0 $14.95 Multiple Display-List Interrupts ple display-list interrupts is to use a No. 21398 · CMOS Cook Book 0 $12 .95 It is often desirable to have a DLI counter as a test for branching No. 21527 . IC Converter Cookbook o $1l95 number of DLIs occurring at several through the DLI-service routines to No. 214 16 · ICTimer Cookbook o $10.95 vertical positions on the screen. This the proper DLI-service routine, This No. 21035 . TIL Cookbook 0 $1 1.95 is an important way to add color to a slows down the response of alI the Series · Prices Indicated TOTAL FOR SINGLE display, Unfortunately, there is only DLIs, particularly the ones at the end are Less 25 % TITLES 'A'32.80 0 'E'41 .10 0 one DLI vector; if multiple DLIs are of the test sequence, A third method 'S' 28.05 0 ' F' 41 .10 0 OISCOUNT15% 'C' 28.39 0 'G' 60.52 0 H---­ to be used, then the vectoring to the is to have each DLI-service routine '0 ' 39.97 0 TOTAL FOR SERIES ____ ORDER A CATALOG appropriate DLI must be imple­ write the address of the next routine LISTING ALL SAM'S ~ CATALOG 1.50 mented in the DLI routine itself, into the DLI vector at hexadecimal BOOKS AND SAVE ' SHIPPING AND WITH SPECIAL DIS· HANDLING 50c There are several ways to do this, If locations 200 and 201. This should be COUNT PRICES 0,1 PERITITLE ___ 5% MN TAX the DLI routine <;Ioes the same process done during phase 3, It is the most SEND CHECK OR MONEY ORDER WHERE APPL . __ MAIL TO: TOTAL THIS with different values, then it can be general solution to the problem of STELLAR SYSTEMS ORDER ____ P.O, BOX N table-driven, On each pass through multiple DLIs and has the additional NORTH BRANCH, MN 55056 the DLI routine, a counter is incre- advantage that vectoring l.ogic is per- Prices may be subject to change without notice.

180 December 1981 © BYTI Publications Inc Listing 3b: A simple Atari BASIC program to demonstrate multiple display-list interrupts. This program puts 80 different colors on the v ideo display. The complete BASIC program shown here contains the assembly-language routine given in listing 3a.

10 GRAPHICS 7

20 DLIST=PEEK(560)+256*PEEK(561):REM find display list 30 FOR J=6 TO 84:REM give every mode line a DLI 40 POKE DLIST+J,141:REM BASIC mode 7 with DLI bit set 50 NEXT J

60 FOR J=O TO 30

70 READ A:POKE 1536+J,A:NEXTJ:REM poke in DLI service routine 80 DATA 72,138,72,238,32,6,175,32,6 90 DATA 189,0,240,141,10,212,141,26,208 100 DATA 224,79,208,5,169,0 110 DATA 141,32,6,104,170,104,64 120 POKE 512,0:POKE 513,6:REM vector to DLI service routine 130 POKE 54286,192:REM enable DLI forI11ed after the time-critical portion puts from the keyboard. If keypresses putation, such as certain skill and of the DU, not before. are not acknowledged, the screen action games. For example, the jiggle does not occur. Basketball program for the Atari Keyboard-Click Routine 400/ 800 uses a kernel; the program The operating system keyboard­ Kernels requires little computation but much click routine interferes with the func­ The display-list interrupt was color. The multicolored players in tion of the DU. Whenever a key is designed to replace a more primitive this game could not be done with pressed and acknowledged, the on­ software/ hardware technique called a display-list interrupts because DLIs board speaker is clicked. The timing kernel. A kernel is a 6502 program are keyed to playfield vertical posi­ for this click is provided by several loop that is precisely timed to the tions, not player positions. STA WSYNC instructions. This can display cycle of a television set. By It is possible to extend the kernel throw off the timing of a DU routine monitoring the VCOUNT register idea right into a single scan line and and cause the screen colors to jump and consulting a table of screen change graphics registers on the fly. downward by one scan line for a frac­ changes catalogued as a function of In this way, a single color register can tion of a second. There is no easy VCOUNT values, the 6502 can arbi­ present several colors on a single scan solution to this problem. One pos­ trarily control all graphics values for line. The horizontal position of the sible remedy involves the VCOUNT the entire screen. A high price is paid color change is determined by the register (hexadecimal location D40B), for this power: the 6502 is not amount of time that elapses before a read-only register in ANTIC that available for computations during the the change goes in. Thus, by carefully tells what scan line ANTIC is display­ screen-display period, which is about counting machine cycles you can get ing. A DLI routine could examine this 75 percent of the time: Furthermore, more graphics onto the screen. Unfor­ register to decide when to change a no computation .may consume more tunately, this is extremely difficult to color. Another solution is to disable than the 4000 or so machine cycles achieve in practice. With ANTIC per­ the operating system keyboard­ available during vertical-blank and forming DMA on the 6502, it is very service routine (a tedious job) and overscan periods. This restriction difficult to know exactly how many provide your own keyboard routine. means that kernels can only be used cycles have really elapsed; a simple A third alternative is to accept no in- with programs requiring little com- count of 6502 cycles is not adequate.

December 1981 © BYTE Publications Inc 181 If ANTIC's DMA is turned off, the 6502 can assume full control of the display, but it must then. perform all the work that ANTIC normally does. For these reasons, horizontal kernels are seldom worth the effort. If the two images to be displayed in dif­ ferent colors are widely separated, however, say by 20 color clocks or more, the separation should cover up the timing uncertainties and render this technique feasible.

Using Display-List Interrupts The tremendous value of graphics indirection and all those modifiable registers in the hardware now becomes obvious. With display-list interrupts, everyone of those registers can be changed dynamically. You can put lots of c910r, graphics, and special effects onto the screen. The most obvious application of DLIs is to put more color onto the screen. Each color register can be changed as many times as you have DLIs. This applies to both playfield color registers and player color registers. Thus, you have up to nine color registers, each of which can display up to 128 different colors. Of course, a normal program could not effec­ 'Philoso,-~ieal fUD and games ... tively use all of those colors. Too from the authors of many DLIs start slowing down the of a very high order whole program, and sometimes the G6del, Escher, Bach and Brainstorms"* screen layout cannot accommodate all Pulitzer Prize"winner Douglas Hofstadter and the philosopher Daniel of them. In practice, displaying a Dennett take you on a mind-jolting exploration of art and science, dozen colors is easy, two dozen re­ humor and philosophy, to probe the meaning of self and conscious­ quires careful planning, and more ness. "The authors supply extracts from literature (Borges, Lem) and than that requires a contrived situa­ scientific reports (A.M. 'lUring, John Searle) that reveal the complex- tion. ities, idiosyncracies, and sheer brilliance (and folly) of man thinking about himself The quandary of human self-representation But DLIs can give more than color. ~~~~...... ~ is brilliantly explored in this cunning, interdisci­ They can also be used to extend the plinary banquet of food for thoughe'­ power of player-missile graphics by -ALA Booklist changing the horizontal position of a "Superb ... with equally wondrous player. In this way, a player can be commentaries~ ' repositioned partway down the -Martin Gardner screen. A single player can then have *Kirkus Reviews several incarnations on the screen. If you imagine a player as a vertical col­ umn with images drawn on it, a DLI becomes a pair of scissors with which you can snip the column and reposi­ An Alternate of the Book-of­ tion sections of it on the screen. Of the-Month Club (Science) course, no two sections of the player 70,000 copies in print $15.50 at bookstores can be on the same horizontal line, BASIC BOOKS, INC. and so two incarnations of the player 10 E. 53 Street, New York 10022 cannot be on the same horizontal line. If your display needs allow graphics objects that will never be on

182 December 1981 © BYTE Publica ti ons Inc Circle 43 on inquiry card. 55 00 1J"RGB Color/ J20 Lines Resolution

Whether it's our new color or one of our other models, just visit your local Da&a Ed dealer and discover why Data Ed simply II offers the best monitors for your money. If these units are not available from your local dealer . . .fill out the coupon below or call toll free 1-800-258-6370. These units available for immediate delivery. 18 BRIDGE STREET SALEM, N.H. 03079 PLEASE SEND ME: TWX: 710-366-0502 r------~l I ...... RGB Color@$599.00(plus $4.95 ship~in~) _VISA I I ...... TM-12PC-GX@ $179.00 (plus $2.7~ sh.IPPlng) I ...... TM-12PC @ $139.00 (plus $2.75 shipping) I I NAME ...... I l ADDRESS...... : I CITY ...... STATE ...... ZIP...... I I DCheck Enclosed DC.a.D. DVISA DMasterCard I I Card Number ...... Bank Number...... I I Expiration Date ...... Signature...... I .. MONITORS BY L ______~ ~ .ECD

Circle 30 on inquiry card. EPSONMX.aO CLEARANCE ZENITH COLOR NOVATION CAT ACOUSTIC RM EXPANSION ACCESSORIES FOR Now in stock! VIDEO MONI TOR $349. MODEM Answer Originate. AIM- CALL SPECS AND PRICES C-ITOH STARWRITER: LETTER SUPER SELLING TERMINALS FROM NEW! D-CAT Direct Connect APPLE m IS IN STOCK/Apple m QUALITY PRINTING FOR UNDER LEAR SIGLER/ Call for quotes. Modem from Novation. Information Analyst Package- $20001/This daisywheel printer 128K Appl e III. Black and White gives high quality at a low price. ADM-3A / Industry's favorite dumb MATROX PRODUCTS / the Monitor 12". and information ana­ 25 cps. Parallel and serial inter­ terminal for some very smart complete line. lyst software. faces availabLe. reasons/ ADM-3A + NEW from Lear Siegler. DYSAN DISKETTES /Single side. TOP SOFTWARE PACKAGES FROM NEW INTEGRAL DATA:S 560 CALL! single density. Hard or Soft Sector COMPUMART PRINTER/ All the exciting features IT IS HERE! II is the new Intermedi­ " $5 . ea. VISICALC/ FOR APPLE/FOR HP! 01 the 400 series plus 141/2" paper ate Terminal from Lear Siegler. M EMOREX 3401'5/ 51/4 disks $3 .25. FOR COMMODORE/ FOR ATARI capacity. 132 col. graphics printer. / with hub ring for Apple $3.50. SOFTWARE FROM APPLE/ Apple IDS 445. Priced lower than the 440 NEC COLOR MONITOR/RECEIVER M EMORY INTEGRATED CIRCUITS/ Plot ( the perfect graphic comple· and equipped with a better print HIGH RESOLUTION/ l Call for quantity discou nts when ment for Visicalc/ Dow Jones News head. With & w / o graphics. Composite video using BNC con­ ordering over 50 units. & Quotes/Apple Fortrom /App le IDS 460. Features include corre­ nectors. 8-Pin connector for VCR/ VTR video loop In/ Out and MOTOROLA 4116 (200 Nano­ Writer/Pascal Language System/ Ispondence quality printing. high Controller Business System resolution graphics. television reception. secon d Plastic) $4 .50 SANYO MONITORS AT LOW COM­ PERSONAL SOFTWARE/ Visidex! NEC SPIN WRITER FROM THE NEW! GILTRONIX RS 232 SWITCH/ VisiTr end/VisiPlotjVisiTerm FIRST NAME IN LETTER QUALITY PUMART PRICES / Sanyo's new line You can connect three peripherals­ MUSE/Sup er Text PRiNTERS/ Splnwriter 5520 of CRT data display monitors are to one computer or three com­ designed for the display of alpha­ puters to one peripheral. Switches Compumart otters beautiful p rint MOUNTAIN COMPUTER/ numeric or graphic data. the eight most important RS 232 quality with NECISpinwriter Expansion accessories for Apple/ Terminals. We carry allimodels 9" SANYOB/ W $169. signals. 12" SANYO B/W Sup er Talker/ The Music System/ from RO THRU KSR WITH NUMERIC DEC LSI-ll/Compumart now ROM p lus board with Keyboard KEVPAD-55 10-5530. All.versions 12" SANYOW/ GREEN SCREEN offers the entire product line. tilter/ROM Writer/Clock Calen­ give unsurpassed hard'copy output! CALL FOR PRICES AND DELIVERY 13" SANYO COLOR dar/AtoD and DtoA Converter/ CENTRONICS PRINTERS 3 SERIAL Clock for Apple/ CPS Multifunction Visit our giant Hp·4IC CALCULATORS Board MODEL 737 The closest thing to MEMORY MODULES for storing letter quality p ri nt for under 51000. VIDEX/ Video Term (80 col. x 24 programs of up to 2000 lines of List 51045 SPECIAL $795. ANN ARBOR STORE line. 7x9 Matrix plug in compati­ program memory. North Main Street ble b oard for Apple II) w / wo I 737-1 Parailellnterface List 5995 1250 "EXTRA SMART" CARD READER. SALE PRICE $695. Ann Arbor. Michigan graphics EPROM/ SSM Serial & Records programs a nd data back PLUS EXCITING REBATE OFFER Parallel. Ap ple Interface/ ABT's onto blank magcards. ON CENTRONICS PRINTERS . Numeric Key Plan/ Calilornia FREE CATALOGS THE PRINTER. Upper and lower Microcomputer Keyboard MICRO DEC PDPI case. High resolution p lotting. OMNI 810 PRINTER FROM TEXAS APPLICATION MODULES INSTRUMENTS CALL US The most com­ LSI-" Systems The 820 RO PACKAGE includes p lete catalog configured and NEW SUPER 41 -CV SYSTEMS with lli.~\ machine mounted paper tray and of micro-com­ integrated with Quad RAMS b uilt-in. Maximum cable. A compressed print option puters. acces­ other manufac­ memory on-board leaves slots VIC 20 PERSONAL COMPUTER and device forms control sories and turers compa t ~ open for Application Pacs and FROM COMMODORE THE 820 KSR PACKAGE includes peripherals. ibles. peripherals. $299. fully ASCII Keyboard plus all of the + CARD READER features of the RO. Send for th em! + CARD READER + PRINTER

IMPORTANT ORDERING INFORMATION contingent upon receipts of Signed purchase order. CALL. 800 343·5504. in Massachusetts, (617) 491·Z70o. phones open SALE PRICES. Valid for month of magazine date only-aU prices sub from 8,30 a.m 107,00 p.m Mon·Fri 11,00 a.m 104.00 p.m Sat ject to change without notice. Our Ann Arbor retail store is open PO's, Accepled trom Dun & Bradstreet rated companies- shipment u.oo a.rn to 7.00 p.m Tues·Fri tO.oO a.m to 5,00 p.m on Saturdays WE HAVE IT! $5699 SAVE OVER $200 ON OUR BEST At last a CPM based system that looks like it belongs in your oltice. FROM ROCKWELL SELLING APPLE SYSTEM/ System The 820 can be ordered with 51/4" or 8" drive and a lamily 01 printers includes a 48K Apple II. Apple Irom NEC SPINWRITERS, lor letter quality, to the many currently avail­ THE SMALL SYSTEM FOR Disk, DOS 3,3 and Controller and a able dot matrix serial printers, CHRISTMAS BUYING Sup R MOD RF Modulator. We recommend this sy~tem to our professional/business customers. List $2209. EXCLUSIVE FOR THE APPLE: A GREAT PRICE FOR A LOT OF MACHINE. SPECS: SCREEN 24 LINES x Our AIM Starter System lor Educa­ Magic Wand, Videx, 2-80 soltcard 80 CHARACTERS. DISK 51/4 DUAL OR 8" DUAL. KEYBOARD TYPEWRITER tional & Laboratory use includes (Requires 48K Apple and disk). STYLE WITH 20 KEY PADS. PORTS INCLUDE SERIAL AND PARALLEL 4K AIM/BASIC 8< ROM/ASSEMBLER (1 EACH), 8< ROM/POWER SUPPLY EGl EN­ COMPLETE SUB-SYSTEM $925, CLOSURE/ CRAIG TAPE RECORDER. ACCESSORIES SPECIAL INTRODUCTORY SYSTEM PRICE SAVE $1000. CHOOSE FROM: Silentype Printer 820 SYSTEM I (51/4" DUAL) W / 620 SYSTEM n (8" DUAL) W / ACCESSORIES FOR AIM STARTER: w / x lace/Light Pen/ Easy Writer SPINWRITER CPM AND WORD- SPINWRITER CPM AND WORD- PL 65 High Level Language/ Paper (80 col. need a Videx)/Clocklor STAR-$5699, STAR-$6699, for the Aim (roll)/ Rockwell's 4 slot Apple. Motherboard/ FROM : 16K RAM Board/FORTRAN, FROM COMPU'I'ER STATION: WE ALSO CARRY RM EXPANSION Hi-Res Dump for 460 Printer, ACCESSORIES FOR THE AIM-65, APPLE INVENTORY IS COM­ , WE'VE GOT IT ALL-

Rockwell International Authorized Dealer Accept No Less 800-343-5504 IN MASS CALL 617-491-2700 COMPUMART 65 Bent Street, Dept 112 PO Box 568, Cambridge, MA 02139 From THE LEADER, We just might be the largest independent small systems dealer in the country. Here's why: COMPUMART has been serving the computer needs of industry since 1971. We stock, for immediate shipmen!. only those products from the finest micro-computer manufacturers, And any product, except software, can be returned within 10 days for a full refund-even if you just change your mind. We also honor all manufacturers' warranties, Our expert technicians will service any product we sell Call us for more information on products, product configuration and service. Our phones are open Monday thru Friday, 8:30 a,m, to 7:00 p.m. and Saturday HOO am to 4,00 p.m We have a staff of highly knowledgeable sales people wailing to hear from you, and to help, ' Because service is what we're all about. ORDER EARLY FOR CHRISTMAS DEUVERY • CALL EARLY FOR GUARANTEED DEUVERY DATES the same horizontal line, a single regular text character set at the bot­ 200 times faster than the pace for ver­ player can do the job. tom. A "Rosetta Stone" program tical screen drawing. The Atari Another way DUs can be used in would also be possible, showing dif­ 400 / 800 display system was designed conjunction with players is to change ferent text fonts on the same screen. specifically for raster-scan television, their width or priority. This would The vertical reflect bit can be changed and it mirrors the anisotropy of the most often be used along with the with a DLI routine, allowing some raster-scan system. The Atari priority-masking trick described in text to be right side up and other text 400 / 800 display is not a flat, blank part 3 of this series last month. to be upside down. sheet of paper on which you draw; it DUs can also be used to change The proper use of the DU requires is a stack of thin strips, each of which character sets partway down the careful layout of the screen display. can take different parameters. The screen. This allows a program to use Designers must give close consider­ programmer who insists on designing character graphics in a large window ation to the vertical architecture of an isotropic display wastes many and regular text in a text window. their displays. The raster-scan tele­ opportunities. You will achieve Multiple character-set changes are vision system is not two-dimension­ optimal results when you organize possible. A program might use one ally symmetric; it has far more ver­ the information you wish to display graphics character set at the top of the tical structure than horizontal struc­ in a strong vertical structure. This screen, another graphics character set ture. This is because the pace for allows the display-list interrupt to be in the middle of the screen, and a horizontal screen drawing is about used to its greatest potential..

Durned and tested· backed by fost WO"onfy TELEVIDEO service. Exdustve Soll® CP/M® Increases drtve A new line of micros-serviced locally by copaclty. Octals and Wlnch.slers available. Call for prfcesl Generel Electric. System I Includes 64K RAM. ·ADDS Viewpoint $559 Our Nonhstors or. t>.nfithon "foctory seoll'd" CP/ M® 1MG on floppy. and dlognosrlcs. Okldata M·80 . • call us · we'll 'ell you why. (fr•• games disk). Televideo 910 ...... , $589 SYSTEM I ...... $2385 Hazeltine Esprit $589 Okldata M·82A . HRZ II 64K DO $2795.00 SYSTEM II . $5349 Soroc IQ 130 $589 Okldata M·83A . HRZ II 64K Quad ...... '$3095.00 Advantage ...... Coli

ALTOS Single user 8000·2 Includes dual 8" double ZE.NITH density drives (1 Mg. copodry). two serial The oll·ln·one (ampurer thor's backed by Anadex 9500/9501 pons. two paroUel POrfS, and CP/M®. your local Zenith/ Hearh service cenrer. Green Screen. CP/M®. and Supercolc Incl. 810 Basic ...... Call for other ... ltos prtctu. TI Televldeo 912 Datasauth • 1 80 Z89 w/48K. 2 SIO's $2144 ACS·8000-2 w/CP/M® $2849 . Televideo 920 New CP·Graphlcs Z90 w/64K, 2 SIO's $2395 . ACS-8000-15 w/MP/M® ... $4195 ' Televideo 950

_'. J,,~ _ Closed Dec. 24th· Jan. 3rd /~, I , Scottsdale SystemSltd. 67:30 E. McDowell Road. Suite 110, Scottsdale, Arizon,a 85257 C.ltah Starwriier·IP $1324 C.ltoh Storwriter II S $1595 Ampex 080 NEC 3500 $1995 Z (602) 941-5856 EEJ ' 080 Amber NEC 7710/7730 $2340 Mime Act 5A Diablo 630 Call 8·5 Mon.·Fri. ADM· 3A ·(We Export) TWX 91 0·950·0082 (IMEC SCOT) ~......

Paper TIger 460G . Paper TIger 560G ... Malibu 2% cash discount included/charge card~ add 2%. Prices subjeCT to change. product subject to availability. Arizona residents add 5%. F.O.D. point of shipment Scotfsdale. Centronics 739P Dual Mode 200 $2395 0·20% resfocklng fee for returned merchandise. Warranties Included on all products. Centronics 739S Monnesmonn·Taliy Personal checks toke:) weeks to clear. DEC LA34AA MT·1805 .. $1645 CP/ M and MP/ M Ore registered trademarks of Dlgilol Research.