10
74470°19388 "3
0
° a ; : «tt: on ea ar” a”. ay fee ' Sd ,0° ‘ gt : aah, “6 : as oa Vag 7. _” s we i, f-.- a ve b =i vat g: ; f ° an * 9 ” ’ ' Fe ¢ Tr = a at «a BY? vfs )igitizaitys fan a . aan os ops a
oes
ae
+e i
‘ a0)
mal We
Soes5,
v4 f Fen
“October November 1986
World’s Cheapest Unix System
Public Domain 32000: The Hardware.................002.
How to put together a UNIX co-processor system (complete with UNIX V) for under $1,000.
Public Domain 32000: The Software.............eeeeeeee The software end of this UNIX compatible.
PALs — What They Are And When To Use Them Side Sans Why the 32000 UNIX system was designed with PALs
Special Features
Controlling The Real World With Your PC: An Introduction To Microcomputer Electronics ...... eelhas A fun series that will take you from zero to an understanding of computer hardware.
RFI/EMI Protection For Your Computer ae eeeaa le. nee
Is your computer interfering with more serious things?
Writing A Printer Driver For MS-DOS ......... essences Excellent. introduction to MS-DOS drivers and assembly language.
Recover A Directory By Reading & Write Disk Sectors ic acorns ve 8465 ca eh Seah a Maes
Recovering your files and your sanity.
a nee
bf
THE PC 8700 AT-STYLE KEYBOARD INCORPORATES EVERY IMPROVEMENT IBM DESIGNED INTO THEIR ADVANCED “AT” KEYBOARD. QUALITY SO GOOD, IT’S BACKED BY AN UNPRECEDENTED TWO-YEAR WARRANTY!
Advanced design features include:
e Separate Numeric Keypad simplifies data entry
e Status Lights for Cap, Num and Scroll Lock helps eliminate typing errors
e Extra-wide Control and Return Keys for ease of use
e Return Key placed in “standard typewriter” position for touch typists
Selectric layout for Office Standardization
¢ Positive Tactile Feedback
e Keyswitches rated for 50 million keystrokes
e Made in USA
e 2Year Warranty
BORLAND’S AWARD-WINNING SUPERKEY INCLUDED! GET THIS BEST- SELLING KEYBOARD ENHANCER SOFTWARE — VALUED AT $69.95 — AS PART OF THIS AMAZING OFFER AND CAPTURE THE POWER OF MACROS!
SuperKey’s macro capability is remarkable. It literally turns a thousand keystrokes into one.
e Exclusive screen data Cut & Paste © Screen Privacy and Protection
¢ Time & Data Stamping
¢ ProKey Compatibility
e Data Encryption
e Keyboard Lock
¢ Keyboard layout customization
e Integration with SideKick
e Pull-Down Menus
¢ On-Line Help and much, much more!
ORDER NOW — CALL TOLL FREE 800-826-5398; IN CA 800-592-9602
_______ KEYBOARD/SUPERKEY BUNDLES AT # $99.95 EACH. PLUS $10 SHIPPING AND HANDLING IN THE U.S.A.*
C1 ENCLOSED IS MY CHECK FOR $109.99 FOR EACH BUNDLE ($116.45 FOR CA RES. — SALES TAX INCL.)
PLEASE RUSH ME
OVISA OMC O NUMBER
EXP. DATE ________ SIGNATURE NAME
ADDRESS
CITY 4. STATE TELEPHONE
_ ®
COMPUTER TYPE & MODEL
PC Jr, AT&T and Corona computers require adaptors available at a nominal fee. Call for pricing.
ZIP
BLES * c, XT, Al ara, PC Jr. AND COMPAT|
FAR”
BARGAIN OF THE YEN
Bath Hardware & Software
INCLUDES BORLAND’S SUPERKEY AWARDED “BEST OF 1985” BY PC MAGAZINE
RETAILS ALONE FOR $69.95
CRITICS’ CHOICE
“Who Can Pass Up a Deal Dept?” John C. Dvorak, Infoworld, 3-10-86
“The best part of the keyboard is the feel. It is ideal!’ PC Productivity Digest, 5-86
“The keyboard's construction is solid .. . also quick and responsive to the touch. It is ideal for anyone who wants to or has to replace their PC keyboard ... At $129.95 DataDesk’s keyboard is a bargain. The PC 8700 keyboard with SuperKey for that price is a steal.”
Computer Shop Talk, 3-3-86
“DataDesk International has designed a sturdy and hand-
some keyboard that has a tactile response... and bundled
with SuperKey is the PC hardware bargain of the year.” Charles Humble—Computer Editor, The Oregonian
“DataDesk’s is genuinely a nice keyboard... It feels nice ... ican type much faster and much more accurately on it than most others ... and it’s inexpensive. It costs only $129, compared to around $300 for the Keytronics 5151.” Harry Newton, Publisher, Teleconnect, 5-86
Ss L4]SeOnrcanp cONNer The DataDesk CG 1-800-826-5398
PC8700 Keyboard 1-800-592-9602
inside Calif.
dataciesk
INTERNATIONAL
7650 Haskell Ave. (iiamamamant Van Nuys, CA 91406 818-780-1673 vst
The KeyTronics 5151 Keyboard
PLUG INTO SAVINGS!
HARD DRIVES
3 mw (5 mw Fallouts) with instructions may have cosmetic defects but are fully operational
$8995
LIMITED SUPPLY ON HAND
Name: — Model: Megs: — Size: Price: . POWER SUPPLY KITS Tandon (New) ae 26. pn - $ 399.95 ‘(suitable for above)
Rodime (New) 202E 2% 5.25 Full 399.95 $6995 (includes P.C. Board)
CMI (Used Tested) = 6426 26 0 5.25 Full 299.95 WARNING: Improper use of these items can be dangerous
CMI (Used Tested) 6640 40 5.25 Full 489.95
Quantum (New) 540 45 5.25 Full 699.95
Atasi (Used Tested) 3046. 46 _ 5.25 Full 649.95
Maxtor (Used Tested) ‘1050. 50 5.25 Full 649.95
Micropolis (New) ae 85 5.25 Full 1,194.95 BARE FRAME) "Seagate . ST419 15 5.25 Full 359.95
Ball Brothers TV-120 (shown) !6mhz, Xerox 820 compatible, 12” B/W, P-4 phosphor.
$4995
SWITCHING POWER SUPPLY a
CONTROLLER CARDS
Audiotronic 964-04 Hitachi MD 1431 Fd TTUXY Xerox 820 compatible TTUXY Xerox 820 compatible D.T.C. 1403-D (shown with optional software and adaptor) Real Power From a Famous Manufacturer delivers: 12 VDC..79 amp 12 VDC 1.5 amp 1 8” 851, DSDD and 8” 1000 hard drives 10 amps at SV, 8 amps at |2V, measures only 8.5 73 ; ‘i contro! two ‘ two type hard drives. by 4.5” and is only 2.25” thick . ; 9” Green 13” Green $ 249 with pinouts 39 (limited supply on hand) 3 9 $49 ype ‘ NEC 140 ANB4 Composite video or $ 95 + SV (@ 8amp TTUXY Xerox 820 compatible TTUXY , o ; - 24V (@ Samp 12 VDC .8 amp 12VDC HOST ADAPTER FOR ABOVE CONTROLLERS . ey ee is isi Sc een (for most popular Z-80 computers) x 49 4 9 The Winif Adapter and software + 24V (@ Samp $ ; $ +
$3995
BUILDING A ROBOT? WE CAN HELP!
STEPPER MOTORS
$5QO95
Xebec Controller, auto boot with your software (advanced diagnostic disk) for XT PC clones with up to 33 meg.
SI995
SA 450 FLOPPY DRIVES
DSDD (Brand new in boxes) 48 T.P.I. Full Height; 5.25
Sages
BUSINESS | TELEPHONES
BRAND NEW 6 button business
telephones all the standard features including buzzers and ringers looks the same as picture. Color, choc. brown.
Superior model #M061-FD02 Superior model #M092-FT-402 ‘A" shaft, 200 steps per rev. 35” 0z.0f 4" shaft, 200 steps per rev., 200” oz. of TH E SE N Sl BLE torque 5V (| amp torque, 3.0 V. (4 4.0 amps. 51/4’ DISK DRIVE i a 4 Copal model #SP-57 Airpax model #LA82120-MI 1/16” Shaft, : A" shaft, 7.5° steps 12V, 36 OHM 1S° steps, 5V, 65 OHM
$695 $495
UNIVERSAL STEPPER MOTOR DRIVER KITS
FOR DIRECT CONTROL = Til Ki— GNIVERSAL STEPPER MOTOR ‘
FROM YOUR COMPUTER = PERFECT FOR ROBOTICS AND MANY |
CABINET KIT
. MIE.MLL Filter, 6 AMP (Surge Protection Power Switch (Power Supply Shield @WConnector and Fan Cutouts
Constructed of heavy gauge aluminum, this utility disk drive case will accommodate: 5/4" hard disks, floppy drives, half heights, full heights, % heights, controller card and single board computer. Overall dimensions 10%" x 10" x 7”
Color is TAN
on SHO SALE 56995
Without Power Supply
= ON LINE WITH | UNITED PRODUCTS
Take advantage of the many items that space does not allow us to advertise. Use your computer to down load our weekly specials and hard to find items.
On line 24 hours a day. 7 days a week.
300 or 1200 baud, even parity, 8 bits with one stop bit. :
The phone number is: (206) 682-5593
New items are added weekly. Don’t miss out, call each week.
Model #23 Medel #77
$13599 42995 DC FANS
12 Volts @ 6W, 4.5” S i 995
di) united products, inc.
@ Control almost any stepper motor, forward/REVERSE and step sequence.
@ For stepper motors rated 1.7 VDC — 12.0 VDC
@ Uses a power supply with an output between 3.0 VDC and 12.0 VDC
®@ Modifications included for motors rated above 12.0 VDC
@ Inputs/outputs are ona standard 22 pin edge card connector (.156 spacing) 4'2 x 64 card, G-10 epox.
TECHNA-KIT TECHNA-KIT
cat# U.S.M.D.-C SAME SPECS. ASU.S.M.D.-C cat.# U.S.M.D. except a stand-alone driver
$99 95 @ On board clock (user optional) $ | 995
@ No edge connector
1123 Valley Hours: 9-6 Seattle, WA 98109 Sat. 9-5 PHONE (206) 682-5025
Terms: All orders are shipped F.O.B. Seattle, Wash. C.0.D’s are OK with cash or certified check
MasterCard and Visa accepted
On orders over $50.00 in the continental U.S. we pay the freight. All advertised items are subject to prior sale
MICRO CORNUCOPIA, #32, Oct-Nov 1986 1 *
MICRO CORNUCOPIA, #32, Oct-Nov 1986
B AROUNDTHEBEND———™
By David Thompson
Hi Pops!
-I’m not really ““Dad”’
“Y’d like to introduce David Thompson, father of us all. aun Z
Boy, that introduction Bol my attention. Not that I don’t like being a father, but when ‘‘all’’ means the more than 400 computer fanatics attending SOG V, it’s more . than your classic scene where the little girl runs up, flings her arms around you, and wails, ‘‘Daddy.”’
In fact, I’ve sometimes wondered what I’d do if I were waifed that way. If the child were absolutely adorable, I’d probably confess my lack of self-control and start adoption proceedings. (Erin would love a younger sib- ling.)
But I’m not sure how. one goes about adopting some 400-odd people (some of them old ‘enough, and odd enough, to be my parents), and I’m not sure how I’d explain that many indiscretions to Sandy.
““You see, sweety, it was a dark and stormy night. The moon was full, the bats making their rounds. I was alone in the computer room when a harried looking little man in a musty white lab coat scurried by looking for raw material to use in a cloning experiment and...’’
Sandy’s smarter than that.
Gary set up the introductions this year, so I’m betting he’s behind this. There’s no question in my mind that he needs to speak next year, and I need to introduce him.
Speaking Of Gary ©
. Gary Entsminger got married the end of August (so by the time you read this it'll be too late to save him). He’s now living in Davis, California where Alison, his new bride, is attending UC Davis. Gary will still be editing and writing for Micro C (hooray, hooray).
Hard Drives
I’ve gotten some very ‘good feedback on my hard drive article in issue #31. One person has written to say that his 20 Meg CMI drive has been working fine, for a whole month. Another noted that Siemens has been putting out shoddy drives so long, they couldn’t be Japanese.
One thing I forgot to mention in that article. Many drives, including the Seagate 225s (20 Meg) run quite warm. If you put anything directly above them, they get hot enough to generate read errors (the platter expands as it heats). Put your winnies on top of the drive stack so they'll stay cooler; the floppies won’t
Mike Maurice, member of a large. Portland, ~Oregon PC group, called me the other day with the following winnie info:
About six months ago, the Portland market was flooded with Micropolis 20
_Meg drives (Tektronix had shut down a product line). Some of those drives have
(continued on page 78)
October-November 1986 Issue No. 32
Features
6
18
22
30
36
38
60
Dave Rand & George scolaro Public Domain [~ ih. 32000:
The Hardware
A $400 build-it-yourself 32000 co-processor system that plugs into clones or 280 systems and runs UNIX!
Dave Rand & George Scolaro Public Domain 32000: The Software
Theory behind the software eee between the 32000 and the host.
Dave Rand & George Scolaro PALS-What They Are | And When To Use Them
Programmable array logic (PALs), What do they do? How can you design with them?
Bruce Eckel Controlling
the Real World with your PC: An Introduction to Microcomputer Electronics
Like to understand hardware but can't
~ get past go? Join Bruce as he starts
from zero and moves quickly into some really interesting projects. Exciting series.
Rex Buddenberg RFI/EMI Protection For Your Computer
Is your computer’ $ power cord putting the kabosh on prime time TV? This’ll raise your popularity with the rest is the family.
Dave Thompson
The SOG Report Join us for a look at the SOG that was
Don Fletcher
Writing A Printer Driver For MS-DOS |
A printer driver? MS-DOS has a printer driver! But, it’s not like this one. Excellent tutorial on writing 8088 assembly language and on writing drivers.
66
70
88
CONTENTS
Gary Entsminger Recover A Directory By Reading & Writing Disk Sectors
Using MS-DOS interrupts for practical purposes.
Leroy Searle Computers And Education In Central America
Know where your closet computers could go and really get used?
Sigi Kluger 2 Megabytes On the 68020
Sigi piggy-backs another meg of RAM on the DSI-020 board.
Columns
26 C’ing Clearly Creating memory resident programs in C. 44 86 World . SOG V, Taiwanese miscues, and MS-DOS environments 52 Kaypro Redefining the CP/M Kaypro’s key pad in Modula II 56 Pascal Procedures Low level futzing from a high level language. 72 The S-100 Bus — Is 20¢ on the dollar a bargain? Not necessarily. 74 In The Public Domain | -SIG/M changes direction: the latest from New Jersey. — 85. Culture Corner 86 On Your Own : | . Dave found a really good book on consulting. 82 Technical Tips
Future Tense
92
96
By Gary Entsminger
Tidbits A computer learns to heel (and gets a new leash on life).
The Last Page Help your program figure out the type of video board.
MICRO CORNUCOPIA, #32, Oct-Nov 1986 3
i
Free Software Catalog
At Dave Rand’s public domain for- um at SOG V, I promised to find you the name and publisher of a book that one of the attendees was asking about. The book is called ‘‘The Free Software Catalog and Directory.”” Written by Robert A. Froehlich, it’s published by Crown Publishers, Inc., One Park Ave., New York NY 10016.
It’s a cross-referenced listing of pub- lic domain files available for the CP/M
operating system. I’ve found it very
_useful for quickly finding stuff in the SIG/M and CPMUG collections. It also provides a brief description of each file or collection. I don’t hesitate to recom- mend it to other SYSOPs or anyone needing this kind of information.
I had a- ball at SOG and enjoyed very much meeting Dave Thompson and the others there. I especially en- joyed those late night sessions at the dorm. The trip was worth making for those alone!
Dave McCrady 13324-138 Street Edmonton Alberta Canada T5L 2B4
PC Speedup I just finished Larry Fogg’s PC
speedup described in issue #31. Over- .
all, it went well. Only one call to your tech support line with questions. My machine is a K16. It ain’t fun to work on.
I had to remove some slow memory. There was one solder bridge and one wire soldered to the wrong place. Since the Speedset program didn’t work with this machine, I installed a switch at your suggestion. Now every- thing goes like hell. .
The graphics routines are much fast- er too. I’d be glad to help out anyone in the Spokane area who’s having problems with this conversion.
John van Veen
E. 2230 11th Spokane WA 99202 (509) 535-5131
More On Hard Disks I have been building 8MHz V20 XT
clones lately, and having researched.
boards, suppliers, and prices, I have a
few words about hard disks.
The Tandon 3 1/2” drives are OK. They are shock mounted, which makes them particularly good for port- ables, but they seem very slow com- pared to others I’ve used. The rumors that these drives are self-parking are false (the same is true with the Ro- dimes that came with the Compacs). My understanding is that only the more expensive voice-coil drives that use much less juice to position the heads can be made to sense when the power goes off and quickly park the heads on the last track while there is still a bit of juice left in the circuits.
The Seagate ST-225 is still the old standby, but it’s not shock mounted, and must be carefully bolted in from underneath. (Four #8 very short bolts
‘hold them to the chassis, accessed by
holes in the bottom of the clone cases. You must place washers in between the drives and the chassis and torque them down evenly and carefully. I usually cut an edge off the washer with wire cutters so it fits flat against the side of the chassis.) Otherwise, it won’t boot up all the time, or will get senile when looking for data.
The newest technology is the Adap- tek controller card which compresses data before it is stored on the drive, and expands it after it is read. Thus, a 20 Meg drive can store 30 Meg and I/O speeds up about 33 percent.
Seagate has come out with their ST- 238 for use with this card, and West- ern Digital is about to release their own version of this controller technol- ogy. .
However, I’ve had problems using Concurrent PC-DOS with this system. It works on the CP/M partition, but you must format the PC-DOS partition under Concurrent, and then files writ- ten by Concurrent cannot be accessed under PC-DOS and vice versa.
All of which brings up a few ques- tions: Why is Digital Research Concur- rent never fully compatible with the standards set by Microsoft and IBM, why don’t they seem to care, why are they such a pain in the ass to deal with, and why doesn’t anyone else come out with a fully compatible mul- ti-tasking DOS so I wouldn’t have to use Digital Research’s program and
put up with their lousy attitude?
Everex/Western Digital cards come with a disk containing Fmtdrive.Exe which does the physical format (rather than using DEBUG and having the controller do it). This program seems to work fine on all of the drives and controllers I’ve used. I’ve been warned that the shipdisk program on the same disk (which allows you to park more than one hard disk, one at a time, and gives you an OK message so you know the heads are really safely parked) will not work correctly with other cards.
If you haven’t mapped bad tracks during Fmtdrive (drives usually come with a list of bad tracks), use Norton Utilities disktest (DT) to lock out bad tracks before entering any data. It’s a good idea to run this program regular- ly as well as Chkdsk/f from your MS- DOS disk. | _ Finally, for clones or parts, check out Ishvar Technology (formerly Avatar
. Systems). They have the best quality
and prices that I’ve found, and Jim is very knowledgeable and honest. Look for his add in Computer Shopper, or call or write at 43571 Sierra Drive, Three Rivers CA 93271, (209) 561-3139. Harv Koplo
AVROM Systems
(formerly Slipped Disk Computers) RR 11 Box 217
Springfield IL 62707
More On Mix C
In response to R.W. Odlin’s letter about Mix C that appeared in Micro C Issue 29:
Mr. Odlin wrote to me after reading my review of Mix C in the MAXIMUL newsletter (the Lobo Max-80 newslet- ter edited by Glen Guyer, 120-C3 North Pacific, San Marcos, CA 92069) concerning a discrepancy in our tim- ings of the string.c benchmark. (He reported 54 seconds, while I measured 880 seconds without running the ob- ject code through a Mix-supplied speedup utility and 465 seconds after speedup.)
Mr. Odlin discovered that instead of coding the for-loop in the string- length function:
4 MICRO CORNUCOPIA, #32, Oct-Nov 1986
QC88s C Compiler . Concurrent C .
Coder’s Prolog in C
| Fi Op, Ge me ra
YACC & PREP
Small-C compiler for 8088 tiny-c interpreter & shell . Xlisp 1.5a & tiny-Prolog C Tools
(512) 258-0785
Free shipping on prepaid orders
for (p = s; #s t= '\O'; s++)
t] return (s - p); he wrote the following:
for (p = s; *s I= '\O's s++) return (s ~- p);
This will definitely have an effect on the execution of the loop! (It would execute just once.)
In his letter, Mr. Odlin also noted that he could not get the register version of this function to compile. I have found a work-around for this problem. Mix C will not let you code the following sequence:
string(s) register char *s;
but will allow you to code it if you create a dummy function argument and declare that first:
string(s, j) int j; register char *s;
However, all of this is: academic
| C CODE FOR THE PC source code, of course
GraphiC 3.0 hi-res color plots
a ae eel
The Austin Code Works 11100 Leafwood Lane Austin, Texas 78750-8409
No credit cards
$90 $45 $45 $25 $25 $20 $20 $20
because Mix C doesn’t actually use a
register for this variable. The timings .
are the same with or without the register declaration,
All in all, I am quite happy with Mix C. Its complete implementation allows me to try just about anything appear- ing in the magazines and numerous C books. Although its execution speed is quite slow, its compile and link times are fast, and for beginners like me, that’s important.
Spencer R. Lepley 1655 Capital Circle SE, Lot 12 Tallahassee FL 32301
Editor’s note:
Thanks for all the great information, John, Dave, Harv, and Spencer. This is one of the top rated columns in Micro C because of you.
However, I must complain: —
You guys are falling down a bit. In all
these letters, there’s not a single reason for
me to drag out my apple box and expound. What am I going to do, write a longer editorial?
I spent one whole afternoon trying to
contact other editors to see how they were
DSD86, The PC-DOS Debugger DSD87, The PC-DOS Debugger with 8087 Support. 99.95 DSD80, The CP/M Debugger
SoftAdvances
P.O. Box 49473 e Austin, Texas 78765 © (512) 478-4763
1-800-232-8088
faring: three had disappeared, six had taken the afternoon for lunch, and the last had fallen asleep reading old listings.
Wake up! You guys can do better than this! So, I’m declaring November ‘‘Harass An Editor Month.’’
Get out there and harass an editor. (Editors need to make a living too.) Take your choice: a city desk editor, a newsletter editor, a political editor, a full-screen editor, a serious editor, even me.
(And if your letters are particularly good (bad?) and particularly short they'll get printed.)
Write: Harass An Editor Micro Cornucopia PO Box 223 Bend, OR 97709
Clone Report
I recently bought an AT clone from a company in Austin TX called Com- puadd. The machine’s an 8MHz with 640K RAM, a 20 Meg. CMI disk, a 1.2 Meg. floppy, an Amdek monitor, and a Hercules clone monographics board.
(continued on page 95)
MICRO CORNUCOPIA, #32, Oct-Nov 1986 5
Public Domain 32000:
The Hardware
This is for all of you who want to put a computer in your clone or CP/ M machine. (Sorry, that was a cheap shot.) Actually, this is the cheapest way known to hacker or human to build a truly powerful system (UNIX System V if you wish).
With hardware floating point that outruns DEC 11-70s, 2 Meg of DRAM, DMA, and a memory man- agement chip, this $400 system is an incredible hardware bargain. See the SOG V article in this issue for information on a public domain oper- ating system for this machine.
ur primary goal in designing () 32000 based system was
to come up with a low cost system without compromising per- formance. One of the unique aspects of the design (which was first present- ed at SOG V) is that it has been released to the public; schematics, PAL equations, interface software, and the PCB artwork. For this reason, we named our design PD32. (We are, however, restricting commercial copy- ing of the system, see the note at the end.)
We chose the National Semiconduc- tor 32000 chip set (second-sourced by Texas Instruments) because it’s inex- pensive, is a mature product, and was designed to support high level lan- guages. The total cost of both the hardware and UNIX System V, with which the system runs, should be under $1000.
The version of UNIX ‘available for.
this board is the full AT&T UNIX System V release 2. The port was performed by ZAIAZ Communications and is AT&T and National Semicon- ductor approved.
About The 32000 The 32000 series includes the timing control unit (TCU), the central process-
ing unit (CPU), the memory manage-
ment unit (MMU), the floating point -
unit (FPU), and the interrupt control unit (ICU). Currently four CPUs are available in the 32000 series; they are the 32008, 32016, 32032, and 32332.
The 32000 series is unique in the microprocessor world in that it is the only family that maintains 100 percent upward and downward software com- patibility at the binary level. This compatiblity means the end user doesn’t need to change software when changing CPUs.
Of the four CPUs, we chose the —
32016 for its price and ease of board routing (the board has only two lay- ers). The 32016 still has a full 32-bit internal architecture but has a 16-bit external data. path. To reduce pin count both the CPU and MMU multi- plex their data and address buses. In other words, data and address infor- mation are put on the same set of pins.
Hardware Design.
Now that we’ve covered some of the background, let’s take a close look at the design. From Figure 1 we can see that the TCU, CPU, MMU, and FPU literally bolt together. To understand how the rest of the system interfaces to these four devices, we need to
_ understand the timing of a bus cycle.
Addressing The CPU places the logical address onto the data/address bus during T1
and pulses its address strobe (ADS)
pin. If an MMU is in the system (as in this design) ADS from the. CPU con- nects to ADS of the MMU. The MMU then performs any necessary page ta- ble lookups and translations, places the physical address onto the data/ address bus, and pulses the physical
address valid (PAV) pin. This is per- |
formed in the TMMU state. This pin becomes the system-wide address strobe pin and also connects
By Dave Rand and George Scolaro
72 Longfellow St. Thousand Oaks CA 91360 (805) 493-1987
into the TCU. The TCU, on receiving the ADS signal, generates either a read (RD) or write (WR) signal during
‘T2 and T3. During T2 and T3 the bus
becomes a data bus with data either being read or written by the CPU or MMU. The final T4 state is used internally by the CPU to prepare for entering an idle bus condition (if the 8- byte prefetch queue is full) or for
. starting a new T1 state.
| Wait States
Since the TCU generates the RD and WR signals, wait states may be re- quested by asserting either the CWAIT, PER, or WAITn signals. The TCU. generates READY, which the CPU and MMU sample and wait on as
necessary. The CWAIT is a continuous
wait signal. WAIT1, WAIT2, WAIT4, WAITS... allow from 1 to 15 wait states to be digitally selected. -
We did. not use the PER signal in this design. It modifies the bus cycle so the 32000 can talk to slow peripher- als such as UARTs.
The TCU generates several other useful signals: data bus enable (DBE) which is used to enable data bus transceivers (which don’t exist in this design), timing state output (TSO) which is a signal that comes out very early in T2 and lasts through T3 (used by the DRAM controller), CTTL (TTL buffered PHI1), and FCLK Sa es fre-
quency).
. Latching And Decoding
Since the data and address buses are multiplexed together we need to sepa- rate them into two buses for the EPROMS, the ICU, and address de- coder PAL (U3 DEC32). Figure 2 shows U14 and U15 which latch the 16 least significant address lines using the inverted system address strobe signal
(ADS). The high order address lines
Al6 to A23 are latched by the CPU/
(continued on page 8)
a em mm Ne Tn mer
6 MICRO CORNUCOPIA, #32, Oct-Nov 1986
This ts the Modula2 compiler everybody’s ainda
Or...
Mae
‘Mo at its absolute best. It’s a fully integrated development environment that takes into account what you need asa programmer. Without leaving the Editor, you can call the compiler, linker and utilities.
“With Logitech’s Modula-2, you'll have the ability to edit several files at once, “comparing, window to. window,. various code modules. You can even move from -Window-to:- window compiling, linking, debugging and running.
The compiler has the kind of power and room to breathe that you really need in today’s complex applications. It is as easy to use as Turbo Pascal, without your
programs being limited to 64K of code.
At your command will be the libraries of modules that make Modula-2 a programmer’s dream. It has essentially the same structure as Pascal with the major addition of a library organization of code modules that allow you to put together programs on a solid, block-by-block, foundation of proven code.
Whether you’re working with a module of your own making, or one of the many in our library, you'll find the system by which each module is identified, described and stored an organizational masterpiece. And that’s at the heart of Modula-2.
Underneath the sophisticated system is a Modula-2 compiler that is the result of years of development and proven use in industry. We run on the Vax’, and we run on the IBM PC. And the code is portable-from one to the other.
Best of all... you can have it right now!
Logitech Modula-2/86 Complete with Editor, $ Run Time System, Linker, Cursor-posi- 89 tioning debugger, 8087 Software Emula- tion, BCD module, Logitech's extended library, Utility to generate standard .EXE files, Turbo Pascal (and standard Pascal, too) to Modula-2 translator (included without charge until 8/1/86), and much, much more! Logitech Modula-2/86 with 8087 support Even if $129 you haven’t yet gotten an 8087 co-pro- cessor, you can still use this version.
Logitech Modula-2/86 Plus For machines with $ 512K or more. Takes advantage of the 189 larger memory to increase compilation speed by 50%! Supports 80186 and 80286 as well as 8086 and 8088. Includes 8087
and 80287 support, too.
Window Package Now you can build true win- $ 49 dowing into your Modula-2/86 code with
ease, too. Very powerful and very full, yet only 15K in size. Features virtual screens, color support, overlapping windows and a variety of borders.
Run Time Debugger (source level) Much more
5 69 powerful than just a symbolic RTD.
Display source code, data, procedure call
chain and raw memory. Set break points,
assign values to variables, pinpoint and
__ identify bugs in your source. The ultimate professional’s tool!
Utilities Package Features a post-mortem de-
5 49 bugger for static debugging. If a program you've written crashes at run time, the situation is frozen, and you can pinpoint, in source, the cause of the error and the data at that moment. Also includes a disassembler, a cross reference utility and a “version” utility that allows conditional
‘ compilation.
Make Utility Automatically selects modules af- fected by code changes for quick and minimal re-compilation and _ relinking. Even figures out dependencies for you.
Library Sources Source code for our major library
$99 modules is now available-for customiza- tion or exemplification.
ROM Package If you need to produce rommable code, call our 800 number for further
To place an order call our special toll free number
800-231-7717
in California
800-552-8885
Special offer until 8/1/86!
includes Free! $49.95 value Turbo Pascal translator! Now, you can take your library with you!
$39
COHOSCSTOHCHOHSHSHESEHHESHEHEOHESEHEHHE HEHEHE H OBER H EES
Y I'd like to take the next Cs, logical step in programming.
Please send my copy of Logitech Modula-2/86 to the following address:
OVISA OMasterCard O Check Enclosed
Card Number Expiration Date
Signature Name Address City State Here's the configuration I'd like:
O Logitech Modula-2/86 $89
O Logitech Modula-2/86 $129 O Run Time Debugger $69 with 8087 support (source level)
O Logitech Modula-2/86 Plus $189 O Utilities Package $49
Please add $6.50 for shipping O Make Utility $29
and handling. O Library Sources $99
Totalenclosed$___ {California residents, please add applicable sales tax)
LOGITECH
LOGITECH, Inc.
805 Veterans Boulevard Redwood City, California 94063 Telephone (415) 365-9852 For European pricing, please contact: LOGITECH SA Box 32, CH-1143 Apples, Switzerland Telephone 41 (21) 774545
Zip____ Phone ( )
0 Window Package $49
And include the indicated items:
FeSO SHAS SESSHOSEHHSHHSSSHSHSHSHSSHSHHSHSHEHSHEHEHHHEHHEOSHEESEEHHE SESH HSHHCHEOHHEE
; a information on this package. SCHRSSCHOSHHEHCHEHRSESESHHCSEEESH SHH HOEHEHE GEESE SCHHHHOHHE Please call our 800 line for: GO Information on our *VAX version Ci Site License and University Discounts O Dealer and Distributor information
“Turbo Pascal is a registered trademark of Borland international
MICRO CORNUCOPIA, #32, Oct-Nov 1986 7
PD32: THE HARDWARE
. (continued from page 6)
_ MMU for the full bus cycle, so at this _ point we have a separate 16-bit wide ‘ data bus and 24-bit wide address bus. The DEC32 PAL takes several of the -address lines and generates the PPORT, INT86, EPROM, ICU, and _ RAMS signals. PPORT is the select for -the parallel port which forms the - PD32-to-host data interface. INT86 is a signal used to interrupt the host or set a flag that the host can sample to see - if the PD32 has a request waiting for service. EPROM is the select line for the two EPROMS (remember the 32016 has a 16-bit wide data bus). ICU is the chip select for the ICU, and RAMS is the chip select for the dynamic memo-
DEC32 also generates a_ software reset signal that is combined with -TRESET (the power-on reset signal from the host) which connects to the “input reset pin of the TCU. DEC32 _also takes several of the host signals (ISEL, IA1, IA2, IOR, and IOW) and generates a signal to clear the flip flop . U2 (via pin 13). This half of the flip flop is set whenever the PD32 at- tempts to interrupt the host. Thus the host may honor the interrupt (the Z80 host design does not use interrupts), or it can poll the interrupt status via a status read.
Parallel control PAL U1 takes the
- output of the interrupt status flip flop .
and makes it available on IDO. U1 also generates the signals to clock data into the data latch when either the PD32 or the host performs a data write cycle, and the data enable output signal when either the PD32 or host performs a data read cycle. _ The data latch is a 74AS646, a very handy chip. It has two back-to-back
transparent latches (in a glass case).
with tristate capability. Thus it acts somewhat like a one-byte FIFO.
The other half of U2 is used to keep track of whether the data latch, U5, is full or empty. The PAL U1 and the flip flop form the control circuit for manag- _ing the data latch, U5. This design ' forces wait states on both the PD32 -and the host to synchronize data transactions. Wait states are asserted if either the PD32 or host attempts to write to the data latch if it is already full, or if either attempts to read the
data latch if it is empty.
We designed the software protocol so that in all situations the PD32 rather than the host will be placed in wait states. Plus, we designed the PD32 so that the DRAM continues to be re- freshed even if the CPU is forced to indefinitely wait (this cannot be as- sumed of the host and certainly not the IBM PC/AT).
Parallel Port Vs. Dual Port
In case you’re wondering why we - ‘chose a parallel port interface rather
than a dual port approach, the parallel port approach has many advantages in this design, some of which are listed below: .
— very simple interface requirements on the host. The IBM PC/AT or Z80 or Slicer make ideal hosts for the PD32.
— very fast data transfer rate.
250Kbytes/sec on a 4MHz Z80, and up to 500Kbytes/second on an IBM AT or PC with a V20 or V30.
— easy to debug the interface via the host by output commands with a
| _ debugger while monitoring the signals
on the PD32.
— data from the host is read by a.
software loop on the PD32: This means that the CPU can read the data
and transfer it to the logical address .
with the MMU actually mapping the address to the physical address. Thus, data from the host does not have to be double buffered. .
The last point is very important. since UNIX requires that the data be
transferred to the logical address. In a dual port system the host would move the data directly to the physical ad- dress. Since the UNIX System V on the PD32 supports demand paged vir- tual memory, logical. pages are not necessarily stored contiguously in physical memory. This complicates the software in a dual port system since
the host would have to read the MMU translation table entries for every 512°
byte block of data it was transferring.
The ICU’s Function
The ICU performs several tasks in this design. First, it generates both real time interrupts (60Hz time slicing for UNIX) and software interrupts inside
UNIX, and also accepts interrupts from the host on IR13. Second, since
in this design the ICU is programmed
to have eight general purpose outputs, - GO/IRO to G7/IR14, we use these to perform the following:
— When the GI1/IR2 output goes low, U7’s /1Q output latches low causing the DEC32 PAL to switch out _ the EPROMs in low memory and select the DRAM. (On reset, the 32000 starts execution at memory location 0.
_ Thus we want the EPROMs at 0 | _ “initially, but once the PD32 is up and running, we want RAM at location 0.)
— G2/IR4 if low causes the EPROM software to perform a full memory test every time the host resets the PD32. This helps you debug the memory circuit.
— G3/IR6 may be Siunitoned with a meter, and if low indicates that the self-test performed by the EPROM has_ failed. This information is also output
to the data latch so that the host can
check the status of the PD32 after the reset command.
The DRAM and EPROM are fairly self-explanatory (Figure 4). Both EPROMs are selected’ whether the CPU performs a byte or word access
.since_ the EPROM can be read only.
The DRAM, on the other hand, is
- organized as four banks of 512K bytes each. (A total of 2 megabytes is sup-
ported and automatically sized by the EPROM software.) There are upper and lower bytes (to create the 16-bit word).
The 32000 series has no alignment
Testrictions on data read/writes or in-
struction fetches. Thus the memory has to be organized so reads and,
More importantly, writes to individual
bytes are supported. The 32016 signals the data bus width (whether the read or write is 8 or 16 bits) using the AO and HBE signals. If AO is low, the low byte is active (assuming HBE is high).
If HBE is low then the high byte is_— -
active. These signals are shown on the DRAM controller schematic (Figure 3).
DRAM Control
Explaining the interaction between
the DP84412 (U18) and the DP8409AN-
2 (U20) is beyond the scope of this
article, so we'll just treat them as a single unit (refer to the series 32000 hardware databook). This design al- lows a wait state to be inserted into a
(continued on page 14)
STL SSP I Pa SR SS SSR SS 5 2 EICRE 8 MICRO CORNUCOPIA, #32, Oct-Nov 1986
9861 AON-PO ‘ZE# ‘VIAODNNYOD OUIN
Pa
700IN +E “7/408 /ASTO -ADY PHI4 PHI2 eTTL
FoLK}S
7Ro |} 7WA
CTTL FCLUK /RAO /WR
Figure 1-- Main Processor Section.
ADoO — AD45 AiG - A23.
OL
9861 AON-39O ‘Ze# “VICODNNUOD OUIN
Ui4 : 74ALS573
RD JQ) Jd [OR 1 INI 1D [to
U6 4caALsoo
u6B t Z4AL.S00
* USE 32202-6 {6 MHZ) WITH THIS DESIGN WHETHER A 32016-6 OR 32016-10 IS USED
IND JOD |S JOR {OV INI | FLO
U15 74ALS573
/PPORT ODIN /Tso
/OBE
ZISEL IAt IAe2 ZIOR IOW
LA2s LA2e bLA2ai LAoB LAOS RSTO ISEt ITAi TAé ZIOR /IOW IRESET
U5 74LS646
PARALLEL PORT CONTROL PAL
/PPORT /JINT32
OD FO INS Jon Foot > [te [ry foe
Figure 2 - Interrupt Generation And Address Decoding Circuits
986L AON-O ‘ZE# ‘VIACOODNNUOD OUWIN
IL
/WAITWA /WAITRO
RESi DAPACS&
ooh 3
14
18
RES2 DAPACS
Figure 3 - Dynamic RAM Controller And Decode Circuit
rai
9861 AON-9O ‘Ze# “VITCODNNUOD OWDIN
Figure 4 - Memory Circuit
9861 AON-190 ‘ZE# ‘VIAODNNYOD OUDIN
€L
Ua ZBOCPU
* ALL PINS THAT STAAT WITH THE LETTER °C‘ EG C23 REFER TO THE ORIGINAL CONNECTIONS THAT THE zB80 CPU MADE TO THE PCB SOCKET
U2 74.9245
Figure 5 - Interfacing A Non-IBM PC/AT Host To The PD32
‘PD32: THE HARDWARE
(continued from page 8)
DRAM read cycle by jumpering J7. -Even using 150ns DRAM, you need this wait state if you’re using a 10MHz ~PD32 and a DP8409AN-2 (slow ver- sion). If you have a DP8419 (fast part) in the system you won't need the wait.
U20 multiplexes address lines for the DRAMs and generates the RAS, CAS, and WE signals. All the outputs of U20 that connect to the DRAMs are designed to drive high capacitance loads (typical of large DRAM arrays).
The series resistors reduce under- shoot voltages caused by fast signals from U20, PCB trace inductance, and DRAM capacitive input loads. U20 and
U18 also generate refresh cycles for the DRAMs with period RFCK (16 usec square wave from one of the internal 16-bit counters in the ICU).
The refresh cycles and CPU/MMU cycles are arbitrated by U18. Once a refresh cycle is started, U18 keeps asserting wait states until it’s com-
‘plete. The circuitry that generates the CASL and CASH signals for the DRAMs is necessary, first to support
the byte read/write capability of the CPU, and second, the word read/write requests from the MMU when it’s performing translation table upaates or fetches.
The FLT signal trom’ the MMU caus- es the CPU to release the bus. In this design FLT is used as the equivalent to HBE from the CPU. The MMU will always assert AO low since it accesses word aligned data only. — |
One final point regarding chip select:
for the DP8409AN-2 (U20). In order to use the slow (cheap) DP8409AN-2 in systems with fast clocks (such as the 10MHz PD32) and still not violate its specifications, we keep it enabled. Because it’s always enabled it will constantly generate RAS/CAS cycles for all CPU bus cycles (including ac- cesses to EPROM, etc.). Then we use the RAMS signal to gate off the CAS signal from U20 unless we’re really accessing DRAM. Thus the DRAMs will see only a RAS cycle (a refresh cycle) when DRAM is not selected. The final part of the schematic is the
decode circuitry in Figure 3 which is used to qualify the address from the | IBM PC/AT. If a Z80 is being used as
the host, this decode circuitry is by-
passed via J1, with the decoding being accomplished on a daughter board.
CONN2 in Figure 5 is used to connect
to a daughter board via a 26-line ribbon cable. The schematic of the Z80 daughter board in Figure 6 shows how to interface a non-IBM PC/AT host to the PD32. _
For more information regarding con- struction, debugging, software
sources, and latest schematics, as well
as the PD32 user’s group, contact:
Dan Efron 8910 Westmoreland Lane
~ Minneapolis MN 55426
(503) 382-7643 (Micro C RBBS)
Note: George Scolaro is maintaining the copyright on the hardware design and is restricting copying to small-quantity, non- commercial users. Any commercial produc- tion of this system must be by license through George.
14 MICRO CORNUCOPIA, #32, Oct-Nov 1986
VEDIT PLUS
MULTIPLE WINDOWS
POP-UP MENUS
KEYSTROKE MACROS
WINDOW 1
VEDIT PLUS is an advanced editor that makes your program development and word processing as efficient and
easy as possible. VEDIT PLUS is simple enough to learn and use for the novice, fet has the speed, flexibility and power to satisfy the for (i:0; istermlim: i++) {
most demanding computer professional. ptr = malloc ( NODESIZE ): VEDIT PLUS is particularly suited for if (4)
writing all types of programs and head : tail = ptr: lengthy documents such as reports or else {
manuscripts. tail - next:ptr;
é . : tail:ptr: This shows how VEDIT PLUS can perform i windowing. One window is used for word processing, a second for program development, and the third for commands.
blidlist ( infile ) FILE *infiie:.
register 1. struct node “ptr:
tail- next = NULL: load _str( &(tail- header),
i return ( termiim |
WINDOW $
VPLUSPC .COM INSTALL .EXE LIHARD .BAT T -BAT LIGHT .COM ENVI .COM *.NUM DISK -DIC VEDIT INI RAM2 DIC BM THES DIC
a LIGHT — .HLP RAM3 .DIC PRINT -.EXC INSTALL .INI
For over six years VEDIT has been the choice of professionals who demand the most powerful edit- ing software available. CompuView has once again enhanced this power with the latest VEDIT PLUS - you can now open windows to simultaneously edit several files, access editing functions with pop-up menus, use keystroke macros to speed editing and run other programs within VEDIT PLUS.
Whether your needs are program development, technical writing or word processing, VEDIT PLUS is your answer. VEDIT PLUS is simple enough to learn for the novice, yet has the speed, flexibility and power to satisfy the most demanding computer pro- fessional. Its powerful macro programming lan- guage helps you eliminate repetitive editing tasks.
If you take your editing seriously, you need VEDIT PLUS. With over 40,000 users, you can depend on VEDIT PLUS to perform consistently and reliably. As have GE, EDS, U.S. Navy, GM, Sperry and many others. VEDIT PLUS supports color windows on the IBM CGA & EGA and even windows on most CRT terminals. Available for MS-DOS, PCDOS, CP/M-86 and CP/M-80. List price $185.
‘To sum things up, VEDIT PLUS is a small, fast, sophisticated editor with a wealth of features and a good macro language. It offers many rewards for the dedicated programmer.” .
Computer Language, Chris Wolf, Scott Lewis,
Mark Gayman 6/86
‘“VEDIT PLUS is a wholly remarkable program: blindingly fast, extremely powerful, and highly flexible.”’
Profiles Magazine, Robert Lavenda 4/86
VEDIT and CompuView are registered trademarks of CompuView Products, Inc. MS- DOS is a registered trademark of Microsoft. CP/M is a registered trademark of Digital Research. WordStar is a registered trademark of MicroPro.
EXECUTE DOS PROGRAMS
VEDIT PLUS FEATURES
e Simultaneously edit up to 37 files of unlimited size.
e Split the screen into variable sized windows.
e ‘Virtual’ disk buffering simplifies editing of large files.
e Memory management supports up to 640K.
e Execute DOS commands or other programs.
e MS-DOS pathname and CP/M user number support.
e Horizontal scrolling - edit long lines. '
e Flexible ‘cut and paste’ with 36 text registers.
e Customization - determine your own keyboard layout, create your own editing functions, support any screen size, any CRT.
e Optimized for IBM PC/XT/AT. Also 132 column & up to 70 lines.
EASY TO USE
e Interactive on-line help is user changeable and expandable. e On-line integer calculator (also algebraic expressions).
e Single key search and global or selective replace.
e Pop-up menus for easy access to many editing functions.
e Keystroke macros speed editing, ‘hot keys’ for menu functions.
FOR PROGRAMMERS
e Automatic Indent/Undent for ‘C’, PL/I or PASCAL.
e Match/check nested parentheses, i.e. ‘{’ and ‘}’ for ‘C’.
e Automatic conversion to upper case for assembly language labels, opcodes, operands with comments unchanged.
e Optional 8080 to 8086 source code translator.
FOR WRITERS
e Word Wrap and paragraph formatting at adjustable margins. e Right margin justification.
e Support foreign, graphic and special characters.
e Convert WordStar and mainframe files.
e Print any portion of file; separate printer margins.
MACRO PROGRAMMING LANGUAGE
e ‘If-then-else’, looping, testing, branching, user prompts key- board input, 17 bit algebraic expressions, variables.
e CRT emulation within windows, Forms entry.
e Simplifies complex text processing, formatting, conversions and translations.
e Complete TECO capability.
e Free macros: © Full screen file compare/merge e Sort mailing lists e Print Formatter e Main menu
CompuView
1955 Pauline Bivd., Ann Arbor, Ml 48103 (313) 996-1299, TELEX 701821
SANYO |
Prices don’t get any lower.
MBC 1200 SPECIFICATIONS:
* Two 2-80A (main and subsidiary) CPUs with no- wait mode for fast execution, substantial memory capacity (RAM 64KB, ROM 4KB).
© High-resolution full graphic function with 640 x 400 dot matrix display.
® Choice of 33 or 40 line text mode.
¢ CP/M operating system complete with assembler, editor and all utilities.
* Easy-to-use Sanyo graphic BASIC.
¢ One (MBC 1200) or two (MBC 1250) internal double-sided, double-density, double-track, 51/4" slim-type 640KB formatted mini floppy disk drives.
® Keyboard with 15 user-programmable function keys.
Interfaces for Centronics printer and one RS- 232C port provided.
© Free software from Micropro: Wordstar, Mailmerge, Spellstar, Infostar, Calcstar & Basic.
@® SANYO MBC 4000
FREE SOFTWARE FROM MICROPRO
MBC 4000 SPECIFICATIONS: e MS DOS - CP/M 86 operating system with
a SANYO M BC 1 200 editor, assembler and all standard utilities.
¢ 128KB RAM memory capacity, expandable to
2 R E E sO FIWA R | | e race for one Centronics printer and one FRO M M | [e- se) | sie) e 12" aoee een monitor display screen for
easy viewing.
© One (MBC 4000) or two (MBC 4050) internal double-sided, double-density, double-track, 5%" slim-type mini floppy disk drives with ° 640KB formatted capacity.
® Keyboard with 15 user-programmable function keys.
e Thousands of FREE public domain software available ¢ COMPAT disk utility for over 50
e 8086 Microprocesser e Runs MS DOS & CP/M 86 e Floppy disk drive with 640K
CP/M formats—only $39 © Free software from Micropro: Wordstar, — Capacity :
e Professional accounting soft- ea a e RAM expansion to 640K ware available available.
e 20 meg hardrive optional : EDUC ATIONAL e Utility pack including BIOS &
schematics option
$499
Special pricing for printers
DISCOUNTS
At Micro Supply Organization we offer: the lowest prices on Sanyo computers and software. With prices like these you can afford the convenience of owning
and operating more than one computer.
‘399
Special pricing for printers
We also offer the User Support Hotline
for questions concerning your computer: - or about software availability. Whether you need one or.a dozen computers, Micro Supply Organization is the place
to get them.
_For our catalog with compiete pas Na a details and prices, send $2 to:
_ Micro Supply Organization, inc. : ; i “4909 Stockdale Hwy. #180 é 4 - Bakersfield, CA 93309 emer: ioe
ORGANIZATION INC. 15% Restocking on Returned Orders
16 =MICRO CORNUCOPIA, #32, Oct-Nov 1986
MAXIMUM P
Don’t be fooled.
No hidden cost!
In keeping with industry trends MSO is bringing our customers high performance P.C. compatibles and accessories. The GEM-ST™ features the V20-8 chip which runs at three times the speed of the IBM- PC XT* and also runs CPM 8080 software.
FREE 5 module intergrated software
22 meg sub-system with tape back-up $599 w/purchase
FORMANCE.
GEM-ST Specifications:
CPU - V20-8 Chip & Run CPM
Software
RAM - 640K
Clock Rate - 4.77 or 8 MHZ
Disk Interface and Drives -
(2) - 5-1/4" floppy drives 360K
ROM BIOS - Legal BIOS
Keyboard - AT Style Keyboard
Expansion Slots - 8 IBM* compatible slots Power Supply - DC Voltage and Max Current + 5V @ 15A- -5V@ 5A
+ 12V @ 6A-12V @ 5A
Imput Voltage 115/230V
Meets UL/FCC Standards
Standard Interface - (1) - Serial RS-232-Port (1) - Game Port
(1) - Parallel Printer Port
Clock - Clock calendar battery backed up Video - TTL Hi-Res Monographics Card and TTL Monitor
Operating System - MS-DOS
Warranty: 1 year all parts.
90 day labor.
GEN-AT Specifications:
CPU - 80286
RAM - 1 Meg
Clock Rate - 8 MHZ
Disk Interface and Drives -
(1) - 5-1/4” floppy drive 1.2 Meg
ROM BIOS - Legal BIOS
Keyboard - AT Style Keyboard
Expansion Slots - 8 IBM* compatible slots Power Supply - 200 Watt
Meets UL/FCC Standards
Standard Interface - (1) - Serial RS-232-Port (1) - Parallel Printer Port
Clock - Clock calendar battery backed up Video - TTL Hi-Res Monographics Card and TTL Monitor
Operating System - MS-DOS
Warranty: 1 year all parts.
90 day labor.
m > 0lo7 Wale], 7.8 DISCOUNTS
At Micro Supply Organization we offer the lowest prices on GEM computers.
With prices like these you can afford the
convenience of owning and operating more than one computer.
We also offer the User Support Hotline for questions concerning GEM com- puters. Whether you need one or a dozen computers, Micro Supply Organization is the place to get them.
For our catalog with complete details and prices, send $2 to:
Micro Supply Organization, Inc. 4909 Stockdale Hwy. #180 Bakersfield, CA 93309
15% Restocking on Returned Orders AMERICA
ORGANIZATION INC.
MADE IN
Performance for the power user.
The GEM-AT™ runs eight times as fast as an IBM-XT"™, for your multi- tasking and multi-user needs.
Including MS-DOS 3.2
with G.W. Basic. The GEM-AT™ is a complete turnkey system with everything to plug and go!
te Intergrated software
32 meg sub system. with tape backup $799 w/purchase
805/393-2247
MICRO CORNUCOPIA, #32, Oct-Nov. 1986
17
Public Domain 32000:
The Software
There are two tricks to integrating two systems: hardware and software. Interestingly, the best trick is the software. This is the software part of the PD32 series.
ne of our challenges in de- signing the PD32 software
“was to support UNIX(tm) and still make it portable enough to be |
moved to a number of different oper- ating environments. Thus, the soft- ware implements a multi-channel in- terface to consoles, disks, printers, and the like, while using only the single
500K/second I/O channel available on
the PD32.
Since the PD32 cannot be. talking and listening at the same time, a protocol must be used. PD32 employs two different protocols; both will be discussed below.
Getting Started
When the PD32 first powers up, the PROM is bank switched into the PD32 memory space at physical address 0. The PROM code tests the CPU reg- isters, initializes the Interrupt Control
Unit (ICU), and waits a few microse-.
conds for the RAM refresh to start.
Then it tests to see if that’s the first _ power-on of the day. If it is, the PROM does 256 write cycles to the RAM, just to make sure the RAM is awake. A hard memory test follows, to check memory size and ensure that the memory is good.
If the memory fails, a Ox5a (5A hex) is output to the PD32 data port. If the memory is good, then a 0x00 is out- put, and the PC I/O processor knows
everything’s OK. Subsequent resets of
the PD32 do not repeat the full self- test, but instead do a quick test of the RAM, unless you install the ‘always test’ jumper.
Protocol #1 After the PROM completes the self- test, it drops into the first protocol.
This simple protocol puts the host system in control of the PD32 and
supports only three functions: reading
PD32 memory, writing PD32 memory, and starting program execution. This is handled with a 6-byte packet. Request type (1 byte)
Length (2 bytes)
Address of data (3 bytes)
By Dave Rand and George Scolaro
72 Longfellow St. Thousand Oaks CA 91360
The request type must be (R)ead, (W)rite, or (E)xecute. The length field tells the PD32 how much data to read or write. The address field tells the PD32 where in memory to get or put the data. With this simple protocol, it’s easy to do diagnostic programs from the PC side since the PC is the master and the PD32 is the slave. Figure 1 shows a sample of this proto- col. .
To let the other side know that data will be coming, the transmitting side ‘always asserts the other system’s
Figure 1 - Host-PD32 Communications Protocol #1
PC PD32
<reset> <intPC> 0x00
<int32>
*R*,1000,0
<int32>
[data]
<int32>
*R*,1000, 1000
<int32>
{data]
<int32>
<W>,100,4000 <intPC> {data]
<int32>
<E>,0,0
Comments
PC issues a reset (hardware signal) PD32 issues an interrupt
and sends the ‘all ok’ signal
PC issues an interrupt
and tells the PD32 to read 1000 bytes
into address zero PC issues an interrupt and tells the PD32 to read 1000 setes
into address 1000
PC issues and interrupt |
and tells the PD32 to write 1000 bytes PD32 issues and interrupt
and writes the data back to the PC
PC issues and interrupt
and tells PD32 to execute the program
Figure 2 - Host-PD32 Communications Protocol #2
straddr a “Hello, world! \r\n"
PC —séBD32- | <intPC>.
<int32> <R>,0,sarc,dst, 15 <intPC>
[Hello, world! \r\n]
. <int32> <C>,20
‘W',20,straddr,0,15
Comments.
PD32 issues interrupt
PD32 sends RPB to PC
PC issues interrupt
PC asks for data from straddr PD32 issues interrupt
PD32 sends data across
PC prints the string
PC issues interrupt
PC sends completion code
18
MICRO CORNUCOPIA, #32, Oct-Nov 1986 -
hardware interrupt line. This gives the
receiving computer plenty of time to load up registers and drop into the appropriate loops. This protocol as- ‘sumes nothing but memory, and fur- ther assumes that the PC is always the master. For these reasons (plus a few ‘more), once UNIX is running, we switch toa different proteol
Protocol #2 The multi-channel protocol (MCP) “was designed to give UNIX the best possible interface. Because it’s an op- erating system, UNIX expects to see , disks, printers, and consoles. It does . NOT expect to see a single 500K/ second channel! Therefore, we gave UNIX an interface with a very straight-
forward protocol designed to have low overhead and still provide maximum |
flexibility.
To initiate a request, a 20-byte Re- _ quest Parameter Block (RPB) is passed, _ the format of which is below:
Offset Contents 0 Request type (R/W/T)
1 Device ID (0-255) 2-5 Source address
6-9 Destination address 10-13 Block count
44217 Data 1 18-19 Data 2
The RPB supplies enough informa- tion to allow a channel to be set up for a Read or Write operation. The Device _ ID specifies the channel and is as- signed in the following way:
Device ID Use 0
Memory only 149 Logical disk drives 10-19 - Physioal disk drives 20-29 Console drivers 30-49 Reserved 50-59 printer drivers 60-127 Available 128 IOCTL on device | 129-254 Reserved for system use 255 Terminate
| The grouping of like devices alkowis _ UNIX to use a single code fragment in
(continued next page)
speeds of BDS C; are the fastest avail ble, even
(especially!) on floppy- -based systems lust ask
any user! With 15,000 +: package
fo 1979, there are lots of users ...
New! Ed Reams s RED text editor has been’. -. \jntegrated into the package, making. BDS ca a * truly complete, self- contained: C development system.
Powerful original features: CDB symbolic
Complete i asin price: $150. All soft-sectored-disk formats, | oe CP/M, available off-the-shelf: Shipping: free, by.
UPS, within USA for prepaid orders. Canada: $5. Other: $25. VISA, MC, COD, rush orders accepted.
:DSofiiware, line. :
BD Software, Inc.
P.0 Box 2368 Cambridge MA 02238. 617 * 576 ¢ 3828
MICRO CORNUCOPIA, #32, Oct-Nov 1986
PD32: THE SOFTWARE
x i
(continued from page 19)
Figure 3 - This is a sample of the interface activity during UNIX load. The sample starts on the 73rd line, continues for 52 lines, and is shown to give readers a taste of UNIX code. The complete activity list Is available on the Micro C bulletin board.
. a device driver to service many, physi- "cal devices.
There must also be a way of telling when an operation is complete, since
“ transmitting the RPB does not com- prise the whole transaction! The Com- pletion Parameter Block (CPB) sent by the PC accomplishes this. Below is the
20 -
MICRO CORNUCOPIA, #32, Oct-Nov 1986
_ format of the CPB: : rt=W id= 20 src= 3278 dst= _ % 2 rt=W id= 20 src= 3278 dst= Offset Contents : rt=I id= 1 src= 2de90 dst= 0. Completion type (C) . : rt=I id= 2 sre= 2defl dst= ‘ raciians oe : ot id= 1 src= 00 dst= eb % s rt=R id= 1 sre= 00 dst= 47400 Mise. MEE : rtsR id= 1 src= 800 dst= 47400 14-17 Data 1 : rt=R id= 1 sre= 14000 dst= 47400 18~19 Completion status : rt=R id= 1 sre= 3400 dst= 47400 (0-ok, nz-failed) 3: rt=R id= 1 sre=20cc00 dst= 47400 . : rt=R id= 1 sre= 1800 dst= 47400 To write to the console, for example, : rtsR id= 1 heal tono dst= 47400 | st the request pe to the D1 Barteria _ 20, the’ source address to the address : rtsR id= 1 sres126c00 dst= 47400 “. of the string we want to print, and the : rt=R id= 1 sre=127000 dst= 47400 . length to the length of the string. At : rt=R id= 1 sre=127400 dst= 47400 « - this point, transmitting the RPB to the : rt=R id= 1 sre=12c800 dst= 47400 PC will cause the string to be printed, 2 rt=R id= 1 sre=12cc00 dst= 47400 -- then a CPB to be transmitted back to : rt=R id= 1 sre=12d000 dst= 47400 "the PD32. See Figure 2. : rt=R id= 1 sre=12d400 dst= 47400 A similar méthod is used for all : ae a eros lennon date ae s rts = = = other devices, including disk 1/0. rteR id= 1 sre=t2b000 dste 47400 Watching UNIX come up via this : rt=R id= 1 sre=12b400 dst= 47400 protocol is interesting, however. The : rtsR id= 1 src=12b800 dst= 47400 first 52 lines (of anything interesting) s rt=R id= 1 sre=12be00 dst= 47400 are reproduced in Figure 3. The whole 2 rt=R id= 1 sre=127800 dst= 47400 thing is available on the Micro C * rtsR id= 1 sre=127c00 dst= 47400 bulletin board (503) 382-7643. : rt=R id= 1 src=128000 dst= 47400 ' : rt=R id= 1 sre=128400 dst= 47400 re : rtsR id= 1 sro=12a800 dst= 47400 Note: Dave Rand is maintaining the s rt=R id= 1 src=12a400 dst= 47400 copyright on the software and is restricting : rt=R id= 1 sre= c00 dst= 47400 - copying to small-quantity, non-commercial s rt=R id= 1 srce=129800 dst= 47400 ~. use. Any commercial production of this : a ve sane ia ane aie mush Derby. Heenee through: Dave : rtsR id= 1 sre=12cl00 dst= 47400 s rt=sR id= 1 sre=37f400 dst= 47400 : rt=R id= 1 sre=128800 dst= 47400 : rt=R id= 1 sre=129000 dst= 47400 = | : : rtsR id= 1 src=129400 dst= 47400 = . RPB: rt=R id= 1 sre=12c000 dst= 47400 = oo... , SE | 2 rt=R id= 1 srce=386c00 dst= 47400 = a ; a? : rt=R id= 1 sre= 1c00 dst= 47400 = cae | ee Be i s rt=R id= 1 src=20b000 dst= 47400 = oe Oe ie A . : rt=R id= 1 sre=20c400 dst= 47400 = ; oe : rt=W id= 20 src= 20136 dst= 0 = 8 | . : rt=W id= 20 src= 20136 dst= 0 = 18 .. . ‘i — : rt=R id= 1 src= 14c00 dst= 47400 - - a4 ne : rt=R id= 1 srce=10a400 dst= 47400 cnt= 1024 a a eee : rt=R id= 1 src= 4c00 dst= 47400 = : a
— MONITORS —
15” ELECTROHOME HI-RES ~—COMPOSITE INPUT
—1000 LINE RESOLUTION —GREEN PHOSPHOR —ATTRACTIVE CASE
15”” WELLS GARDENER —24 VDC
—3 LINE TTL INPUT —GREEN PHOSPHOR —OPEN FRAME
12” SAMPO
—AMBER, 3 LINE TTL INPUT
—ATTRACTIVE WHITE CASE
—WORKS ON IBM FOR TEXT APPLICATIONS! —HIGH CONTRAST
9”” AUDIOTRONICS —3 LINE TTL INPUT —OPEN FRAME
5” ZENITH
—3 LINE TTL INPUT —GREEN PHOSPHOR —OPEN FRAME
5’”” MOTOROLA —3 LINE TTL INPUT —BLACK & WHITE —OPEN FRAME
SYNC-SEPARATOR KIT USE WITH ANY 3 LINE TTL MONITOR ALLOWS YOU TO RUN 3 LINE MONITOR FROM A COMPOSITE VIDEO SOURCE!
$12.95
— POWER SUPPLIES —
VARIABLE 0-10 VOLTS DC $375.00 -—0-200 AMPS _ .
—VOLTAGE AND CURRENT METERS
—SINGLE PHASE AC INPUT
—MADE BY SCR
MEMOREX MULTI VOLTAGE. +5v6.5A -5.2v4A t15v5A
LAMBDA LXS SERIES +5v 27.5A +5v 90A
— FLOPPY DISK DRIVES —
3.5 EPSON SMD 100 —DOUBLE SIDED —IBM LAPTOP COMPATIBLE —AMIGA COMPATIBLE
— 1 MB UNFORMATTED
5%"? OKIDATA % HEIGHT —DOUBLE SIDED, 48TPI —IBM PC/XT COMPATIBLE
5%” TEC FB503 —DOUBLE SIDED 48TPI —IBM PC/XT COMPATIBLE —QUIET!
5%"? TEC FB504 —DOUBLE SIDED 96TPI —720 KB FORMATTED!
—RUNS ON IBM PC/XT WITH J FORMAT. SOFT-
SPECIAL OF THE MONTH!
EPROM PROGRAMMER FOR IBM PC
$109.00
¢ INTERNAL CARD WITH EXTERNAL ZIF POD
¢ PROGRAMS 2716 UP TO 27512 :
¢ SOFTWARE INCLUDED
WARE OR DOS 3.2 (NOT SUPPLIED)
SHUGART SA801R na —SINGLE SIDED, DOUBLED DENSITY —600 KB FORMATTED CAPACITY —NEW, NOT RECONDITIONED!
J FORMAT SOFTWARE PACKAGE. . $43.95 ALLOWS USE OF 96TPi DRIVE ON IBM PC/XT 720 KB CAPACITY
. $179.00
— HARD DISK DRIVES —
3.5 MMI 10 MB $249.95 —10 MB HALF HEIGHT
—ST 212/412 COMPATIBLE
—SHOCK MOUNTED IN 5%" FRAME
—1 YEAR GUARANTEE
—GREAT FOR PORTABLE!
HIGHER CAPACITY DRIVES AVAILABLE CALL!!
— HARD DISK CONTROLLERS —
XEBEC S1410A REQUIRES HOST ADAPTOR
OMT! 5510 PC/XT CONTROLLER. .
—SHORT SLOT, LOW POWER CARD
—COMES WITH CONFIGURABLE BIOS AND SOFTWARE TO HANDLE ANY 5%" HARD DISK
—COMES WITH CABLES
PACKAGE DEAL FOR IBM PC/XT: MMI OMTI CONTROLLER, CABLES $375.00
MAXWELL DESOLDERING STATION e SELF-CONTAINED (INTERNAL VACUUM PUMP) e FOOTSWITCH ¢ VARIABLE TEMP/VAC LEVEL ¢ 10 SPARE TIPS (Extra tips not available)
$149.95
WE STOCK A FULL LINE
OF IBM COMPATIBLE PRODUCTS PLEASE CALL FOR LATEST PRICES
1 YEAR GUARANTEE ON IBM COMPATIBLES
. $139.95
HALTED SPECIALTIES co., inc.
MA
" TERMS: Minimum order $10.00. California residents add
827 E. EVELYN AVE., SUNNYVALE, CA 94086
IL ORDERS CALL: (408) 732-1573
3 CONVENIENT LOCATIONS “tia shart HSC Electronic Supply of Santa Rosa HSC Electronic Supply — saturday 9:00-5:00 6819 S. Santa Rosa Ave. 5549 Hemlock Street Cotati, CA Sacramento, CA WE SHIP (707) 792-2357 (916) 338-2545 C.0.D.
7% sales tax. Prepaid orders sent freight C.0.D. or call for charges, shipping will be added to credit card and C.0.D.
orders. Prepaid orders over $100.00 use money order or certified check. Please do not send cash. Some items limited to stock on hand. Prices subject to change.
PALs — What They Are And When To Use Them
My experience with PALs, so far, has been mixed. They are the answer to a designer’s prayers and the bane of every independent repairman.
Dave and George used PALs in the design of the PD32. The following is — as intelligible a look at PALs and GALs (this is now a family magazine) as any we've seen. And, for those of you waiting for me to say, “I never met a PAL I didn’t like, ’ hae | oe you're satisfied.
AL (Programmable Array Logic) is a term used to-describe a -
family of devices first introduced
by MMI and now second-sourced by
several companies including Texas In- . struments, National Semiconductor, and Advanced Micro Devices. PALs are a blessing for the hardware design-
er and at the same time a possible: curse for the purchaser of a system.
that has PALs in it.
Drawbacks Of PALs
— If a manufacturer goes out of business and does not release the PAL equations, then replacing faulty PALs may be impossible.
— PALs have security fuses that, once blown, make it very difficult to find out how the PAL was =PEO- grammed.
- — PALs tend to hide certain sections
of a design that if not documented. make it very difficult to understand
the design.
— PALs are difficult to program if you don’t have access to relatively expensive programmers.
On The Positive Side
— PALs are a cheap, yet moderately secure, way to customize circuitry so it’s not easily duplicated by a competi- tor.
-— PALs help speed design and help reduce parts count.
PAL compiler.
-— PALs provide speed for critical circuit areas. PALs are currently avail- able with a maximum of 12nsec from
‘input to output (propagation delay).
PALs (at least bipolar PALs) are
programmed by ‘‘blowing’’ fuses in a
fixed array. You can select which fuses to blow to implement a logical func- tion by studying the switching array,
_or.by using a PAL language.
Languages such as PALASM (from MMI) and ABEL (from Data I/O) let
‘you specify logic functions in a high level language. The PAL language is
then translated to a fuse buffer by the There are also PAL steillatore which let you test the de-
‘sign. |
You sively the test vectors (a list of
expected outputs for specified inputs)
to test the software equation. The test vectors can also be used to test a
. programmed PAL. upeteware can have
bugs too).
Which PAL Should You Use?
Some programmers have PALASM.
built in, such as the Storey Systems PAL programmer (one. of the more. inexpensive units around). Choosing the PAL type is initially a difficult step for an inexperienced designer to take, so here are a few hints: a
— Determine how many output sig- nals you will need. Most PALs can have output pins reassigned as a so this is the first step. _
— Determine the number of output
pins that need to be latched.. i Determine the number: of output pins. that must also be used as terms within the PAL. Some PALs do not allow all euipae pins to. be Meee: as feedback terms. .
— Determine if outputs must be tristate.. Not all PALs suppor. tristate outputs.
—-Determine the number of init pins that are required ote feed- back terms).
.— Finally, based on a PAL that has
By Dave Rand and George Scolaro
72 Longfellow St. Thousand Oaks CA 91360
satisfied the above requirements, com- mence writing the equations. PALs allow only so many “OR’ed terms, so the equations will. also help in decid- ing which PAL to use.
Of course, it’s ‘normal. to have a requirement that cannot be solved with a single PAL. Also, certain types of problems cannot inherently be
_ solved by PALs. PALs implement sum
of products logic by using a pro- grammable AND array whose outputs feed a fixed OR array. Therefore, PALs can be used only when the problem can be fit into the size of the OR array (which is fixed for different PAL types). 7
Certain designs require the use’ ot bipolar PROMs, especially when ..the number of OR terms is relatively large (more than about eight). On the other hand, PALs can be used in : many situations where PROMs cannot, such as where a device with programmable tae or registers is eeduireds
How To Use Your PAL
Because there are so many types of PALs, .an example that shows all the uses is impossible. Instead, let’s look at a simple but typical use of a PAL — the PALI6L8. It has eight outputs, tristating on all outputs, speed-from 12nsec: to 35nsec, and various power ratings (dependent on speed). Our example (shown in Figure 1) is written in PALASM since. that’s one of the most common PAL languages. A
This example shows most . ofthe features of a typical PAL file. The equations may be entered :in any ‘ot- der. PALASM uses the pin list (in order from pin 1 to pin 20) on lines 5 and 6:to assign mnemonic names ‘to physical pins. Line 1 specifies the PAL type so that PALASM can check the validity of pin assignments ae ue tion syntax.
In line 8 the IF (SEL) syntax epectes that this output is to be in tristate if SEL is not valid (high): The ‘*’ sepa-
22 MICRO CORNUCOPIA, #32, Oct-Nov 1986
rating terms in line 8 indicates logical ‘AND’ ing (product term), and the ‘/’ indicates negation of the term. Thus if SEL is true (low on the /SEL pin), then DO will be true (low) if FLAG1 is true (high) or if FLAG2 is true (low).
The ‘+’ on line 9 indicates logical ‘OR’ ing of the product terms. The SEL term on line 8 shows an output being used as an input term. The IF (VCC) syntax on line 11 means that the output, SEL in this case, is never to be tristated.
Line 16 shows that the tristate con- trol may be a product term (never a
sum of products). Since only a single . product term may be used to control |
tristate signal, complicated tristate equations must be constructed as in line 8 and then used as a term.
The rest of the lines (up to 31) should be studied based on the infor- mation presented above. Lines 31 to 37 are the test vectors for both simulation and functional testing of the PAL equations. The pin names that are to be tested start after line 31 and may extend to several lines as necessary. -The ‘L’ means low, ‘H’ means high, and ‘X’ means don’t care. Any input that has an ‘X’ will be cycled low and high during the simulation and func- tional test to insure that the output signal is not influenced. Output sig- nals with an ‘X’ will be ignored.
After line 38, everything is treated as comment and is typically used by the PAL designer as notes.
Any pin on a PAL (input or output) that is not required may be labeled ‘NC.’ Note that in this example we assigned an input pin the mnemonic AEN but didn’t use it in the equa- tions. PALASM ignores this pin as it ignores NC pins. The spare pins on a PAL may either be left floating or connected to signals that may later be incorporated into the PAL equations. —
Needless to say, PALs are only the beginning of user programmable logic. With gate arrays, silicon compilers,
Figure 1 - Using The PALI6L8 With PALASM
PAL16L8
OW ONAU FWP =
IF (SEL) DO = FLAG1 * /A0 ' « FLAG2 ® AO 10
2ND LINE IS USUALLY THE USER'S PART NUMBER, NAME AND DATE 3RD LINE IS THE DEVICE APPLICATION NAME
4TH LINE IS THE USER'S COMPANY NAME, CITY AND STATE
/RD /WR AO Ai A2 A3 AEN FLAG1 /FLAG2 GND
/D0 /OUT1 /OUT2 /OUT3 /OUT4 /OUT5 /SEL NC NC VCC
11 IF (VCC) SEL = /A0 © 7a # /A2 * /A3 * RD 12
+ AO * /A1 * /A2 * /A3 * RD
13 | 3 14 IF (VCC) OUTI = /AO * A1 ® /A2 ® /A3 * RD 15
16 IF (AO ® a1 *® /A2 ® /a3 # 17 |
18 IF (VCC) OUT3 = /AO ® /A1
19 + /AO * /A1 20 21
IF (VCC) OUT4 * /A1
* /A1
3 . IF (VCC) OUTS Al
FUNCTION TABLE |
RD) OUT2 = VCC
# a2 ® /A3 ® RD * A2 * /A3 * WR
# ao # /A3 ® RD A2 * /A3 * WR
A2 ® /A3 ® RD A2 ® /A3 * WR A2 * /A3 * RD A2 * /A3 * WR ;COMMENTS HAVE 3 SEMICOLONS
AO Al A2 A3 /RD /WR /DO /SEL FLAG1 /FLAG2
LLLL UL Xx Xx LLLL UL XxX Lb
38 DESCRIPTION
L x x L H
39 JUST ABOUT ANYTHING YOU WANT TO SAY ABOUT
40 THE PAL GOES HERE
and standard cell technology, design- ers already can produce many compact custom devices.
Make Way For GALs
Recently Lattice Semiconductor in- troduced a new family of PALs called GALs (generic array logic). GALs offer the same features of PALs with the advantage of being electrically erasa- ble. (Editor’s note: I asked Sandy about this and she said GALs have more advantages than that.)
The other feature of GALs, the ge- neric part, is that most of the PAL family may be replaced by either a GAL16V8 or GAL20V8 (20- and 24-pin
respectively). GALs have a user pro- grammable architecture word that specifies which PAL they’re supposed to emulate.
A designer can use GALs to develop a working design without spending a small fortune on one-time-only PALs. The current pricing of GALs is very competitive with PALs, and since they
are functionally interchangeable, either
may be used in the final design.
MICRO CORNUCOPIA, #32, Oct-Nov 1986 23
WHO WE ARE
Echelon is a unique company, oriented exclusively toward your CP/M-compatible computer. Echelon offers top quality software at extremely low prices; our customers are overwhelmed at the amount of software they receive when buying our products. For example, the Z-Com product comes with approximately 80 utility programs; and our TERM Il communications package runs to a full megabyte of files. This is real value for your software dollar.
ZCPR3
Echelon is famous for our operating systems products. ZCPR3, our CP/M enhancement, was written by a software professional who wanted to add features normally found in minicomputer and mainframe operating systems to his home computer. He succeeded wonderfully, and ZCPR3 has become the environment of choice for "power" CP/M users.
Multiple Commands per Line
You can easily use multiple commands per line under ZCPR3. Simply separate the individual commands with semicolons. For example, "PIP B:=A:*.TXT;STAT B:”*.*" will copy files and then show you the STAT results.
User-Programmed menu systems ZCPR3 comes with three different menu systems that you can use to create custom menu-driven "front ends” for your computer. This is especially useful for setting up menus for your spouse or co-workers to use the computer, as they never have to see the A> prompt. All they have to do is press a single key to run any single or multiple CP/M programs, and when the task is done, control is automatically returned to the menu (ordinary CP/M menu programs cannot do this).
Extended Command Processing When you type a command under CP/M, it will only look for the program in the current drive . and user area. ZCPR3 gives you more flexibility by additionally searching other disks and user . areas when resolving commands. You have full control of this function, called the PATH. This is ' probably the one element of ZCPR3 that is missed most if you return to "ordinary" CP/M.
Also, ZCPR3 supports the capability of grouping all your commonly used utility programs into a library file (*.LBR). This is great for systems with a small number of directory entries per disk, as the library file only uses one entry. It also has the advantage of reducing disk space requirements for a given set of programs, allowing you to put more programs on a disk. And the programs in the library file are invokable from the commandline just like any other program notin the library.
eeicisn: Inc.
885 N. San Antonio Road, Los Altos, CA 94022 USA 415/948-3820 (order line and tech support)
NAME ADDRESS
TELEPHONE [1] REQUESTING LITERATURE
DISK FORMAT
Other Features
There's much more to ZCPR3, like named directories, online help system, etc., but it can't be described on one page. If you would like more information, consider the books shown below.
Z-SYSTEM
Perhaps the only shortcoming of ZCPR3 is that itis not a complete replacement for CP/M. This is what the Z-System does. The Z-System. contains ZCPR3 and an additional module, ZRDOS, and is a complete replacement for CP/M. ZRDOS adds even more utility programs, and has the nice feature of no need to warm boot (C) after changing a disk. Hard disk users can take advantage of ZRDOS “archive” status file handling to make incremental backup fast and easy. Because ZRDOS is written to take full advantage of the Z80, it executes faster than ordinary CP/M and can improve your system's performance by up to 10%.
INSTALLING ZCPR3/Z-SYSTEM
Echelon offers ZCPR3/Z-System in many different forms. For $44 you get the complete source code to ZCPR3 and the installation files. However, this takes some experience with assembly language programming to get running, as you must perform the installation yourself.
For users who are not qualified in assembly language programming, Echelon offers our “auto-install" products. Z-Com is our 100% complete Z-System which even a monkey can install, because it installs itself. Z-Com includes many interesting utility programs, like UNERASE, MENU, VFILER, and much more.
Echelon also offers “bootable” disks for some CP/M computers, which require absolutely no installation, and are capable of reconfiguration to change ZCPR3's memory requirements. At present, only Kaypro conver have this option available.
BOOKS We sometimes joke around the office that we are really in the business of publishing, not selling software. We have books. Lots of books. We have to have lots of books, considering how powerful our software is and the large quantity of different packages we offer. Here are our best sellers:
ZCPR3: The Manual
This is the "bible" for the ZCPR3 user. An exhaustive technical reference, bound softcover, 350 pages. Contains descriptions of each ZCPR3 utility program, a detailed discussion about the innards of ZCPR3, anda full installation manual for those doing their own installation. You could order it from B. Dalton, but why? Get it from us.
ORDER FORM
Payment to be made by: O Cash -
O Check
O Money Order
O UPS COD
0 Mastercard/Visa:
# |.
Exp. Date
California residents add 7% sales tax. Add $4.00 shipping/handling.
24 MICRO CORNUCOPIA, #32, Oct-Nov 1986
Z sets you free!
The Z-System User's Guide
For those who are not technically inclined. This is an excellent tutorial-style manual filled with examples of how to use the power of ZCPR3/ Z-System most effectively, written by two highly experienced Z users. (One useris a lawyer, the other a writer; this proves that anyone can use Z and benefit from it.)
2ZCPR3:.The Libraries
The extensive documentation for the libraries of ZCPR3, SYSLIB, Z3LIB, and VLIB. A must for any serious user of these programming tools. Loose-leaf notebook style; easy to work with as it will lay flat on your desk.
THERE'S MORE
We couldn't fit all Echelon has to offer ona single page (you see how small this type is). We haven't begun to talk about the many additional software packages and publications we offer. Send in the order form below and just check the "Requesting Literature" box for more information.
Item Name Price 1. ZCPR3 Core Installation Package $44.00 (3 disks)* 2 ZCPR3 Utilities Package $89.00 (9 disks) 3 2Z3-Dot-Com (Auto-Install ZCPR3) $99.00 (6 disks)* 4 2Z3-Dot-Com "Bare Minimum” $49.95 (1 disk) 5 2Z-Com (Auto-Instal! Z-System) $119.00 (7 disks)* 6 Z-Com "Bare Minimum” $69.95 (2 disks) 12 PUBLIC ZRDOS Plus (by itself) $59.50 (1 disk) 13 Kaypro Z-System :
Bootable Disk $69.95 (3 disks) 20 ZAS/ZLINK Macro Assembler .
and Linker $69.00 (1 disk) 21 ZDM Debugger for 8080/Z80/HD64180
CPU's $50.00 (1 disk) 22 Translators for Assembler
Source Code ; $51.00 (1 disk) 23 REVAS3/4 Disassembler - $90.00 (1 disk) 24 Special —
Items 20 through 23 $150.00 (4 disks) © 25 DSD-80 Full Screen
Debugger $129.95 (1 disk) 27 The Libraries. SYSLIB, Z3LIB,
and VLIB $69.00 (8 disks) 28 Graphics and Windows
Libraries $49.00 (1 disk) 29 Special —
items 27, 28, and 82 40 Input/Output Recorder
$129.00 (9 disks)
IOP (I/OR) $39.95 (1 disk) 41 Background Printer IOP
(BPrinter) $39.95 (1 disk) 42 Programmable Key lOP. (PKey) $39.95 (1 disk) 43 Special - :
ll ey through 42 $89.95 (3 disks) 60 DISCA :
Disk easton Sion. $39.99 (1 disk) 61 TER
Eonineaics System $99.00 (6 disks) 64 Z-Msg Message Handling :
System $99.00 (1 disk) 81 ZCPR3: The Manual
bound, 350 pages $19.95 82 ZCPR3: The Libraries
310 pages _ $29.95 83 Z-NEWS Newsletter,
1 yr subsciption $24.00 84 ZCPR3 and IOPs 50 pages $9.95 85 ZRDOS Programmers's
Manual 35 pages. $8.95 88 Z-System User's Guide - 80 page tutorial. - $14.95
“Includes ZCPR3: The Manual ITEM PRICE
Subtotal
Sales Tax Shipping/Handling Total
nf ‘DD /N/
A 5 > LL IDLY
transportable box for
It even has a 30 day money back guarantee!
More Hardware,
Less Money!
2 double density disk drives
64K memory
80 CPS dot matrix printer
80 character x 25 line amber screen 300 Baud modem
4 expansion ports (2 @ RS 232, 1 @ parallel, 1 @ IEEE 488)
Phone toll free .
out of CA 800-222-5401 inCA 800-222-5403 right now to order your Actrix.
More Software, No More Money
CP/M 2.2 operating system
C Basic and M Basic
Perfect Writer word processor Perfect Speller spelling checker Perfect Calc spread sheet Perfect Filer
P Font
Telecommunications program
160 B Great Oaks Blvd.
San Jose,CA95119 ggg (SC VISA ‘MasterCard
‘MICRO CORNUCOPIA, #32, Oct-Nov 1986 25
Taking C Into Assembly Language’s Domain
Ron takes on resident programs (or temporary shell programs) this time. It’s amazing what he can do with a C compiler and a couple of library func- tions.
ast fall the ‘‘in thing’’ was resi- Le programs. The MS/PC-
DOS community had just discovered the joys of tinkering with the operating system, especially using Turbo Pascal .COM files, and legions of how-to code marched across the pages of PC magazines. (Oh, the vir- tues of interrupt-snatching.)
Recently, I found myself stumbling back to residency to solve some very practical problems. Since the tech- niques involve potentials of C that are seldom discussed, perhaps a reminder or two might speed up some of your programming.
Beyond The Batch File
I’ve been hacking out some business software recently, mostly (I'll admit) in Pascal. Despite all its virtues, C doesn’t handle random files very easi- ly, and the El] Cheapo C I own doesn’t offer a genuine ‘‘double’’ float type. Even for government work, I need something better than 32 bits.
Anyhow, when it came time to tie programs together — my own efforts and those of the Lotus Development Corporation — I first turned to batch files.
To someone used to the limitations of CP/M’s .SUB files, the MS-DOS batch utilities are like a dream. For automating dull and repetitive com- ' mand line entries, such as those need- ed to run a C compiler and linker, they’re perfect. For a salable package, however, they have problems:
- 1. Since .BAT files are just text files, they’re open to ‘‘improvements’’ from folks who think they know what they’re doing. I have better things to
do than troubleshoot batch files for businessmen who shouldn’t fiddle with PCs. Also, to justify our fees we computer types need to preserve what the sixteenth and seventeenth century Englishmen would have termed our “‘mystery.’’ What they can’t see must be impressive.
2. The functions available for con- trolling program flow are very limited and agonizingly slow. Batch file ‘‘for’’ and “‘if’’ utilities make one think fond- ly of BASIC.
3. Batch files offer little or no control over the operating environment for the programs they call. The conditions you start with will be the conditions throughout. .
4. Batch files cannot call other batch files and then recover control of the program flow. Turn the corner and there’s no going back.
Homegrown C-Shells
Several weeks of frustration drove me to dig out two C library functions, ‘“‘system()’’ and ‘‘exec().’’ Though
their exact configurations may vary
Figure 1 - Simple C Shell eet)
RGNGEN
By Ron Miller
1157 Ellison Dr. Pensacola FL 32503
from this compiler to that, they are available in every package I’ve seen.
On MS-DOS machines they seem to
be domesticated versions of the DOS 2.0+ 4BH function call, which lets one program execute another by a sort of stack-the-pancakes effect: the subpro- gram is loaded (for-system calls, that subprogram is COMMAND.COM) in the first free memory space above the calling program. Control is then pass- ed to the subprogram, which does its thing and then returns control to the calling program. - (While retyping this column I finally opened up Micro C’s issue #31 and saw Laine Stump’s discussion thereon. Is that what they mean by parallel processing? For what it’s worth, I too think Turkey is the Land of heart’s desire. Are there still red pears at the Yalava market, Mr. Stump? How about the Doner kebab in Bursa?)
If all this reminds you of the discus- sions of resident programs you read last fall, it should. All that’s different with a DOS 4BH call is that control passes directly back to the “‘lower’’ or
system("copy c:\budget\taxes.wk c:\lotus");
system("cd \lotus"); exec("123.exe","");
system("copy c:\lotus\taxes.wk c:\budget");
system("del c:\lotus\taxes.wk");
Figure 2 - Copy Routine For Invalid Filenames
filesend(source, target ) char *source. *target; int fout, fin; char buffer[BUFSIZE];
/* set BUFSIZE as big as you'd like, for speed */
if( (foutzopen(source,0)) == -1) error(); /#or however you wish to #/
if( (finscreat(target,0) == -1) error();
/*® handle errors */
while( write(fin, buffer, read(fout, buffer, BUFSIZE)) == BUFSIZE);
sli mimi iimdeaia ceinmerseeioioeliedagiceeinitiimeereeemeemmniceeions 26 MICRO CORNUCOPIA, #32, Oct-Nov 1986
resident program after the ‘‘higher’’ program has finished, and the resident program removes itself from memory with an interrupt 20H call when it’s finished. No need to reboot the system to get rid of an unwanted patch to the operating system. Function 4BH is a shell utility, and the shell goes away when it’s no longer needed.
At the simplest level, a C-shell mere- ly offers a memory-expensive substi- tute for a batch file. For example, if you wanted to copy a file on the “C:\budget’’ directory to your Lotus directory and then call up the spread sheet (your own version 1A that can’t use subdirectories), and then transfer the file back home, you could just ' write the code shown in Figure 1.
Still, who would bother his compiler with such trivia? A sane person would use a batch file. But while you are in C you have all the power of the lan- guage. .
Suppose you wanted to keep other folks’ hands off your ‘‘taxes’’ file. If you owned Lotus 2, you could encode it with a password to keep your mother-in-law out of your records. Even without that, however, you could make your secrets hard to get to by storing them as ‘tax es.wk1’’ in the ‘‘budget’’ directory. Try typing that into a ‘‘copy’’ command.
Though no MS-DOS resident com- mand can handle the blank space in
“tax es.wk1,’’ both C and assembly language can. handle it without a blink. For the two copy routines above, let’s substitute calls to a file read and write function (see Figure 2). _ Just include a filesend(‘‘c:\bud- get\tax es.wks’’, ‘‘c:\budget\tax- es.wks’’) and a filesend(‘‘c: \lotus\ tax- es.wks’’,’‘c:\budget\tax es.wks’’) in your C program, and you're safe. Well, safe from your mother-in-law, but not from a hot-shot kid who knows DEBUG. As we used to say back in Texas, ‘‘There haint no hoss that kaint be rode, and there haint no code that kaint be busted.’’ But the casual snooper can enter ‘‘copy tax es.wks...’’ or ‘‘/fstax es’’ all day with no success.
Nor need one stop with name changes and transfers. Once launched
(continued next page)
Figure 3 - An On Screen Clock
3 Module for masm. DeSmet fans could go in-line with this. CODE — SEGMENT PUBLIC BYTE ASSUME CS:CODE ,DS:DATA PUBLIC —ourint,_putds savds DW ? ;storage for DS —puts: MOV CS:savds,DS ;storing DS in code segment RET —ourint: PUSH AX sheck=-save everything in sight PUSH BX sbut let's use. the subprogram's stack PUSH cx PUSH DX PUSH DI PUSH SI PUSH ES PUSH DS PUSH BP MOV DS, CS:savds MOV ES, CS:savds CALL _procss 3; calling C-code POP BP POP ' DS srestore everything again POP ES POP sI POP DI POP Dx POP cx POP BX POP AX
IRET sand back to subprogram VALLI a
/* the C module #/
finclude <regs.h > /* header for interrupt structures */ #define clkint Ox1c /* clock interrupt %/ #define timeaddr 0x46C /* ticks past midnight */ #define scrseg 0xb800 /* video ram segment--you could test for this &/ #define offset 3840 /* position on screen = lower left corner */ extern unsigned _code,_data; /* obvious segment addresses */ unsigned us[2],them[2], hand, index, tick, hour, minute, second; char time[]=:
® \160 \160 \160:\160 \160 \160:\160 \160 \160 \160"; /#reverse video */ long midtick; WTITTIT UT
procss() = /# interrupt handler itself: called by assembly code*/ {
-if(tick++%9) return; else tick=0; /* look every half second */ peek(0,timeaddr, &midtick,4); /* get tick count from low memory */ hoursmidtick/65543; /* 65543 ticks/hour #/
midtick %= 65543;
minute = midtick/1092;
midtick $= 1092;
second = midtick/18;
time[2]=0x30+hour/10; /* stuffing array for poking into video ram.*/ time[4]=0x30+hour% 10; ; : time[8]=0x30+minute/10;
time[10]=0x30+minute%10;
time[14]=0x30+second/10;
time[ 16 ]=0x30+second%10;
poke(serseg, offset, time, 18); /# Who needs an operating system, anyway? #/
/HHKELERRESHRSHKRERE/
main(arge,argy) /# put compound command line in quotes as argument */ int arge; char *#argv;
int ourint(); /* declaring assembly language routine */ if(arge != 2){
puts(*USE: clock \"command_line\"\n"); exit(0);.
} putds(); /#assembly language routine for storing DS in CODE segment */ peek(0,clkint#4,,them, 4); /* preserve old interrupt */
us[0]sourint;
us[1]=_code; Si poke(0,clkint#4,us,4); /* insert our own handler */ system(argv[1]); /* pun applications program */ poke(0,clkint®4,them,4); /*nice children clean up after playing */
MICRO CORNUCOPIA, #32, Oct-Nov 1986 27
C'ING CLEARLY
pene from page 20
into this C- shell business, I ee that I could alter and restore Lotus configuration files to ensure that my files were treated as I jolly well want- ed them to be, while letting my client have his own setups before and after. Memory could be altered, flags set, ports written and read, files hidden _and unhidden, screen modes changed, resident modules called and erased.
If you can do it in C — and just what CAN'T you do in C? — it can be used to control the flow and access of a larger program. Only ethics and the haunting possibility that the power may go off in the middle of your best subversion, stands between you and total mastery of your (and everyone ‘else’s) programs.
Semi-Resident C
And then there are the interrupts. By altering and restoring the interrupt table down in low memory, your shell can control the operating system in ‘which commercial software works. This is, of course, the traditional prov- ince of resident programs. If the inter- rupt vectors are redirected toward part -of a shell program, you too have patched. the operating system, albeit ‘only temporarily, if. you restore the original interrupt table when you are finished.
The old game of grab-hold-of-the- keyboard-interrupt is of course an ob- vious choice. The possibilities are de- lightful. Suppose you wanted to let somebody examine a file in a commer-
Figure 4- Going All The Way
main(arge, argv) int arge; char *#argy;
int ourint(); char *malloc();
cial word processor but not alter it. A
‘bit of judicious interrupt 16H filtration,
and the ‘‘write file’’ commands are not available. And all without patching the word processor itself.
When that routine’s over, give them back their old interrupt 16H. Or seize the printer interrupt. I’ve used this trick to capture Lotus graphs in a binary file which can in turn be sent to the printer from my Kaypro (attached to my sole dot matrix printer). Anoth- er cable might have been simpler, but it was fun to see the Great Grey Lunchbox doing graphics.
To illustrate the technique, I’ll do something less mundane. I'll take over the clock interrupt and use the ticks to update an on-screen clock display ev- ery half second or so. Maybe you’d like to see a clock on the screen while running Word Perfect. Though this will require a smidgen of assembly language to save some registers, if we are careful with stack variables (i.e., avoid them like the plague) we can do
the real work in C. The whole pro-—
gram is given in Figure 3. Find a batch
_ file that can do that.
A Few Elaborations
1. It’s unnecessary to pass the clock interrupt beyond my program, because interrupt 1CH is a cul-de-sac. Things would be more complicated if I had captured the keyboard or printer inter- rupt.
2. A more elegant run of resident C code could set up a short stack in the data segment of the C module, so we wouldn’t have to declare all the varia-
unsigned topseg /* bottom of freeable memory #/
_. struct regs rr;
putds();
us[OJ=ourint; us[1]=_code; poke(0,clkint#4,us,4); topseg = rr. ax=0x3100; rr.dx=topseg + data - interrupt (0x21, érr);
1+ (unsigned)malloc(0)/0x10 ; /*get paragraph beundaiy*/ /* terminate but stay resident */
_code; /*program size, in paragraphs #
/* bye bye */
bles as statics. Unfortunately, some Cs — mine, for instance — use the DS register to address stack locations, too. It’s usually simpler to use the other guy’s stack. |
3. Since DOS is not reentrant, you're likely to freeze things up if you call a DOS or BIOS function from an interrupt. So I’m writing directly to the screen. In multitasking circles mine is what is called a ‘badly behaved program.”’ Frankly, I think lockups are even worse.
4, In some implementations, this
| program will gobble up 64K+ for one
little 7K semi-resident program. You can trim things down considerably if you’re willing to free up the extra memory with a DOS 4Ah call before the system() call. Just remember that if
-you chop off the data segment, pre-
vious stack variables — argv and argc, for example — are sent into the great beyond. There’s a reason why .COM files, which have no. stack segment, are almost always used for resident programs.
Fully Resident C But it doesn’t have to be that way. The code in Figure 3 can easily be
‘made permanently resident if the end- © ing of main() is changed just a tad.
Things are actually simpler. No need to save the old interrupt vector. Since malloc() returns the top of the static heap, I'll locate the first paragraph
‘boundary above my variables with a
fake allocation call and then terminate and stay resident.
Figure 4 shows the new version of main(). Just don’t try this if you plan to use automatic variables in your resident C code.
You can, of course, preserve the old stack segment in the code segment, leave room for a short stack, store the new stack registers... Oh well, you get the idea. Take it from me. Switching stacks isn’t much fun. I did it, but. only after some know-it-all told me that .EXE files wouldn’t work as resi- dent programs. (And if I can write resident programs in C, why not de- vice drivers in C?. I'll let you know.)
28 MICRO CORNUCOPIA, #32, Oct-Nov 1986
Nothing can improve your computer's productivity like a hard disk. HARD DISK SYSTEMS by Emerald Microware |
If you have been thinking about moving up toa hard drive, why wait any longer? We have everything you need from the host board to acomplete turn-key system. Runs on the Xerox, Kaypro, or almost ANY Z80 system.
HDS Host Board — The hardware you need to connect your computer to your hard disk controller board.
e Interfaces to the WD1002 controller board
¢ Plugs into the Z80 socket, no other wiring required
e Switch selectable I/O addressing
¢ Comes fully assembled and tested
THE WINCHESTER CONNECTION by MICROCode Consulting The most comprehensive hard disk software package that you can buy. e Works with one or two hard disks — 5 to 64 meg
¢ Menu operated install, no software to assemble
¢ Complete testing and error handling
e Warm boot from hard drive
¢ BIOS drivers install above or below CP/M, your option
e Allows custom partitioning and mixed drives types
¢ Includes manual, format, test, park, backup, and swap utilities
WD1002-05 HARD DISK CONTROLLER BOARD by Western Digital © 5 %" profile with standard power connector (+5 only required)
e 40 pin host interface
© Connects to ST506 compatible drives
© WD2797 floppy disk controller and interface on board
e Can control up to three hard drives and four 5 %” floppies
COMPLETE HARD DISK SUBSYSTEMS by Emerald Microware
e Hard disk subsystems with host, cables, software, hard drive, and cabi- nets with power supply. Fully tested and ready to go.
e Internal hard disk kits availble for Kaypro computers
© 10 and 20 meg units in stock, others by order
e Available for Kaypro, Xerox, Morrow, and others
10 Meg Hard Drive Subsystem ............ 0.0... c eee eee $745.00 20 Meg Hard Drive Subsystem ................0 eee eee $940.00 . Host board with software ......... 0... cece eee eee $ 89.00 WD1002-05 Controller Board ............. 0. cece ee eee $185.00
20 Meg Kaypro Internal kit w/KayPLUS rom ....... vee + $995.00
ACCESSORIES FOR THE KAYPRO AND THE XEROX 820
Xerox 820-2 Main Computer Board ..................-. $ 95.00 Xerox 820-2 Floppy Controller board .................4. $ 75.00 Xerox 820-2 Main board w/Floppy Controller.............. $150.00 Xerox 5 ¥%4" Drive cabinet weable.................-00-- $. 25.00 Xerox internal video cable ............ 0.02 cee eee eee $ 800 Board mount power connector.....:...... 00s eee ee eee $ 2.50 Paralle! ASCII keyboard (not standard Xerox sly Grasitans, atten $ 15.00 Dual 5 4” Disk Drives — DSDD 48 TPI, in cabinet
with standard Xerox cable........ any Ud acthausnsteteun aoits &
UNIFOIM . ooo c ec ccc ccc cecceccccuucuccecceeuuecees $ 6495 UniDOS for IBM............. Ree ean ee a: $ 64.95
We guarantee satisfaction on all of our products or your money back. Include $4.00 shipping and handling, $7.00 for COD, call for Blue Label charges. Phone hours: 8:30am to 5:00 pm weekdays; check our bulletin board — RQP/M, 5:30pm to 8:00am seven days a week, for our latest stock and prices.
WE SUPPORT OUR CUSTOMERS
EXPAND YOUR KAYPRO OR XEROX
Most versatile. Easiest to use. Finest quality. Claims are one thing, but the proof is in our products. We guarantee satisfaction.
INTRODUCING THE KayPLUS ROM PACKAGE by MICROCode Consulting
The most important element in the performance of your Kaypro computer is its monitor rom. With KayPLUS you get ail of the advantages of a Kaypro 10, even on your Kaypro 2.
¢ Install up to four floppies and two hard drives © Boots from floppy or hard disk
© 32 character keyboard buffer
e Automatic screen blanking
© 12 disk formats built in
© Full automatic disk relogging
e Internal real-time clock and ram card support
e Can use 96 TPI and 3 ¥2” disk drives
¢ Includes manual, format, configuration, diagnostics, sysgen, i and hard disk utilities
© No software assembly required
¢ Available for ’83 and ’84 series Kaypros — Specify Model
KayPLUuS ROM Set vc idxse se seed pees te aey deat ewes $ 69.95
KayPLUS ROM Set with QP/M .............. 02-0 ee eee $125.00
Need to keep better track of your files? Date stamp them with QP/M.
QP/M by MICROCode Consulting
Full CP/M 2.2 compatability with many more features. You've seen the replacements that eat up memory and need auxillary programs to run. Not QP/M. Fifteen internal commands, automatic disk relogging (no more control C), user area selection from colon, 31 user areas, drive search path, archive bit maintenance, and transparent time/date stamping, all in the same space as CP/M 2.2. Installs from a convenient customization menu, without any software to assemble.
QP/M Operating System, complete bootable copy ......... $ 80.00 QP/M without BIOS ......... 0... eee eee eee $ 60.00
Still running single density on your 820-1?
PLUS2 ROM by MICROCode Consulting X120 DOUBLE DENSITY BOARD by Emerald Microware
Clearly the most versatile double density package for the Xerox 820-1. Run up to four floppy disk drives at once, both 8” and 5 %" at the same time. Software compatable with Kaypro and Xerox 820. Supports all standard printers, and most add ons like the Ferguson Ram Board. You get mini- monitor functions, autoboot capability, 19 builtin disk formats, and bank mode operation for more space in your TPA. Lets you run 48 TPI disks on 96 track drives. Works with UniForm and QP/M.
PLUS2 ROM Set and X120 Board A&T ..............05. $ 135.00 PLUS2 ROM Set and X120 Bare Board ...........:....$ 62.00 PLUS2 ROM Setonly......... 0.0... ce cece ee eens $ 49.95 120 Bare Boardonly ........... 0... eee es $ 22.00
Other kits, parts, and packages available
EMERALD MICROWARE
PO. Box 6118
Aloha, OR 97007
(503) 642-1860
MICRO CORNUCOPIA, #32, Oct-Nov 1986
Controlling The Real World.
With Your PC
By Bruce Eckel c/o John Fluke Mfg. Co.
P.O. Box C9090 M/S 266D Everett WA 98206
An Introduction To Microcomputer Electronics
This is for all of you who wrote: ‘I don’t understand half of what you put in Micro C’’ on your renewal forms. Bruce goes back to the beginning with this series but he'll have us doing _ some interesting projects before he’s done. .
radio club. They tried to teach us
how transistors worked by saying, “Well, you put a little current in here, and it controls the current flowing from here to there, except you have to understand these funny curves, and...’’ They lost me.
What I REALLY learned from that _ experience was that if you connected a transistor the wrong way, you could touch it and it would feel hot, but by the time it felt hot, it was already gone.
I’m now older and wiser. I under- stand the funny curves. I also think I understand what the radio club did wrong when they tried to teach me about transistors. They gave me too much all at once, and I couldn’t do anything simple with it. Instead of experimenting a little at a time, I was expected to design an entire amplifier.
|: junior high school I joined the
Switch First, Amplify Later
If the transistor had first been
presented to me as a switch, I would
have understood it. A switch is some- thing we use every day. Once I got comfortable with the idea of a transis- tor, and had used it to turn some lights or something on and off, I could have been introduced to the idea that, under certain conditions, the transistor also works as an amplifier.
In this. series of two articles, I'll show you how to hook a stepper motor up to the parallel port of your computer, and how to make it move. We'll learn how the stepper motor
works, how to use transistors as
. eight ‘‘on-off’’
switches, how to use optocouplers, and we'll talk a bit about pve supplies.
Starting Out I wanted to know about stepper motors, so I tore one out of an old
disk drive and used a nine volt battery
to make it move a step at a time, so I could figure out the pattern. Then I wondered: ‘How can I hook this up to my computer so it can do nifty things?”’
This question led to the problem of making sure that the 24 volt supply (powering the stepper motor) could not possibly damage the five volt system (computer) that was controlling the motor.
In this article, we'll solve the prob- lem of setting up a microcomputer,
which uses five volt DC power, to
control other voltages.
Next issue, I’ll finish the project by describing a stepper motor, connecting it to this month’s circuit, and program-
_ ming the computer to make it turn.
Streams Of Bits In Parallel
We'll be using the parallel port in- stead of the serial port on your com- puter because the serial port sends out a stream of bits through a single wire, while the parallel port has a wire for each bit (and then some). Since we want to control several lines (there are four on a typical stepper motor), the parallel port is a natural.
The parallel port is like a bank of eight switches, each of which can be on or off independent of the others. By writing to this port, you can change one line while leaving the others untouched, or change several lines, or all of them at once. Thus the parallel port can be used to control events in the world (we could multiplex and control more, but let’s keep it simple). .
But there’s a problem: these contol lines are always somewhere between 0
and 5 volts and can handle only a small amount of current; their value is in the information they contain and not the power they can handle. If we hook a higher voltage to them, or demand a higher current, they'll be damaged. .
We could solve this problem a num- ber of ways, but the simplest, most foolproof way.is to use optocouplers (also known as optoisolators).
Optocouplers ' From the outside, these look like ordinary integrated circuit (IC) chips; inside, they have a light-emitting diode (LED) at one end and a photo- transistor at the other. There’s no electrical connection between the LED and the photo-transistor; they're ‘‘con- nected”’ by light. | The optocoupler works like the light communication system I made when I was a boy. Each of us held a light bulb inside a foil-lined can. The light was controlled by a. telegraph key made from another can. In the dark. we could ‘‘talk’’ as far away as 1/2 mile. The only way to keep an optocou- pler from doing its job (ie., getting information across without letting the voltages across) is to exceed its ‘breakdown voltage.’’ It’s possible to have such a tremendous voltage be-
_ tween the LED side and the photo-
transistor side that current arcs from one side to the other, and everything, including the optocoupler, is de- stroyed.
Fortunately, the breakdown ssteae of optocouplers is generally in the hundreds or thousands of volts. The greater the distance between the LED and the photo-transistor, the greater the breakdown voltage. But be careful — if you’re controlling very high vol- tages, be sure the coupler was de- signed for it.
So, we have an optocoupler}: we have 5 volts on one side (from. the computer) and. 24 volts on the other
30 MICRO CORNUCOPIA, #32, Oct-Nov 1986
(for the stepper motor or whatever). How do we connect it?
LEDs Let’s start with 1/2 of the optocou- pler: the light-emitting diode (LED). The voltage across an LED is the
same all the time (about 1.4 volts since
it’s a gallium arsenide junction). So, it’s CURRENT which is important.
Any diode (an LED is really just a diode) works this way; the voltage drop across the device depends on what the junction is made of (silicon, for example, is 0.7 volts) — sometimes you'll hear people talk about ‘‘diode drops.’’ If you don’t want to burn it out, you'll need to limit the current passing through it. For the garden- variety LED, that’s about 20mA. But 10mA will work fine. (mA stands for milliampere or 1/1000 of an amp.)
To control the current when we have a fixed voltage, we insert a resistor in the circuit. We can determine the size of the resistor by using Ohm’s Law (V = I times R. The voltage across a
6 TRGKE wet Megheard frigger YATE mag Pea dete an
@ Dismay bate Graphic form
9 Stat Conte 6 1M Te pate ina Fi
‘its Pes 10
1 GRO Sere BIT: 2 Sat Tal SET? NORTE
| CPamemmenur ne —
device is the current through the de- vice times the resistance of the device).
-We want to find R, so we rearrange
the equation: R = V/I. Pretend the diode isn’t important; we have 5 volts and we want 10mA, so 5V/10mA = 500 ohms.
If you’re a pragmatist, the above calculation is fine. You know they don’t make 500 ohm resistors (the closest you can get is 470 ohms) and resistors and diodes will have errors in them anyway. We’re in the ball park so we won’t hurt anything, and if it doesn’t quite work we can try differ- ent values.
In our little circuit, three variables affect the voltage — the computer, which outputs about 5 volts; the LED, which has a voltage across it of 1.4 volts; and the resistor, which must cause the rest of the drop (5 - 1.4 = 3.6 volts).
Once the LED is on, the flow of current is controlled by the resistor. So we apply Ohm’s Law again, assuming we want about 10mA, and get: R = V/
I = 3.6 volts/l0mA = 360 ohms.
But when we try to buy a 360 ohm resistor, we find they don’t make one of these either (resistors are a lot like shoes in this respect). We compro- mise, try a 470 ohm resistor, and, sure enough, it works. (The wattage rating of the resistor isn’t important here. 1/ 8, 1/4 and 1/2 watt are standard rat- ings.)
So we’ve taken the signal from the computer and made an LED turn on or off inside this little black box. What do we do with the signal at the other end — the one caused by the light hitting the base of the photo-transis- tor, causing it to turn on and off?
My first impulse was to connect the collector and emitter like two ends of a switch into the stepper motor circuit. Unfortunately, the optocoupler is good for only one job: keeping voltages apart. Its output still can’t control anything significant.
Thus, once you get the signal across,
(continued next page)
MODULAR DATA ACQUISITION SYSTEM
We Bring Engineers, Scientists And The IBM-PC Together. Our unique high-performance modular data acquisition system allows you to purchase the configuration that exactly meets your requirements. All of Qua Tech’s data acquisition products include LABSTAR, powerful software designed to give BASIC programmers total con-
trol of their application.
8 BIT A/D SYSTEM
QUA TECH, INC.
478 E. Exchange St. Akron, OH 44304
12 BIT A/D SYSTEM
CALL NOW (216) 434-3154
MICRO CORNUCOPIA, #32, Oct-Nov 1986 31
CONTROLLING THE REAL WORLD
(continued from page 31)
you still have the problem of passing enough current to move the stepper, close your relay, activate the solenoid, light the lamp, or whatever. The opto- coupler won't handle enough current to do what we want, and even if it did, the light hitting it from the LED isn’t enough to turn it on all the way. Here’s why:
A Little About Transistors
The transistor can be used two ways: as a switch, or as an amplifier.
We're using it as a switch, so we must turn it on all the way (Wham!) or turn it off all the way (Slam!). In between Wham and Slam is the “‘lin- ear region’”’ (or, as I came to know it, the ‘‘region of funny curves’’). This is where we use it as an amplifier. If you’re trying to use it as a switch and get caught in this region, it doesn’t ' work very well because it isn’t turned on all the way.
So we need to take this signal, which is ‘‘Really Off’’ and ‘“‘Sort of _ On” and turn it into ‘Really Off’’ and “‘Really On.’’ Fortunately, there’s a device designed for this (the Darling- ton transistor) which comes in its own package with a heat sink.
A Darlington transistor (or Darling- ton pair) is actually two transistors hooked up one right after the other to look like one transistor which requires only a very little signal (like the output
of an optocoupler) to turn itself all the —
way on or off (see Figure 1). . The first transistor is good at turning on, while the second is good at pass- ing lots of current (but not as good at turning on), so together they make one transistor which is good at turning on and good at passing current. Per- fect for what we want. The signal comes out one of the lines of our computer’s parallel port through a resistor to control the cur-
rent and through an LED, which is’
one-half of the optocoupler. The signal turns into light (for a one), or no light (for a zero), travels through the opto- coupler, strikes the base of the photo- transistor, and turns it on.
The photo-transistor drives the base of the Darlington pair, and Voila! We've isolated the computer from the 24 volt system it’s going to control.
(Actually, by selecting the right Dar- lington and optocoupler you could control much higher voltages.) The collector and emitter of the Darlington
are like the two wires of a switch.
The Circuit
Let’s walk through the circuit I built (see Figure 2). We’ll put some LEDs on the outputs and use the computer
to turn them on and off, and that will
be the end of this article. If you simply must hook a stepper motor into your circuit before next issue, make sure you put some diodes in the circuit to prevent the stepper coil inductance from punching holes in the Darling- tons. I'll explain that completely in the next article, but I thought I’d warn you. cee
A circuit diagram doesn’t show ev- erything. For example, it doesn’t show
how to get the signals from your
computer to the circuit, and what the circuit is built on. .
'. To get the signals from your com-
puter to the circuit, you have to find a connector that mates to your comput- er’s Centronics port. I found this no easy task, because some people don’t know what a “standard, usual kind of Centronics connector’ is, and other people don’t know what a ‘’36-line micro-ribbon connector”’ is (they’re the same thing).
And, just to be different, a lot of IBM parallel connectors are the ‘“DB”’ types, but not DB-25s (25-pin connec- tors) like the RS-232C connectors. In-
32 MICRO CORNUCOPIA, #32, Oct-Nov 1986
stead, they're DB-36s. Fortunately, the
Radio Shack deities generally smile upon connector problems for comput- ers, and you can find them there. (Editor’s note: Most of the clones are now using female DB-25s as parallel connectors. All you need is the male DB-25 and a guide to which PIO output lines are connected to which
_DB-25 pins, although a simple voltme-
ter will tell you pretty quickly which lines are active.)
Can You Slice Bread Around Here? Once you get the connector and solder the wires on all the pins of the connector, and then figure out what the wires mean (more about that in a minute), what do you do with them? Well, the early pioneers would (al-
- legedly) go down into the kitchen and
steal one of Mom’s breadboards, stick little nails, wires, and blobs of solder on the board, and try out their experi- ments (thus the term ‘“‘breadboard- ing’’). (Also the term ‘‘disinherit- ance.”’ a te
Mothers were no doubt responsible for the development of these neat chunks of plastic with lots of little holes in them that you can push wires into. They’re still called breadboards, of course.
Breadboards now come in strips about two inches wide and eight
inches long. Don’t be fooled by the
people who want to sell you a bunch of these strips glued down on a metal board for a lot of money. They’re the
a a aE TA RE EY I I TI A a TO OE
same strips; buy your own and glue them on a board.
Also don’t get fooled by the expen- sive boxes filled with carefully stripped wire of all sizes, lengths, and colors. Those are only for professionals; defi- nitely out of our league. Buy your own wire and strip it yourself, but make sure it’s solid wire, not stranded — ask the salesman or look at the profes- sional box of wire for the gauge (thick- ness of the wire — a bigger number means a smaller wire).
With a breadboard you can try out circuits without soldering. Just figure
out which holes are connected to.
which other holes, push the wires into the holes, and presto! — you’re an electrical engineer! (Perhaps you should memorize a few equations in case there’s a test.)
If parts don’t work, or you hook it up wrong, you don’t have to desolder or snip or anything — just pull stuff out of one hole and push it into another. This way you can very quick- ly try out ideas. (A lot like FORTH.) Only after the design works do you get out the soldering iron, or printed- circuit etching kit.
Centronics Port Wires
Usually, you can find the numbering of the wires on one of the connectors, but it’s printed small and is easy to miss. The Centronics port wires 2-9 represent bits 0-8. The rest of the lines are either grounds or handshaking lines. You want at. least one ground,
but we'll ignore the handshaking lines.
If your connector has a different configuration, you'll have to look up its pin configuration in one of your manuals, or figure it out by tracing the wires with an ohmmeter or continuity tester. Your printer manual will have the wiring of its connector.
About Power Supplies
One more problem: we have effec- tively isolated our computer from the part we’re controlling. So effectively, in fact, that we left all the power on the computer side! We need some power on the ‘outside’ too.
We can solve the problem with batteries or a power supply. Batteries are okay, but you can get frustrated when they run down in the middle of the night. It’s nice to have a power supply.
I found a good switching power supply with several different voltages for around $30. Astec makes it, and you can get it by mail from several outlets. I got mine from American Design Components, 62 Joseph St., Moonachie, NJ 07074. JOR Microdev- ices, a reliable mail-order firm, also carries them. (Note: stepper motors taken from 5 1/4” drives run on 12V rather than 24V. There are many more supplies to choose from if you don’t need 24V.)
This power supply doesn’t come in a metal box — you just look at its guts. For decency’s sake I recommend you
put it in a box. (There’s 110V AC on the input side of that little beastie — not a good thing for fingers, little or
big.)
So Now You Have A Lab
Almost. You have a power supply, a breadboard, and a connection to your computer so you can quickly generate digital control signals with software (this is really nice, since otherwise, you might spend a lot of time making circuits to do the same thing). But you still need a meter.
I work for Fluke, so recommending a meter from them probably sounds like hype. But I use the meters, and have talked to people who have designed them, and have seen what else is out there. In addition, customer service is very good about fixing/replacing bro- ken meters. I recommend one of the LCD ‘’70-series’’ meters, which you can get for around $100. If you’re not ready to spend that much, get an inexpensive one at Radio Shack. They aren’t as nice and won’t last as long, but I got a lot of use out of them as a boy.
Back To The Circuit
I connected an LED and resistor to the emitter of the Darlington transistor (the emitter always has the arrow on it, and the arrow points in the direc- tion of ‘‘conventional’’ current flow; i.e., flow of positive charge, or holes). (Again see Figure 1.)
(continued next page)
MICRO CORNUCOPIA, #32, Oct-Nov 1986 33
CONTROLLING THE REAL WORLD
(continued from page 33)
The trons, are going the other way. This is
an NPN transistor. I remember it by ©
saying ‘‘No PiNpoint’’ — the pin isn’t pointing at the flat spot of the transis- ~ tor. When it is, that’s a ‘“PiNPoint’’ — PNP.
For now, this LED and resistor will ©
be our output circuit. Next issue, we'll
replace it with one of the stepper motor coils and a diode (there'll be three other circuits for the other three coils). The resistor is there, as before, - to prevent too much current from going through the. LED (these LEDs have no self-control).
The collector is connected to the source voltage, which will be 24 volts next issue (or whatever your stepper ‘needs), but can be anything now.
When the Darlington is off, no vol-
“tage appears on its emitter pin. When -
it’s on, it has a voltage drop between its collector and emitter of about .2 volts. So the voltage appearing on the emitter is 24 - .2 = 23.8 (24 volts if _ you're a pragmatist).
We need to choose a resistor which will keep the current. down to about 10mA and not fry our LED. (The magic words ‘‘volts,’’ ‘‘current,’’ and “‘resistor’’ mean bring out Ohm’s
- Law! — 24V/10mA = 2400 ohms, or
2.4K ohms.) Yes, you guessed it — there isn’t a 2.4K ohm resistor! (Unless you want
to pay more, and go from the El -
_ Cheapo 10 percent tolerance to the more expensive 5 percent tolerance.) We need to go up a little, to 2.7K, or down a little, to 2.2K. It doesn’t really matter, but let’s go down.
And that’s the circuit (you'll proba-
bly want to duplicate it for each of the eight parallel port lines). All that’s left _ is to turn the LEDs on and off. »
Are We Having Software Yet?
You probably thought you could just PIP a file to the parallel port and watch the LEDs flash, right? Well, so did I. But it doesn’t work that way. “Some LEDs will turn on and the -whole thing just sits there. _ The port is waiting for a handshake
(remember, this is a business ma-_
chine). When you send something through the operating system, it uses
“‘real’’ charge carriers, the elec-
Figure 3 - Using the OUT PORT and BYTE Commands in BASIC
10 * Random output at random intervals
20 K$ = "*" : WHILE K$ = "* ; K$ =
INKEY$ :'Press any key to quit:
30 OUT &H19, INT(255 ® RND) :*Send out a random Number between 0-255
4O FOR I = 1 TO INT(300 # RND) 50 WEND
NEXT ;:'*Wait a random period
' Bouncing up and down; delays adjusted to look like a
— yveal bouncing ball.
K$ = "";WHILE K$="" :K$ = FOR I= 0 T07 FOR J = 1 TO 115 +5 FOR I FOR J WEND
1 TO I#15 +53: NEXT :
a device driver, a little piece of soft- ware which knows how to work the buffer and knows exactly where the parallel port is (not just a device name, like PRN:, but the location in the memory or the input/output address). It takes a byte out of the bag, sticks it in the port (our LEDs just came on) and waits. Waits for what? Waits for the special ‘‘handshake’’ line to go high and low which tells the computer that it got that first byte. and it’s ready for another. The MS-DOS device driv-
er is watching that line, so as long as ©
we go through the device driver, we either learn to be courteous or we wait.
The solution is to go AROUND the device driver, by addressing the port directly. Here’s where you get to do detective work.
I have a Kaypro 2X, and I know where its parallel port lives (19 hex). For XTs and other clones the common parallel port addresses are 3BC hex and 378 hex.
Look first in your computer man- uals; find the most technical looking
- part with lots of tables, strange words,
and numbers, and look for the port
location. Call someone who has a... computer like yours. Call the dealer. _
Call the manufacturer. Persist.
Once you have the port address, use
the command in your programming language which will put a byte directly to a port (assuming your ports aren’t
memory-mapped, in which case you _
would simply stick things in that
34. MICRO CORNUCOPIA, #32, Oct-Nov 1986
INKEY$ : OUT &H19, 2°I : NEXT ; 7 TO 0 STEP -1 : OUT &H19, 2°I:"Bounce back down
:*Selects I-th bit NEXT
NEXT
~ memory location). ’* -T’ll use BASIC and the OUT PORT
and BYTE commands in my examples. (See Figure 3.) In Turbo Pascal, you’d use the ‘“’port array’’ like this: Port[PORT] := BYTE;
You may need to tweak the timing constants on these examples, since your machine may run faster or slower
than mine.
Now Do Something
You now have switches to the out- side world anda programming exam- ple. You can use these switches to drive relays to handle more current and bigger voltages.
Next issue, we’ll see how a stepper motor works and how to. hook it into our system and program it. |
Don
- 800/1600 BPI ASCII/EBCDIC %'"~9 Track Data Transfer to Microcomputer Magnetic Media’
* PC DOS Diskettes Raw Data Dump to one Diskette Batch Service Setup Fee: ‘ Each Diskette: e Alternative Media 8” or 5%” Diskette, Hard Disk or Cassette Tape: Inquire | Informational Brochure Available
MICRO LOGIC SYSTEMS , 207 Kent Avenue 41, Kentfield, CA 94904 -(415) 461-8077
$ 5Q09
$49 $18°°
KAYPRO EQUIPMENT
9’’ Amber CRT .............. $39.00 9’’ Green Monitor ............. 35.00 12’’ Green Monitor ............ 45.00 81 Series ROM’s........ ip actos 7.00 Keyboard (Kaypro) ............ 75.00 Keyboard Siemens w/case ...... 65.00 Wiring Harness ................ 7.50 KAYPRO MAINBOARDS K2 With Sockets ............. $39.00 K2 Populated - Tested......... 129.00 K2 with PRO8-3 Mod. ......... 239.00
This one runs at 2,4 & 5 MHz, up to 4 drives SS, DS, or Quad drives. New ROM has screen dump and step speed select. With manual & software, tested and guaranteed 30 days.
K2 PRO8-3 Mod. EXCHANGE ...149.00 We will update your K2 or K4 as above. Mail working Main board.
_ We can install double or quad drives and check complete package..... CALL
K10 Populated - Tested........ 250.00
WD1002-5 Hard Disk Controller . 200.00
Host Interface Board ......... .. 15.00 CABINETS
Bottom portion with front and back only. CRY B@Zel <2. sacred G05 mane tly 12.00 : MISC. CABLES 9’’ 50 Pin - 50 Pin Header ..... $2.50 14°’ 40 Pin- 40 Pin Header ...... 2.29 9°’ Hard Disk - 20 Pin Header... .2.00 14’ Dual Inline 16 Pin Male (2) ...2.00
FLOPPY DISK DRIVES
— 3 HEIGHT — Okidata DSDD ............... $99.00 Supplied w/sub-panel to make ¥% ht. — %2 HEIGHT —
Mitsubishi M4851 DSDD 40 Tr .$139.00 Mitsubishi M4853 DSDD 80 Tr . . 139.00 Qume Trak 1425%4"’ DSDD ..... 99.00 Tandon TM 848-1 8’’ SSDD .... 149.00 Shugart 475 DS Quad 1.2Mb ...159.00
Sweda Cash Registers Models 303, 2640 & 2650
arom ere?
8280 CLAIREMONT MESA BLVD., SUITE 117° (619) 569-1864
SAN DIEGO, CA 92111 HOURS: Mon..- Fri.9-6 — Sat. 10 -4 MINIMUM ORDER — $15.00
TERMS: VISA, MasterCard, Certified Checks, Money Order, NO COD. Visa
and MasterCard: add 3%. Personal
checks must clear BEFORE we ship. Include shipping charges. California residents add 6% Sales Tax. For more info please call — DON’T WRITE! We don’t have time to answer your letters.
ERAC CO.
From major supermarket . . .$99 ea.
Mainboard, 8 Slot, Case, Power Supply............ $225 To make this a complete system, add A) Memory 8B) Floppy Controller C) Drive D) Keyboard E&) Video Card F) Video Monitor G) Multifunction Card
A) MEMORY 200K “ISO NS: cette ees $25 DIZK TOONS = caaeisaw sv ass 50 640K: 150 NS oc cane4 yada 68 B) FLOPPY DISK CONTROLLER Card for 2 Floppy Drives ....... $36 Card for 4 Floppy Drives ....... 42
C) 5%4’’ FLOPPY DISK DRIVES MIUSIABS 1.2 cstcd ons eet,
D) KEYBOARDS Cherry Keyboard (no case) ..... $38
AT Style Keyboard............ 69 E) VIDEO CARDS Tomcat with Parallel and Lightpen Port.............. $53 Hercules compatible Video Board 75
Color Graphics Adapter........ 69 Enhanced Graphics Adapter
F) VIDEO MONITORS Roland MB-122G, 12’’ (no case) $39 Samsung MD-1254G, 12°’ Green 72 Samsung MD-1254G, 12’’ Amber 78 Goldstar MBM-2015, 12°’ Amber 106 Mitsi AT-1332A 13°’ RGB TTL ..295 Goldstar MCH-4015 13”' RGB 30 MHz.............. 420 NEC Multisync 30 MHz SO0*560°EGA: inant bea 935 G) MULTI FUNCTION CARD
Parallel & Serial Port, Game Port Floppy Controller, Clock & Cal. $96
CPU/SUPPORT MC68000-8 CPU.............. $9.99 GB0TGG=S 3 sc eie neque os ae 27.00 CO018626 2h coesog tog ees eon 9.00 280 CPU! 3 Ges erage nite Beeo cules 1.00 Z80A CPU ..... oS iti a tak nee 2.90 5014/29) (0 pene a era rer iS hiew OU Z80A SIO...... NN oda piats Oe See 9.00
PRINTERS Centronics 703 ............. $395.00 Centronics 588- Asis ........ 125.00
NEC2000 w/Single Sheet Feed . .999.00
8280 Clairemont Mesa Blvd., Suite 117 San Diego, California 92111 (61 9) 969-1864 Call for our Test Equipment Mailer!
IBM/PC COMPATIBLES
SYSTEM EXAMPLE #1 For the Hacker (Cheap)
Mainboard, Case, Power Supply ..$225 256K Memory 150NS......... 25
Floppy Controller (2 Drives) ...... 36 Floppy Drive Ye Ht DSDD...... 99 Keyboard Cherry (no case) ..... 38 Video Board with Parallel and
LIGHIDEN PON a cacu seeded p ees 53 Roland MB-122G, 12’’ Green
Monitor (no case) ............ 39
SYSTEM EXAMPLE #2 FCC Approved (Not Cheap)
Mainboard, Case, Power Supply . .$225
640K Memory 150NS......... 68 Multi !/0, Parallel, Serial, Floppy, Clock/Cal. ........... 96
2 DSDD Floppy Drives (minimum) . 198 Enhanced Graphic Adapter (EGA). . 275 NEC Multisync Color Monitor
CINE BOS Dee cane Bears oe Meena 535 AT Style Keyboard ............. 69
Oh, you wanted a turbo board .... 20 and a 20M Hard Drive & Controller. 410 Now how much would you pay?
JUST $1896
HARD DISK DRIVES 10M Rodin RO-252............. $230 ON GT-2 12s. cc nadeteoeseens: 185 20M ST-225 oo... eee ee ee 385 19M ST-419 00a, 230
20M Half Height with Controller... 410 32M Half Height with Controller... 667 60M with Controller ............ 1150 70M Vertex V170 .............. 725
WD-1027 with Cable............ $156 Omni-5510 .......... la SoG aia 150 Adaptec 2770A
(Get 15M on 10M Drive) .......
POWER SUPPLIES Elgar 400W Unint. Power Sup. .$375.00 +5V/1A, —5V/.2A, +12V/1A,
—12V/.2A, —24V/.05A ....... 15.00 H2AV/ 2.2K sn sie ted cae de day BOD
_ SWITCHERS
5V/9.5A, 12V/3.8A, —12V/.8A $39.00 DV/3A, 12V/2A, —12V/.4A..... 29.00
OV/75A, +12V/8A, +12V/8A . 55.00
DV COR Rass Sa eared oe bad 35.00 _ MISCELLANEOUS Headset/Boom Microphone...... $3.95 Nicad Pack 12V/.5AH ........... 6.50 5 Blade Muffin Fans ............ 7.50
Joystick 4 Switches 1°’ Knob..... 5.50
MICRO CORNUCOPIA, #32, Oct-Nov 1986 35 .
RFI/EMI Protection. For Your Computer
- . There are lots of ways that comput- ers can be noisy. In this case, Rex isn’t talking about fans or hard drives — he’s talking about turning on the system and destroying Cheers. Sti- fling electrical radiation is a popular black art right now because the FCC is cracking down on manufacturers whose products radiate noise. Here are some quick and cheap ideas that just _ might make your system less prone to disconnection during prime time.
sors suggested ways to eliminate
some of the radio frequency inter- ference (RFI) and electromagnetic in- terference (EMI) between my computer and other electronic devices in the neighborhood.
The tips aren’t guaranteed to make everything quiet, but like chicken soup, they can’t hurt. These practices apparently aren’t well known — I found about half my equipment wired incorrectly.
| n.a recent class, one of my profes-
Some Theory
‘Just look inside your computer, ter- minal, printer, etc. There’s a clock circuit in the system that puts a square
wave pulse onto the clock line (a
copper trace).
A true square wave is “about the noisiest kind of wave known: those nearly vertical rising and falling edges are combinations of odd harmonics. A IMHz square wave for instance, would contain 1, 3, 5, 7, 9, 11, 13, 15... MHz components. If the rise time for that IMHz signal is 10ns, then the highest component would be at least 100MHz.
(Editor’s note: The clock trace is only one of many lines.that carry signals. One of my systems generates a hashy noise right on top of my favorite FM
- station. If I select a blinking cursor,
the noise blinks on and off with me cursor.)
Tacking a terminating resistor onto a signal line sometimes reduces its radia-
tion a bit. Four-layer circuit boards
usually radiate less than two-layer boards, but the most common means of limiting interference is to enclose the board in a metal box. Unfortunate- ly, the power leads usually compro- mise the box. The biggest culprit is the ground wire in the power cable.
If your equipment is wired like Fig- |
ure 1, the ground wire acts as an antenna. It receives all those RF noises running around inside the box and transmits them outside. (Take a porta-
36 MICRO CORNUCOPIA, #32, Oct-Nov 1986
By Rex Buddenberg
3425 Elmwood Dr. Alexandria VA 22303
ble FM radio and pass it around the cord. What do you hear?)
Reverse Engineering?
Since the ground wire acts as a receiving antenna as well as a trans- mitting one, the reverse situation is also possible — external equipment can dump noise into your computer.
By rewiring the ground wire as in Figure 2, you preserve the electrical grounding characteristics (this is im- portant to avoid smoke-tested hacker), but you interrupt the RF circuit. In other words, you're keeping the ‘‘in- nies’’ in and the ‘‘outies”’ out.
Make sure you use husky bolts on this job (3/8’’), and don’t try it on a plastic case!
If you have a socketed power lead, see Figures 3 and 4.
The same principles apply. Don’t use the ground tab supplied on the EMI filter or appliance socket; instead, take the inside ground to the socket mounting screws. Make sure the.sock- et is mounted from the ‘outside in’”’ and that it makes clean electrical con- tact with the cabinet wall.
One More Thing You can also quiet things down by adding a strong external bond from
Suc
Srna aon
TOOLS FOR
The MasterFORTH pro- gramming system gets your application running in the least amount of time. How? With a built-in user interface. With an interactive de- bugger. With ares- ident assembler-linkage is instantaneous.
MasterFORTH's target application generation system (TAGS) can produce a ROM-able image in seconds. Its unique symbol table identifies seldorm-used code so you can pack the most power in the least amount of memory.
Choose your development system. We support the IBM PC family, Apple’s Macintosh, CP/M systems and others. Need to program a controller from your IBM PC? No prob- lem. We have cross-development sources for most popular microprocessors. You can even generate a MasterFORTH system for yourtarget application, addaterminalandrunit there. Forth is widely used in industry and aerospace for robotics and machine control.
Call or write us for details. MICROMOTION
8726 S. Sepulveda BI., #A174. (213) 821-4340 Los sia iv CA 90045 ;
your equipment cabinet to a solid ground such as a water pipe.
And An Afterthought
While you’re inside the cabinet and monkeying around with the wiring, install three metal oxide varistors (MOVs): across the power leads as shown below. (These little guys con- duct whenever the voltage across their leads exceeds their rating — usually 130V.)
BLACK -HOT
WHITE-NEUTRAL
GREEN OR BARE- GROUND
My batch of MOVs = say “"V130LA20A’’ (130 volt, 20 amp). 10A sizes are adequate for most computers and environments. The MOVs should - be around $1 each and are available at most parts houses (including many Radio Shacks).
PROGRAMMER /4+
Reads and programs 2716 through Power electronically switched. Can’t 27128 including CMOS types. damage EPROMS.
Reads 2-16K ROMS
Menu-driven, user-friendly. Software on Disk including source code.
Manual includes full schematic. ©
Direct connect to any RS232 terminal or computer.
Save/Program to and from disk files.
Not a kit, completely built and tested.
48 hour burn-in and test <.05% field failures over the last three years.
QpPE riopfco Programmer/4+ with manual and
one disk $169.95 1659 Scott Bivd., #1 Additional disk format add $15.00
ance = Visa and MasterCard, Telephone orders welcome.
Please specify disk format, i.e., CP/M, MS-DOS & computer type. California residents add 6% sales tax.
MICRO CORNUCOPIA, #32, Oct-Nov 1986 37
The SOG Report: Exciting New Systems
It was Saturday evening. I had just _ finished dinner when I glanced up at my companions, all 256 of them (the - fire marshall’s limit). They had the faces of marathoners — deep lines, sunken eyes, heads propped on hands. ‘But they and I shared the exhilaration of a task well chosen and well done. We had run another SOG.
OG V included: 29 formal talks,
a half dozen informal sessions,
recreation (rafting, horseback riding, chair lifts to a mountain top), babysitting, meals, and products from all over the world. But that was the normal part, the easy part. The mara- thon began after supper and continued into the wee hours, sometimes until breakfast (7 a.m.).
Reminiscing: At the first SOG we’d had none of the formal talks, displays, babysitting,
_or recreation, yet the SOG I faces had. shown the same excitement, the same
feeling of being somewhere special, of helping create something that might someday make a difference to a lot of people.
At SOG I the common interest was the Big Board I, the first compact, low
power, single-board Z80 system on the
market.
It was cheap ($650 for an empty board and a bag of parts), and it was small enough to fit on the side of a disk drive (OK, OK, so it was an 8” drive). It supported the most popular operating system, CP/M.
At SOGs II, Ill, and IV, the scope
expanded to include Big Board II,.
By David Thompson
Xerox 820, and Kaypro, all Z80, CP/M machines. Then came Slicer, Defini- con, and finally the clones.
This year, we cussed and discussed nearly every processor from the 4004 to the Transputer. (George Morrow had the audacity to suggest that the 8008 was the first real processor, so we discussed the 4004.) We talked lan- guages and operating systems, a Unix.
Most of the informal discussions this year centered around ways of building up systems around the latest, greatest technology (and where to find operat- ing system support). ;
It’s curious that we were having those same discussions at SOG I. .
Many of the Big Board folks have since built clones, but they complain that the feeling isn’t the same. Fifteen
1986
Ochoco
Jack Dennon
The-V20, V30 &
Hall Room 104 CP/M Emulation
aes cui Taine Stump International
De ve ak Computing
~ G Pence David Thompson vs) Hall An Inside Look pS N Room 28 At Micra C ~ — - eid Ochoco Don Latham George Watts ee Hall Goat Oriented Pitfalts of Small ee) Room 231 ‘Program Building Business Ventures
Larry Fogg Jatro to Turbo Pascal: Novice Programming
32-Bit UNIX On A Shoestring
Ease Instruction Set CPUs
Dave Rand
in The Public Domain
Andy Bakkers The Transputer: Life After : The Microprocessor (New Life for 250s) ea P|
This is the SOG that was. We hope to see you next year.
SOG SPEAKERS SCHEDULE cena! Oregon Community College - Bend oregon Se TE a a Teo
esi ini Michael Frieling Developing Tools parry ie For Expert Systems Trevor Marshall Designer's View Of The 68020 Joseph Bartel 68000 Multi-User System: Alternative To LAN
George Scolaro
Dean Klein The V Series &
In Pence 28:
The 80386: Dual "SOFTWARE FOR UM
Dave Rand Earl Hinrichs
Michael Frieling George Scolaro
In the Pinckney Center:
Allyn Franklin’s Drive Workshop McTek PC Workshop
Jim Tanaka
Artificial Intelligence & Human Cognition
In the Pinckney Center:
In Pence 28:
Don Fletcher intro To 8088 : Assembly Language Room 104 Programming Pence Doug Anderson Peter Casey Hall Poor Man's Unique Features Room 28 Networking ofc
| George meee HARDWARE FORUM
Don Fletcher _ Dean Klein
Chris Jones :
CAD (and more} On The 68020
Joseph Bartel
New Directions In Trevor Marshall
Computing = Dente John Kirk John Kirk ~ |
Math & Graphics Reon 231 For Geometric Models Languages
QOchoco Chris Brock Hall Hardware & Software Roo Considerations For m 5 A Multl-User System
38 MICRO CORNUCOPIA, #32, Oct-Nov 1986
<= © N ~ J] =) Lome)
Source Code Translation Between
~ < a % ~ >) < N
In the Pinckney Center: Allyn Franklin’s Drive Workshop McTek PC Workshop
Sigi Kluger
Programming The 68020
minutes worth of plugging boards to- gether is different than gluing chips on a board. Also, MS-DOS supports serial and parallel interfaces, and so many utilities come with it that there’s a lot less reason to hack. (See Don Fletch- er’s MS-DOS driver article in this issue if you’re still interested in hack-
ing.)
PD32
Thanks to SOG, we’ve got two spectacular projects coming up for you. The first, the Public Domain Project — 32000 (PD32), is in this issue.
The PD32 is a 32016 system designed by Dave Rand and George Scolaro. They came up with the system after National started selling a 32016 starter kit for a paltry $69 (6MHz). The kit includes the processor, memory man- agement unit, clock, floating point processor (the same one Definicon is using), and an interrupt handler. But that’s just the beginning. They also include a pair of monitor ROMs, serial transfer software, books, instructions, etc., etc., etc.
Kits are available from any parts house that handles National. Jameco Electronics is selling the 32016 Design- er Kit for $59.95 (no doubt the 6MHz chips). The 10 Meg parts should be about $120 a set (but the 6MHz parts will often run 8 or 9MHz).
Jameco Electronics 1355 Shoreway Rd Belmont CA 94002 (415) 592-8097
The PD32 is a public domain system because Dave and George are releas- ing the board, artwork, circuit design, and software drivers to the public.
It’s also public domain because a number of SOG attendees got together to form a users group to promote the system and produce hard-to-get items. The group will be making boards,
When the artwork
i,
‘a
burning PALs and ROMs, and making them available at cost. Micro C will be the information center.
Dan Efron volunteered to head the distribution of boards and parts for the system (while attending college). You can contact him via his parents’ ad- dress (he says it'll be a day delay at best).
Dan Efron
8910 Westmoreland Lane Minneapolis MN 55426
(503) 382-7643 (Micro C RBBS)
Dan says he will be a regular partici-
Bn gs ae
AY Z| a
pant on the Micro C bulletin board so °
you can reach him that way. Be sure to check out the PD32 area on ane board.
I talked to Dan three weeks see SOG and he told me that Ken Berry will be helping in the project. Ken will be putting together kits of peripheral parts (including RAM sticks). Dan says he’s getting some very good quotes from board houses.
Meanwhile, George Scolaro said he
was expecting to get the test run of -
boards back from the prototype shop by early September. If there weren’t too many cuts and jumpers, he’s prob- ably already shipped those boards to the dozen folks who were on the list. is finalized, George’ll be sending it along to Dan so the production run can get started. They’re hoping to have shippable
boards and kits a short time after you ©
read this.
Host System The PD32 will take some ideas from
the Definicon board. All I/O will come |
and go through a host system.
‘‘Aha!’’ you say. ‘‘Another PC leach.’’
Well, yes and no. Yes, it will plug quite happily into a clone. However, it will also run on a Z80 CP/M machine. They’ve written software interfaces (in
y p
BY toad R iy
“if, My ply et/= Ay
te
VERA RYE ‘
LTD en G7 % " My Ly a Ly rs «a C) for bak types of machines.
Plus, there is full Unix Version V for the system at only $500. (Only $500 for an operating system?! Has this guy
pg
‘been hanging out with Digital Re-
search?)
However, the price includes compi- lers, editors, 31 disks worth of utilities — and all multi-user. You could put together a complete Unix system with | 2 Meg of RAM for under $1,000, including the operating system. (You'll need at least 10 Meg of winnie on. the base system to run Unix properly.)
Even considering the cost of the host system, this has to be the cheapest way known to man or hacker to get into a full-blown, multi-user Unix sys- tem. .
On The Other Hand
Maybe you don’t want a full-blown Unix system and just maybe you don’t have a winnie on your Z80 system. (Unix alone requires 10 Meg.)
“Aha, I’ve finally got you,’ you say. ‘‘This won’t plug into my stock Big Board and single handedly support all the programmers on Michigan’s upper peninsula. I’ve got to add a winnie.”’
Neil Koozer attended SOG V and also got excited about the PD32. He’s been working with National chips for some time now. He dropped me a letter a couple of weeks after SOG:
‘‘When I started coding for the 32000
‘I thought I had died and gone to
heaven. If you do assembly coding for an 8-bit machine or for one of those
. segmented things, you know that you
spend most of your energy working around obstacles. It took me five days to write a disassembler for the 32000. “IT have no interest in Unix or in a hard disk; all I want is an assembler and enough of an operating system to run the assembler. (So he has a basic
foundation to build on.)
(continued next page)
MICRO CORNUCOPIA, #32, Oct-Nov 1986
39
THE SOG REPORT —
- (continued from page 39)
“In the interest of promoting a 32000 users group, I will be donating all the 32000 stuff that I write. I’m in the middle of. writing a high/low level language and a debug monitor.’
Neil Koozer
Kellogg Star Route, Box 125 Oakland OR 97462 | (503) 459-3709
Talk about a group effort. If you want to get involved in the PD32 project, get in touch with Dan or Neil.
Allyn Franklin teaches disk drive alignment and re- pair to a sitting room only crowd. In the background, vendors display their wares. A PC workshop and a hard- ware forum were running concurrently with this work- shop.
68000
The 68000 system which follows is a different kind of project. It isn’t as close to reality as the 32000 board because it saw first light at the SOG, but it has lots of potential.
This is the generic 68000 system, and its claim to fame is that Hawthorne Technology will be providing a com- plete, single-user operating system for $50 per copy.
(There’s also a second 68000 sicject that’s. in the ‘waiting for more infor- mation”’ stage, but we’ll deal with that as Andy Bakkers gets more details from Germany.)
The Generic 68000
Motorola fans also showed up in force at SOG V, and, as usual, discus- sions centered on the lack of a cheap, standard operating system for the pro-
‘cessor. Sure, there are proprietary sys-
tems for the Macintosh, Amiga, and ST. There are also expensive ones like CP/M 68K and OS-9.
In fact, there isn’t much incentive to design new 68000 hardware because the operating systems are so expen-
sive. Just the operating system, two
compilers, and a few utilities total over $1,000 in OS-9/68000. And that’s what each user pays. System designers also have to fork over significant sheckles to get the source of the BIOS.
Well, at the SOG we discussed the 68000’s operating system problem, cussed it, and then changed it. Maybe permanently.
Joe Bartel of Hawthorne Technology offered to sell a single user version of his operating system for $50 per copy. It would include source, have built -in hooks so you could add drivers for nearly anything, an assembler, and a simple mid-level language of his own design. (It’s best described as FORTH with added IF/THEN/ELSE type struc- tures.) The operating system a MS-DOS disk formats.
If that project comes together in time (hardware, software, assembler...) we'll have a full-blown 68000 issue around the first (or second) of the year. I’m guessing it’ll happen.
Guide demonstrates spe- cialized equipment (paddle) as rafters prepare to drift off on the annual Tour de Splashe. The placid Des- chutes takes a dive about half a mile downstream.
40 MICRO CORNUCOPIA, #32, Oct-Nov 1986
Of course, one of the projects would be porting the operating system over to a number of 68000 computers. Any- one already running a 68000 or think- ing of designing a new hardware package (hooray, hooray) should talk to Joe.
Joe Bartel
8836 SE Stark Portland OR 97216 (503) 254-2005
Joe mentioned a number of options for the hardware:
1. Plug-in board for the PC
2. 4 Meg 68000 replacement board for the Kaypro
3. Same size board as the mother- board in an XT, so it could use cheap cabinets, power supplies, etc.
Joe also noted that there’s a Pascal compiler in the PC-SIG library, written in Pascal, and he’s writing a database handler.
Educational 68000
In his talk this year, George Morrow mentioned that there’s still that great divide — hardware folks do hardware, software folks do software — and it’s the in between places where low level software and hardware meet that most folks don’t understand.
How do you create a system from scratch, from just a pile of parts connected together? Where does the system monitor come from? Who cre- ates the first assembler? What does the assembler run on if there’s no operat- ing system, and how do you write an operating system without an assem- bler?
Of course, if you just want to build the hardware and purchase an operat- ing system complete with basic (not BASIC) tools rather than tangle with a Chinese computer puzzle, you'll be able to do that too.
Andy Bakkers came by the office before heading back to Holland. He suggested that folks start at absolute zero with the 68000. What he meant was that the user should build the system (wirewrap or PC board), create a simple monitor, and then bootstrap the system.
Bootstrapping would mean creating
C SOURCE CODE
XLT MACRO PROCESSOR . ee
XLT can be used as a preprocessor, text translator, or simple cross-assembler, . depending on your macro definitions. Comes with manual, C source and macro
files.
Q/C 4. 0 CP/M C COMPILER w/source .
ONLY 95.00
Save $70.00. Fast, full featured compiler from the Code Works includes nes
single- -precision floats, excellent manual.
QC88 C COMPILER FOR PC’s w/source ONLY 125.00 Save $70.00. As above but no floats or longs. Runs on PC clones.
QCX C CROSS-COMPILER w/source
Runs on PC, generates code fit to run on Z80 CP/M or ROM base controller
system.
® Tony Ozrelic’s L.A. Software is now KYSO Technology ®
TO ORDER: Add $5.00 to total for shipping and handling. Personal check or M.O. are OK. Sorry, no COD’s, PO's, or plastic money. 30-day money-back guarantee. Most order shipped Ist class within 5 working
days.
KNOCK YOUR SOCKS OFF
KYS8SoO
TE CA ONO OGY © P.O. Box 5246 © Bend, Oregon 97708 © (503) 389-3452 @
an assembler and then a high level language. Other languages and tools could then be written either in assem- bly or the high level language.
He suggested that the assembler and
‘some simple debugging tools be in-
cluded in the monitor. Then, once the monitor was finished, builders could
move on to C or Pascal.
He mentioned that a company in Germany is selling a 68000 board (and parts) along with such a monitor. (The package is aimed at educational use.) The assembler built into the monitor is complete enough that users can con- struct a complete compiler, working with Wirth’s Pascal book.
Andy will be gathering some addi- tional information about this ayelem for us.
The Rest Of SOG
We'll include excerpts from many of the talks in Micro C over the next year, so you won’t miss out entirely.
We started the schedule with the idea that there would be only two things happening at a time (and folks could remain in the room for the following hour if they wanted to con-
tinue the discussion). We weren’t en- tirely successful. Oh well, maybe next year we'll try for three at a time, or expand the formal talks into Sunday, or...
The all-day white water rafters (60 people) wanted a two or three day raft trip next year. We'll see about setting up one of those.
The last dorm room was assigned on May 1 (almost three full months before SOG). So if you have a hankering to stay in the dorm next year, plan to get your reservation in early. Fortunately, there are lots of motels within a couple of miles, and there’s plenty of parking for campers and trailers next to the dorm.
MICRO CORNUCOPIA, #32, Oct-Nov 1986 41
ALL SALES ARE MADE SUBJECT TO THE TERMS OF OUR 90 DAY LIMITED WARRANTY. A COPY OF THIS WARRANTY IS AVAILABLE FREE, ON REQUEST.
DIGITAL RESEARCH COMPUTERS
CAF 8 MHZ AT COMPATIBLE - $1399
* PRODUCED BY CAF: A $500 MILLION/YEAR TAIWANESE CONGLOMERATE.
* BURNED IN FOR 48 HRS. * INCLUDES DOS 3.1 AND MANUALS.
* 512K RAM, EXPANDABLE TO 1MEG ON M.B. * 1.2 MEG FLOPPY INCLUDED.
* 80286 WITH OPTIONAL 80287 * ON BOARD REAL TIME CLOCK.
* AT STYLE KEYBOARD WITH ENLARGED ENTER AND SHIFT.
* 195W POWER SUPPLY x COMPLETE SERVICE MANUAL AVAILABLE: $40.
* COMPLETE SYSTEM DOCUMENTATION INCLUDED, PLUS DOS MANUALS. : * FLOPPY AND HARD DISK CONTROLLER CARD INCLUDED.
* ERSO BIOS FOR MAXIMUM AT SOFTWARE COMPATIBILITY.
* LIMITED 1-YEAR FACTORY WARRANTY. * FCC CERTIFIED!
* 1.2 MEG FLOPPY CAN READ AND WRITE 360K DISKETTES. ADD $15 UPS.
CMI 6640 33 MB. HARD DISK 39 MS - AT COMPATIBLE.
VERY LIMITED STOCK — $325
MEX-PC MODEM } SOFTWARE PACKAGE 969.95
A FANTASTIC COMMUNICATIONS PACKAGE WITH FEATURES TOO NUMEROUS TO LIST. SEE MAY/JUNE ’86 MICRO SYSTEMS JOURNAL FOR FULL REVIEW OR CALL FOR BROCHURE. SUPPORTS COLOR, KERMIT PROTOCOL, Y MODEM BATCH, VT100 EMULATION, REMOTE OPERATION, ON LINE HELP, ETC. RUNS UNDER PC/MS DOS. 180 PAGE MANUAL & BINDER.
MEX-PACK LIST IS $99.95 — SPECIAL $69.95
NEW!
PC/XT EPROM
PROGRAMMER $199
* LATEST DESIGN * PROGRAMS UP TO 4 DEVICES AT ONE TIME * FEATURES EASY TO USE MENU DRIVEN SOFTWARE THAT RUNS UNDER PC OR MS-DOS. * USES AN INTELLIGENT PROGRAMMING ALGORITHM FOR SUPER FAST (8X) EPROM BURNING. * THIS PLUG-IN BOARD ATTACHES TO AN EXTERNAL MINI CHASSIS CONTAINING 4 TEXTOOL Z.I.F. SOCKETS. * NO PERSONALITY MODULES REQUIRED * AUTOMATIC VPP SELECTION: 12.5V, 21V, OR 25V. * EPROM DATA CAN ALSO BE LOADED FROM OR SAVED TO A DISKETTE. * PROGRAMMING SOFTWARE SUPPORTS: 2716, 2732, 2732A, 2764, 2764A, 27128, 27128A, 27256, 27256A, 27512, AND 27512A. * ASSEMBLED AND TESTED, BURNED. IN WITH MANUAL. $199 WITH SOFTWARE.
MICROTEK 2 M.B. EXPANDED MEMORY BOARD $195 (0. K) MEETS LOTUS/INTEL/MICROSOFT SPEC. FOR EXPANDED MEMORY. FOR.USE AS EXPANDED MEMORY (EMS), ELECTRONIC DISK, OR PRINT SPOOLER. WITH A SUPERB MANUAL AND INSTALLATION SOFTWARE. FOR PC/XT OR MOST COMPATIBLES. FOR 2 MEGABYTES OF 150 NS RAM (72 DEVICES) INSTALLED AND BURNED IN ADD $225.
ZRT-80 CRT TERMINAL BOARD!
- A LOW COST 2-80 BASED SINGLE BOARD THAT ONLY NEEDS AN ASCII KEYBOARD, POWER SUPPLY, AND VIDEO MONITOR TO MAKEA COMPLETE CRT TERMINAL. USE AS A COMPUTER CONSOLE, OR WITH A MODEM FOR USE WITH ANY OF THE PHONE-LINE COMPUTER SERVICES.
FEATURES:
» Uses a Z80A and 6845 CRT Controller for powerful video capabilities.
RS232 at 16 BAUD Rates from 75 to 19,200.
24 x 80 standard format (60 Hz). Optional formats from 24 x 80
(50 Hz) to 64 lines x 96 characters (60 Hz).
Higher density formats require up to 3 additional 2K x 8 6116 RAMS. Uses N.S. INS 8250 BAUD Rate Gen. and USART combo IC.
3 Terminal Emulation Modes which are Dip Switch selectable. These include the LSI-ADM3A, the Heath H-19, and the Beehive.
Composite or Split Video.
Any polarity of video or sync. Inverse Video Capability.
Small Size: 6.5 x 9 inches.
Upper & lower case with descenders.
7 x 9 Character Matrix.
Requires Par. ASCII keyboard.
FOR 8 IN. SOURCE DISK (CP/M COMPATIBLE) ADD $10
Digital Research Computers
P.O. BOX 381450 « DUNCANVILLE, TX 75138 + (214) 225-2309
A&T
ADD
$50 (COMPLETE KIT, 2K VIDEO RAM)
BLANK PCB WITH 2716 CHAR. ROM. 2732 MON. ROM
sages SOURCE DISKETTE - ADD $10 SET OF 2 CRYSTALS - ADD $7.50
*TM OF DIGITAL RESEARCH INC. (CALIF.) *IBM TM OF INT. BUS. MACHINES.
(214) 225-2309. STANFORD TURBO XT - $399
4.77 OR 8 MHZ x FCC CERTIFIED * 640K MOTHER BOARD (0 K) * .135 WATT P.S. * XT-AT 5160 KEYBOARD « FLIP TOP CASE * 8 EXPANSION SLOTS x ASSEMBLED AND TESTED * WITH BIOS * FLOPPY CONTROLLER CARD & CABLES * WITH DOCUMEN-
TATION. ADD $12 UPS.. A.R.C. XT TURBO - $529
4.77 OR 7.4 MHZ * 8 EXPANSION SLOTS * SLIDE OUT PC CASE * 5160 XT-AT KEYBOARD « MS DOS 3.1 + BASIC DISKETTE * 256K RAM, EXPANDABLE TO 640K * 4 LAYER JAPANESE MOTHER BOARD x FULLY TESTED AND BURNED IN. * SUPERIOR, CLEAN BIOS. * 135 WATT P.S. x SUPERB DOCUMENTATION * FCC CERTIFIED. ADD $15 UPS.
XT OPTIONS:
* V20.8 MHZ NEC PROCESSOR. REPLACES 8088. - $12.95 * TWO 1/2 HT. D.S. DD. FLOPPIES INSTALLED: $175/Palr * 256K DRAM. 150 NS. INSTALLED AND TESTED: $28/9
* 64K DRAM. 150 NS. INSTALLED AND TESTED: $10/9
* HARD DISK: ST225 WITH CONTROLLER CABLES & FORMATTED: $425 * ZUCKER COLOR CARD WITH PARALLEL PRINTER PORT: $86
* MONOCHROME/GRAPHICS VIDEO CARD WITH PRINTER PORT: $89 * PLEASE CALL FOR MONITOR PRICING
SCHEMA: Schematic Capture and Drawing Package
WORKS WITH PC'S AND COMPATIBLES. EASY TO USE WITH OFF THE SHELF PRINTERS, MOUSES, VIDEO CARDS, ETC. COMES COMPLETE WITH A HUGE COMPONENT DATABASE. SUPPORTS MONOCHROME, COLOR, OR EVEN EGA. FREE BROCHURE AND DEMO DISKETTE ON REQUEST. LIST $500 — SPECIAL $396.15
$100 BUSS LIVES! WE STILL SELL S100 PRO- DUCTS AND CP/M SINGLE BOARDS. FREE CATALOG.
PC/XT AT ENHANCED GRAPHICS ADAPTER
* 3 CARDS IN ONE!
* 100% IBM COMPATIBLE.
* COMPATIBLE WITH IBM EGA, COLOR GRAPHICS ADAPTER, OR MONOCHROME ADAPTER.
* 256K VIDEO RAM! (4 TIMES MORE THAN IBM!)
* DUAL FREQUENCY OUTPUT FOR EITHER EGA OR STANDARD RGB COLOR MONITORS.
.. * PERFECT MATE FOR NEC MULTISYNC COLOR MONITOR!
.* LIGHT PEN INPUT.
* FULL 16 COLORS.
* MFG. BY D.F.I., THE PREMIER FAR-EAST ADD-ON BOARD MAKER.
* A SUPERIOR BOARD AT ABOUT 1/3 THE COST OF IBM EGA!
* ASSEMBLED, TESTED, AND BURNED IN. WITH MANUAL.
* USES CHIPS & TECH. VLSI! 4 CHIP SET.
* FIELD PROVEN BIOS.
THE NEW 65/9028 VT
ANSI VIDEO TERMINAL BOARD! * FROM LINGER ENTERPRISES *
A second generation, low cost, high performance, mini sized, single board for making your own RS232 Video Terminal. Use as a computer console or with a MODEM for hook up to any of the telephone-line computer services.
pen tvere: MICRO SIZE!
Uses the new SMC 9028 Video Controller Chip coupled with a 6502A CPU.
RS-232 at 16 Baud Rates from 50 to 19,200
On board printer port!
24 X 80 format (50/60 Hz).
For 15,750 Hz (Horiz.) monitors. 3 Terminal Modes: H-19, ADM3A, and ANSI X 3.64-1979
Wide and thin-line graphics. — White characters on black back- ground or reversed.
Character Attributes: De-Inten, Inverse, Underline and Blank. Low Power: 5VDC @.7A, + 12VDC @ 20MA.
Mini size: 6.5 X 5 inches. Composite or split video.
5 X 8 Dot Matrix characters
(U/L case) with descenders. Answer back capability.
Battery backed up status memory. For ASCII parailel keyboard.
(Full Kit) ADD $40 FOR A&T
SOURCE DISKETTE: PC/XT FORMAT 5¥% IN. $15
NEW OPTION . PC/XT keyboard ROM. Allows use of IBM style keyboard. $15
_ TERMS: Add $3.00 postage. Orders under $15add 75¢ handling. NoC.O.D.
‘We accept Visa and MasterCharge. Tex. Res. add 5-1/8% Tax. Foreign
orders (except Canada) add 20% P & H. Orders over $50 add 85¢ for insurance. Prices subject to change without notice.
~ WE ARE NOT ASSOCIATED WITH DIGITAL RESEARCH INC. (CALIF.) THE SUPPLIERS OF CPM SOFTWARE
LEAP INTO A NEW DIMENSION
CALENDARICLOCK No 569 KIT At @ Works with any Z-80 based tipi e Currently being used in Ampro, Kaypro ' 2, 4& 10, Morrow, Northstar, Osborne, NL Xerox, Zorba and many other computers. Piggybacks in Z80 socket. Uses National MM58167 clock chip, as featured in May '82 Byte. Battery backup keeps time with CPU power off! Full implementation of ‘’C’’ with standard floating Optional software is available for file point, library, and I/O subroutines. UNIX VER 7 date stamping, screen time displays, compatible. Produces relocatable 8080 (optional 0Z80) etc. assembler code. Relocating assembler and_ linker Specify computer type when ordering. supplied with package or use Microsoft M80 and L80 Packages available: : : Fully assembled and tested $99. SID/ZSID debugger interface. FAST COMPILATION Complete kit $69. AND EXECUTION. Bare board and software $29.
AZTEC Cll FOR CP/M $199 DES dreund: shipping $ 3.
Special price for Micro C subscrib 149 MASTERCARD, VISA, PERSONAL CHECKS, Ee nee tae eae MONEY ORDERS §&§ C.O.D.'S ACCEPTED. i {AX N X N.Y. STATE RESIDENTS ADD 8% SALES TAX software systems Es , KENMORE
Box 55, Shrewsbury, N.J. 07701 COMPUTER (201) 780-4004 : TECHNOLOGIES
Also available for Apple DOS, HDOS, CP/M-86, PC-DOS P.O. Box 635, Kenmore, New York 14217 (716) 877-0617
WITH AZTEC Cll
PERFORMANCE : P 0 o with Mitek’s — - Relocatable Z80_
Relocatable Z80 Macro Assembler Only $49.95 plus shipping. @ Phase/dephase. 8080 to Z80 Source Code Converter. Cross-reference generation. Generates Microsoft compatible Full Zilog mnemonics. REL files or INTEL compatible hex INCLUDE and MACLIB FILES. files. . Separate data, program, common, Compatible with Digital Research and absolute program spaces. macro assemblers MAC & RMAC. e Supports Hitachi HD64180. Generates Digital Research compat- @ Z80 Linker and Library Manager for ible SYM files. Microsoft compatible REL files avail- Conditional assembly. - _ able as an add-on to Assembler.
ATTENTION Turbo Pascal Users:
Assembler will generate Turbo Pascal in-line machine code include files.
“MICRO CORNUCOPIA, #32, Oct-Nov 1986 43
En —
Laine Heads Home After The SOG,
And Makes It
_« In. his own one-track way, Laine
' talks about Yugoslavia, militia, Tai- wan, clones, floppy driver boards, SOG V, the X-16, the Slicer, and environments in MS-DOS. (Actually, he really covers more, I just forgot what it was.) This column is obvious- ly just another Micro C attempt at blatant sensationalism.
. e’re sitting in central Yugo- slavia waiting for a police roadblock to filter back to
us. We would have been down the highway to Belgrade long ago, but our bus driver was caught passing the line of cars now ahead of us and the militia confiscated his passport.
We had to turn around and drive the 10 kilometers back to the militia post. The other lane was solid cars the entire way. And only one militia car with three officers to sift through them.
The line extended an hour beyond the militia station when the officers realized the fruitlessness of their situa- tion and with one wave of the hand, overheated cars, sweating bodies, and screaming beasties were dispersed into the Yugoslavian afternoon. ©
The militiamen have now returned to their post and are arguing with our bus driver over the merits of his driving style, politics, and most likely, religion. It’s cooler now, sitting on the grass next to the militia house, waiting for our driver to come back. He'll no doubt: tell us that the bus has been confiscated along with everything and everyone on board and we’ll all be relocated to the Adriatic Coast where we will be’ pressed into service as latrine technicians and goat herders.
The bus will probably be used to decoy other Turkish busses across the border. Our belongings, including my “little Toshiba portable and the ribbon re-inkers I brought to sneak across the border into Turkey, will be donated to
. the People’s Work Training Center
where they will be used for practice in the Advanced Sledge Pounding Class.
And How Was YOUR Trip Home From SOG ???
Later: Well, we ended up waiting at the militia post for about two and a half hours before we could go, and by then the line of cars was backed up again. (We lost six hours in all.)
SOG V
Yes, I did make it to SOG. Had a GREAT time, too. Since everyone else will be talking about it this issue anyway, I'll just take a quick, surreal dip through the highlights:
Grey boat slamming into white waves - Tom into the water by acci- dent - water fights - Tom into the water on purpose - volleyball in a dust storm with the gang - ‘’Watch how fast this scrolls!’’ - ‘‘Hey, come over and look at my 68000.”’ - bi-window visual translation - ‘‘But ours works with a mouse.”’ - Clone Wars - ‘Why don’t you give me a copy of that?” - ‘‘Where’s the beer in this place, any- way?’ - dinner at The Pine Tavern - “‘So I’m taking back two rocks from Mount Bachelor for the kids’ pres- ents.’’ - ‘‘We’ll get some chips and be right over.’’ - ‘‘When you hit the print screen. key, you generate a: keyboard hardware interrupt which generates a print screen interrupt which is inter- cepted by the GRAPHICS program which generates a video interrupt which is intercepted by the EGA card and then you generate a printer inter- rupt which is intercepted by the MODE program which generates a serial COM interrupt, which ...”’ - “Let me know how your project goes.”’ - ‘‘Has anyone seen my beer cooler?’’
A brief list of my favorites at SOG: PC-Tech’s X16 and 4 Meg ‘‘Above- Board”’ card (for 850 bucks!), Logitech Modula, Shawn’s Megabyte Slicer, new (finally!) monitor ROMs from
By Laine Stump
Development Foundation of Turkey Tunali Hilmi Cad. 22 Ankara Turkey
Slicer, and EXPRESS 2.2 in flaming, instantaneous Hawaiian color on Dean’s EGA card on the X16.
Update On Taiwan
Thirty-five PCs arrived from Taipei while I was away, along with 35 3’ disk drives to mount in them. Nothing is really together yet, and already I have problems.
Flakey Flakey Flakey
The motherboards we got are 8MHz turbo boards from Auto Computer (doesn’t really matter, you’d get the same board no matter where you ordered from). Unlike most Taiwan junk, they actually WILL run at 8MHz. Almost. All is well until there’s a disk error and then, instead of printing out a nice error message, the machines just lock up and die. Totally.
This isn’t the only time they die, either. At random times during the day they simply decide to go home early and don’t even have the decency to mark their names ‘‘OUT’’ on the office bulletin board. So I guess we just use them at 4.77 until I discover the culprit or find some 20MHz crys- tals (6.67MHz).
And Still More Flakes
We actually had fairly decent luck with DOAs this time — only one bad power supply, one video card (caused by the power supply), one winchester faceplate fallen off, and one color monitor power supply shish kebabed. Of course, that’s only if you don’t count the stripped screw holes, wrong sized nuts, poorly mounted drives, and the floppy controller cards.
Loss Of Control
Three months ago, when I connect- ed a 3’’ drive to one of the sample Taiwan units to make sure they were compatible, everything worked fine. The new machines and drives work fine together too — until you try
a a] . 44 _ MICRO CORNUCOPIA, #32, Oct-Nov 1986
writing to the disk. Then your entire disk gets trashed!
When I replaced the new controller with an earlier version I had no prob- lem. The two cards used nearly the same parts; the new one just had a different layout to conserve space. Then I noticed that someone had cut costs by removing all but four of the “fingers” for ground connections on the card edge connector which hooks up to the data cable! The pinout is cleverly designed so that every other wire is ground, helping to reduce crosstalk between channels. But a ground which is connected only at one end does absolutely NO GOOD. Oh, Ataturk! What have our neighbors done now?!?
Not so fast, though. I had seen these symptoms before when I installed a single 5’’ drive with no terminating resistors, so I checked the OEM man- ual. On this drive the termination is built in; all the drives have terminator packs. Each signal has 1K ohm of pullup (providing about 5 milliamperes of pull-up current). They say it’s enough. It should be. Every other ‘machine I have, including the X16 and my Toshiba portable AND my Slicer, can handle the little buggers just fine.
Well, perhaps a grounding problem can cause the same symptoms. I tried tying all the grounds on the floppy cable together, but it didn’t help. Must be the termination after all.
All right, let’s try it with a terminat- ed 5’ drive together with the 3’, AOK. How about with two of the little guys? Sure thing.
Now I know. These $%@%%!*! flop- py cards don’t have as much ‘‘drive’’ as the old card, and they need 500 ohms of termination on the cable. Wonderful! Where am I going to put it? The built-in termination on the drive is in a cute little SIP resistor network. Cute little SIP resistor net- works aren’t available in Turkey. Looks like I'll have to solder eight tiny 1K ohm resistors onto 35 floppy disk drives. That makes 560 solder connec- tions! Why can life never be simple?
Postscript: I have decided instead to have a “‘terminator plug’’ manufac- tured to be plugged into the unused cable plug. I also rechecked the parts on both controllers and discovered the
sole difference is that the old controller .
NEW LOWER 16 BIT PRICE SPEED — POWER — VERSATILITY
(al =o 4
FULL SCREEN EDITOR ONLY $29.95
Most EXPRESS users are converts from the GIANTS of WORD PROCESSING....... wand you couldn't pay them to go back... HERE'S WHY
NAMED DIRECTORIES su
POWERFUL KEYBOARD MACRO’ FAST, FAST, FAST SEARCH! FILES LARGER THAN MEMORY handled wi
FULL BLOCK INSTRUCTIONS includin VARIABLE SPEED (FAST!) BI-DIRE
NOT COPY ee
EXPRESS 1.0S GENTLEMEN ..
FULL ACCESS TO CP/M USERS AREAS (up to 32) with any editor command! ported on MSDOS VERSION!
MEMORY MAPPED VIDEO AVAILABLE FOR IBM PC and PC clones!
BUILT-IN CP/M LIKE COMMANDS (RENAME, COPY, ERASE, TYPE, DIR, LOG)!
as many as you want)!
FULLY RECONFIGURABLE COMMAND KEYS (emulate be other editor if you like)!
TERMINAL DATA BASE...INSTANTLY configure is over 50 predefined terminals!
CONTROL and HIGH BIT CHARACTERS may be ae and edited!
DYNAMIC WORD WRAP/UNWRAP FULL CURSOR CONTROL (and then
EASY to SET TAB STOPS - GLOBAU/SELECTIVE/LITERAL/IGNORE CASE I REF LACE PRINT, SAVE, INCLUDE, MOVE, COPY, DELETE IONAL AUTO SCROLL+ GOTO PAGE N/ LINEN COMPACT on disk and in RAM. (even the 16-bit versions are only 25k bytes)!
AFFORDABLE... I ral ata fair price is our motto R available FREE on your Local Bulletin Board or for $10.00 from TCI
. I'm ready to step up to EXPRESS... please send:
copies EXPRESS 2.2 at $29.95 + $5.00 shipping and handling copies EXPRESS 1.0 at $10.00 + $2.00 shipping and handling
My computer uses: PCDOS — MSDOS — CPM-86 — CCPM-86 — CPM-80 Kaypro Il — Kaypro 2X,4,10 — Osborne 1 SSDD — EPSON QX-10 Morrow MD2 — Morrow MD3 — MS-PCDOS STD 5" DSDD — XEROX 5" DSDD
Disk format: (Circle One)
(Cirle One)
IBM CPN-86 5" SSDD — Zenith Z90 — 8" SSSD — Apple 35 TRK CPM
Other 5" Computer Send Check or Money Order to: Name
TCI Address 17733 205th Ave. NE Woodinville, WA 98072 Washington residents must add 8.1% Sales Tax
MASTER CARD
‘Tomorrow's
Phone Day
uses 7438 NAND gates to drive the outputs (as suggested in the drive manual) while the new controller uses 74LS38s. Is this enough difference to cause what is happening? Somebody clue me in....
Editor’s note: Low power Schottky parts (74LS38s in this case) have relatively weak outputs (which isn’t a problem as long as they are talking to other LS parts). Stan- dard TTL parts (7438s) generally have much stronger outputs and that’s obvious- ly important in this application.
Mastercard/Visa
Sides Den
Ciy___s SiC‘ State ___. Zip
PHONE ORDERS 1-206-644-3133 Computine
| NNOVATIONS
The Lesson
The great deals found in Taiwan are
not all peaches and cream (or straw-
berries and sugar). You never know
exactly what you'll get. In fact, you
can’t even guarantee that the screws holding your winchester drive in the
~ cabinet will be the right size. Most of
the time they aren’t. Either they’re too
‘big and the threads are stripped or
they’re too small and held in with
_ (continued next page)
: MICRO CORNUCOPIA, #32, Oct-Nov 1986 45
66 WORLD
(continued from page.45)
fingernail polish. I no longer have ANY respect or trust AT ALL for Taiwanese computer manufacturers. At least none of them we’ve dealt with so far (and they were the best out of the 30 or so we met with when we went to Taipei). Oh, yeah. Except Multitech. But they couldn’t sell to us anyway. _ By the way, the 3’’ drives we pur- chased are Panasonic (Matsushita, Na- tional) ‘‘super thin’’ 363s, and they are wonderful little units indeed. Small, light, low power, quiet. I only wish we had such good luck at the other end of the cable.
On The Pleasant Side
We didn’t buy the monitors for our clones from Taiwan. We bought them from a local junk dealer who had yanked them out of an old IBM main- frame before he melted it down for scrap (what a lovely sight that must have been). Of course we tried one before we bought, and it worked.
The price was right (about $15 each) but they all had 110 volt transformers and no cabinets. Ergun (my compan- ion on the Taiwan trip) is handling the reconditioning. He’s getting the cabi- _nets made by a friend who usually builds speaker cabinets. The trans- formers will be hefty 220 volt affairs custom made by a local manufacturer (oh, the strange and wonderful things that can be had in this country).
In the meantime I’ve sacrificed the monitor from my Slicer so Ron can use it on the X16 over at the main office. This has forced me to hook my Slicer up to a serial terminal (a Wyse 50) for the first time in several months. I can’t BELIEVE how fast it is! On the clones you can actually see the cursor moving across the screen; on the Slicer/Wyse you can barely even see the screen scroll! Typing the ‘‘next page’’ key in the editor brings up the entire next page long before I can even start to say “‘one thousand one’’ (somewhat faster than memory mapping on a clone with a color card, although slightly slower than a monochrome card). I’m talking running MS-DOS and going all the way through the operating system for each and every character here!
Clones may be trendy right now, but for sheer word-chopping speed I still couldn’t do without my Slicer. Espe- cially since somebody took away all my 40-track drives, and the Slicer is the only system I have which knows how to double-track a 40-track MS- DOS format on an 80-track drive.
Environmental Awareness “2 Okay. Enough -chit-chat. On to con- structive things. You’ll remember that
in the last episode of ‘’86 World’’ we learned how to call one program from within another program by using the DOS “’Exec’’ function call. It’s a useful tool to have tucked off in your \tur- bo\lib and \asm\lib directories some- where.
Very useful, but limited in an incon- venient way. The problem with the Exec procedure given last issue (for Turbo Pascal, Assembly Language, and Microsoft BasCom) is that it as-
Our EXTERNAL systems install in seconds! Includes an attractive vertical cabinet with integral P/S and fan, 3 foot cables. Everything necessary to plug in and go!
$465. 5mb External
Kaypro (4,2,4,10)
Big Board Ill
Xerox 820-11!
Micro Mint SB-180
Gemini Zorba
Osborne
Sanyo MBC-41150/ 4460/4200
AVL Eagle (with mods)
Alspa I!
Epson QXx-410
Morrow MD-2,3
2-80 S-100 Computers
aeons CA i SO
262626 66 £62668 66
SOURCE files. No programming required.
desired floppy format.
46 MICRO CORNUCOPIA, #32, Oct-Nov 1986
Advanced Concepts “Mini-Winnie’,
HARD DISK SYSTEMS
For your 2-80 Computer!
COMPLETE SUBSYSTEMS
Plug in and run! Includes software, documents, cables, brackets as req'd.
$665. 40mb External
You may buy our controller, software, cables & P/S enclosure for $395. Add your own ST-506 family disk drive (up to 26mb) to complete your system!
Compatible with most other add-ons, Including Microsphere & Advent RAM disks, SWP CoPower/RAM disk, Pro-8 Family, Advent Turbo ROM, all soeedup and double/ quad density upgrades ZCPR3, Microshell, Plu’ Perfect 2.2E.
The key to the Mini-Winnie system is the INSTALL program, which links your drive and your computer, the way. YOU want it. Extensive menu options allow selection of any ST-506 Compatible drive, as 1 to 4 logical drives within CP/M at any drive letter. Diagnostic and format capability provided to match the installation. Distributed with
We have club, user group, OEM/Dealer programs. Call for quantity schedule. If for any reason you are not satisfied, return for full refund within 30 days. All systems warranteed for 90 days. Info and manual $8.00 credited with your system purchase.
ORDER INFO: Call (305) 482-7302. Terms: UPS cash COD, check or M.O. Please allow 4 weeks for delivery. Fla. add 5% tax. Shipping extra. Please specify
Advanced Concepts Engineering & Consulting 89