The Rainbow Vol. 09 No. 01 - August 1989 - TRS-80 Color ...
The Rainbow Vol. 09 No. 01 - August 1989 - TRS-80 Color ...
The Rainbow Vol. 09 No. 01 - August 1989 - TRS-80 Color ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
difficulty. Even at the lowest level, I had<br />
trouble and pushed my troops too hard. It's<br />
a good thing that thi s is only a game, or I'm<br />
afraid that the good old United States of<br />
America would be populated with lots of<br />
red flags!<br />
(SPORTSware, 1251 S. Reynolds Road, Suite<br />
414, Toledo, OH 43615, 419-389-1515; $21)<br />
1 Software<br />
Nine-Times<br />
An On-Disk<br />
OS-9 Magazine<br />
-David Miller<br />
OS-9 Level II I<br />
OS-9 enthusiasts will be interested to<br />
know that there's a new magazine on disk<br />
devoted to the OS-9 operating system. It's<br />
called Nine-Times, and it's published six<br />
times a year. <strong>The</strong> magazine requires the use<br />
of a CoCo 3, l28K or 512K RAM, and OS-<br />
9 Level II. A joystick or mouse is recommended,<br />
but the program will work with<br />
the keyboard arrow keys using information<br />
provided in the four-page printed<br />
instructions. Nine-Times can also be installed<br />
onto a hard drive if you have one.<br />
Running the magazine is fairly straightforward,<br />
assuming you have some operating<br />
knowledge of OS-9 Level II. 512K<br />
users will find it a lot easier than will l28K<br />
users, who must go through several steps to<br />
make room for Nine-Times.<br />
If you have 512K, all you have to do for<br />
starters is merge the STDFonts and STDPt rs<br />
files contained in the SY S directory on your<br />
OS-9 master disk. You will also have to<br />
load the RunB, SY sea ll and In key modules<br />
from the CMOS directory of your BAS IC<strong>09</strong><br />
config disk. <strong>The</strong>n after loading in any of the<br />
window screens other than the standard 32column<br />
screen, you enter at the prompt:<br />
OS9 : mag. After a few seconds the colorful<br />
Hi-Res main screen of Nine-Times appears.<br />
Nine-Times uses the familiar point-andshoot<br />
technique for selection of its options:<br />
Print Files, Departments, Articles and<br />
Programs. Each selection results in a pulldown<br />
menu with a list of various options<br />
avail able. Selecting Print Files lets you<br />
send text files to a printer if you have one<br />
hooked up. Departments has several files<br />
that tell you all about advertising rates in<br />
the magazine, subscription information,<br />
ordering back issues and similar information.<br />
<strong>The</strong> Articles selection contains various<br />
newsworth y items of interest, as well<br />
as tutorial programming examples. This is<br />
also the section of the magazine in which<br />
98 THE RAINBOW <strong>August</strong> <strong>1989</strong><br />
you will find editori al comments. Selecting<br />
Programs results in a li stin g of programs<br />
available in that iss ue of the magazine.<br />
Making a selecti on of a program li sted<br />
gives you a preview of what the program<br />
does and how to execute it, but you have to<br />
run the program outside of the Nin e-Times<br />
magazine environment. I think it would be<br />
a nice feature to be able to run the programs<br />
from within the magazine framework, but,<br />
as it is, you can ex it the magazine to get<br />
back to the OS-9 prompt. Because Nine<br />
Times is memory-resident, you can simply<br />
type r unb ma gaz ine to get back into the<br />
magazine environment. <strong>The</strong> rev iew iss ue<br />
contained an assortment of l 0 ready-to-run<br />
OS-9 utility programs. <strong>The</strong>y all worked<br />
fine and are currently enjoying a spot on my<br />
hard drive.<br />
Nine- Times is just the kind of software<br />
the OS-9 community needs. If OS-9 is to<br />
become a more popular operating environment,<br />
then it must also lend itself to becoming<br />
a little more user-friendly. Nine-Times<br />
is certainly that. <strong>The</strong> on-disk magazine is a<br />
nice idea, and editor Jordan Tsvetkoff is to<br />
be commended for such a well-designed<br />
program.<br />
(JWT Enterprises, 5755 Lockwood Blvd.,<br />
Youngstown, OH 44512, 216-758-7694;<br />
$34.95 per year for six issues)<br />
-Jerry Semones<br />
1 Softwar-e·--_c_oc_o --'-- 1, _2 &_3_,1<br />
Roots-<br />
<strong>The</strong> Basics of<br />
Assem.bly Language<br />
One of the things that keeps most people<br />
from programming in assembly language<br />
is the amount of work it takes to do very<br />
simple tasks. To print "he ll o" on the screen<br />
in BASIC, one merely types PR IN T " HELLO " .<br />
In assembly language, doing the same thing<br />
requires many lines of code. That's why<br />
GSW Software has written Roots. Roots is<br />
an assembly language source code file that<br />
contains over I 00 routines that take care of<br />
everything from disk and cassette I/0 to<br />
reading the joystick ports to clearing the<br />
screen. Most of the routines will work on<br />
any <strong>Color</strong> Computer, but some will work<br />
only on the CoCo 3.<br />
Roots comes on a di sk that contains two<br />
files, ROOTS.ASM and FONT . DAT . <strong>The</strong> file<br />
ROOTS. ASM is an ASCII file containing the<br />
assembly source code. FONT . DA T is a font<br />
file containing a font for printing text on<br />
hi gh-resolution graphics screens. <strong>The</strong>oretically,<br />
the programmer who wants to use<br />
some of the routines from Roots just puts a<br />
line in his program that instructs hi s assembler<br />
to include the ROOTS . ASM source code.<br />
<strong>The</strong>n whenever he wants to use one of the<br />
routines, he sets up the required conditions<br />
and calls the routine with a J SR routine. For<br />
instance, to clear the CoCo 2 text screen to<br />
black, the following two lines are required:<br />
L DA ItO<br />
JSR CLSA<br />
When I program , I use th e C compile r<br />
and RMA under OS-9. However, before I<br />
purchased OS-9, I used <strong>Color</strong> Disk EDTASM<br />
for my assembly language programming.<br />
So, I pulled it off the shelf and shook off the<br />
dust. EDTASM would not load or include<br />
ROOT S. ASM. Every time I tri ed to load it I<br />
would get a bad line number error. I booted<br />
OS-9 and did some checking. As I mentioned<br />
earlier, ROOTS. ASM is a straight ASCII<br />
file. EDTASM has its lines strictly formatted<br />
with line numbers and tab characters.<br />
After deciphering EDTASM's file format, I<br />
wrote a program to convert ROOTS . ASM to<br />
an EDTASM file. Once this was done, the<br />
file loaded and assembled perfectly. I then<br />
set out to write some programs.<br />
I have a natural bent toward graphics, so<br />
I attempted to write a graphics program .<br />
Almost immediately I had problems. It<br />
seems to me that many of the CoCo 3<br />
graphics routines were written specificall y<br />
for a 128K CoCo. Since my CoCo has<br />
512K, this caused problems. <strong>The</strong> routines<br />
would not allow me to set up the graphi cs<br />
screens where I wanted them, and would<br />
only clear them if they were within the 64K<br />
address space of the program. From my<br />
examination of the code, I believe they<br />
would work in 128K, but I had to modify<br />
them so they would do what I wanted them<br />
to do. <strong>The</strong> other routines I tried worked<br />
fine. <strong>The</strong> manual documents them quite<br />
well, so any programmer should be able to<br />
change things to suit hi s own tastes.<br />
I found Roots to be a well-designed<br />
package. <strong>The</strong> 35-page manual provides<br />
complete descriptions of all the routines<br />
and variables used in the source code file,<br />
and also instructions for calling them. I<br />
recommend that the author include an<br />
EDTASM version of the file because I'm<br />
sure many people still use it. Also, the<br />
routines such as LPEEK, LPOKE , LPUT, LGET ,<br />
etc. , should be generali zed to 512K. Aside<br />
from these criticisms, I thought Roots was<br />
very helpful and a great timesaver. If you<br />
plan to program in assembly under Disk<br />
BASIC, this is for you.<br />
(GSW Software, 8345 Glenwood, Overland<br />
Park, KS 66212, 913-341-3411; $25)<br />
-Robert L. Marsa