Upload
cubemanpdx
View
219
Download
0
Embed Size (px)
Citation preview
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 1/72
46noJoqJe:)s()£vu3assep ssep~ ! O J ~ P J ! 4 ~
aJqwouu3 )fIne
• <.Pd i.Mld
I!PI!UI!:>
selsod
POPd a6e1<;;Cld
Isodepeue:> +1
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 2/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 3/72
520 FelloWShip R
oad SUite
82
06 - M
' , Ount L
aure l, NJ 08
054 (609)
86
6-
1
001
-- -
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 4/72
Deal9f Inquiries ;Invited \
(c cornmadare
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 5/72
Contents
Laser Projections - A Meeting Of Art
And TechnologyGreg Lowry
"Cover story. Technological art, using lasers,
electronics and computers."Machine--
Level-G
on page 14
Bennett's Tutor ia l- Relative Files
Chris Bennett
"Random-access disk files explained"
Machine-ALevel- I
on page 19
Th e Beginner And Th e Disk - Part IV
David A . Hook
"How to scratch disk files and validate
(collect) disks."
Machine-A
Level-B
on page 22
Th e Commodore B-128 Computer
Jim B u t t e ~ f i e l d "A description of a little-known computer."
Machine--
Level -G
on page 26
C-64 MI L Development System]. Allan Farquharson
"A Product Review."Machine -C
Level - A
on page 28
Menu Handling - Part I IJohn Easton
"Some useful BASIC routines for user
friendl y programs."
Machine-A
Level- I
on page 31
TPUG COMAL Course-Part IIIBorge Christensen"How to create branches in COMAL."
Machine - C/ PLevel- Ion page 35
Integral Adventure Game
Brad Bjorndahl
"Exploring number theory with the aid of
a computer."
Machine-A
Level- I
on page 39
SuperPET 6809 Assembler-Part IV
Brad Bjorndahl
"Machine language for the 6809 processor."
Machine-S
Level-A
on page 41
U sing Th e User Port - Part IDavid Williams
"How to program your computer's user
port."
Machine-A
Level-G
on page 45
Forecasting With Th e 8032-Part IV
John Shepherd
"The use of movi ng averages in forecasting."Machine- P
Level- I
on page 50
Accurate C-64 Timekeeping
Glen C. Bodie
"Keeping accurate time in C-64 programs."Machine-C
Level- I
on page 51
A=all, C=C-64, V=VIC 20, P=PET/CBM, S=SuperPET, a=none
G=General, B=Beginner , I=Intermediate, A=Advanced
C-64 Thermostat
John Vanderkooy
"Using a home computer to automate home
comfort ."
Machine - C/Y
Level- I
on page 55
Th e New SYS
Robert Rockefeller
"How to make full use of the Commodore
64 's improved SYS command."
Machine-C
Level-A
on page 59
Departments
Books 62
- Commodore 64 Color GraphicsJohn Moore
- Defending Th e Galaxy
Lon'en Gabel
Calendar of TPUG Events
Editorial
Games
- WizardMalcolm O'Bn'en
- Trivia
George Sht"'1nian
- Creative CreatorRich Westerman
- Kids On KeysRich Westerman
Ham Operators
Help!
Product Parade
This And That
Don's Bradley
TPUG Associate Club
Chapter Meetings
TPUG BBS Password
TPUG Contacts
Il5
60
10
8
64
17
12
20
4
TPUG magazine page 3
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 6/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 7/72
c
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 8/72
For Use WIth COMMODORE'S VIC-20®* and C-64®*
S149.00
presents the
7IMlPiiJl.Orp1II.IfNr1J!JBuser selectable column width:24 . 32 or 40 column printout
No additional hardware needed. Connects directly toVIC-20®* an d C-B4 .®* The "IMPACT PRJNTER" uses
standard adding machine paper roll available most
anywhere.
USES: Program listings, screen copy, reports, mailing
lists, graphics etc .
FEATURES: Cartridge ribbon, uses standard 2.25"wideplain paper roll, 24, 32 or 40 COlUIIUlwidth capability,upper/lower case characters, graphic character set,double height printing, an d one user defined 6 x 8 dot
matrix character.
Copyr1gh t by F i d e l i ~ EJectronics, Ltd.-
*VI0-20' and 0-64' are trademarks of
Commodor e Business Machines, Inc.
PRO-TERM64INTELLIGENT TERMINAL PACKAGE
(C) 1984 Eo ANDERSON AN D G. FARMANER
40/80 column display
Informative status line
Extensive Auto-Dlal/Auto-logon commands
Upload/Download:
(Punter) (X/ON X/OFF) (.IMG FILES)
Ram Buffer options
Complete Disk support. DOS commands,dual drive, or two single drives
Complete Printer support
Transparent stream to Printer
Programmable Function Keys
Remote-terminal modes, (Mini BBS).(Visual phone answer)
Supports VT/52 an d Televldeo 910/920
terminal emulations
disk $46.95
.pFIDEUTY ELECTRONICS, LTD_
5682 AMBLER DR. , MISSISSAUGA, ONTARIO IAW 2K 9( 41 6 ) 62 5-7333
PLEASE PRINTNAME___________ HONE NO___f l I T L A D D ______________ _
ONTARIO RESIDENTS
o CHEQUE OR MONEY ORDER FUR $,___ LEASE ADD 7% SALES TAX
EXPIRY DATE
o MASTER CHARGE OR VISA NO . D T E ~ ____
ABACUS BOOKS
THE ANATOMY OF THE 1541 DRIVETHE ANATOMY OF THE 64MACHINE LANGUAGE BOOK OF THE 64TRICKS AND TIPS ON THE 64
$24.95 each
Wri te for our FREE catalog.
Suite 210. 5950 Ci:lte des Nelges. Montreal. Quebec H3S 1Z6
Money Order. Check. Dealer and distributor inquiries invited.
page 6 TPUG magazine
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 9/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 10/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 11/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 12/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 13/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 14/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 15/72
PET/CBM MULTI USER DISK SYSTEM
• ALLOWS UP TO SIXTEEN USERS TO SHARE DISK DRIVESAND I OR PRINTERS
• WORKS WITH ALL PET ICBM EQUIPMENT• 100% HARDWARE INTERFACED• NO ALTERATIONS TO SOFTWARE OR SPECIAL SOFTWARE RE
QUIRED• SOFTWARE TRANSPARENT - WORKS WITH ALL PET ICBM
SOFTWARE• LANGUAGE TRANSPARENT - WORKS IN ANY LANGUAGE
• NO SPECIAL COMMANDS USED• PROTECTS AGAINST SYSTEM LOCKUP
COMMODORE 64 MULTI USER DISK SYSTEM
• ALLOWS UP TO EIGHT USERS TO SHARE DISK DRIVESAND I OR PRINTERS
• WORKS WITH ALL 641VIC EQUIPMENT• BUILT IN IEEE AND 64/VIC SERIAL PORTS
(WORKS WITH ALL IEEE DEVICES)• 100% HARDWARE INTERFACED• NO ALTERATIONS TO SOFTWARE OR SPECIAL
SOFTWARE REQUIRED - SOFTWARE TRANSPARENT
• NO SPECIAL COMMANDS USED• BUILT IN 16K PRINT BUFFER• DISK DRIVE PRIORITY
IGREATER PRODUCTIVITY &LOWER COST
FOR BUSINESS AND EDUCATIONAL USE
4032 8032
40 TO 80 COLUMN CONVERSION
• EXTERNALLY SWITCHABLE FROM 40 TO 80 COLUMNS• EXTERNALLY SWITCHABLE FROM 80 TO 40 COLUMNS• CONVERSIONS FOR BOTH 4032's AND 8032's• 100 % SOFTWARE COMPATIBILITY IN EITHER MODE• HARDWARE (NOT SOFTWARE) MODIFICATION• ALL KEYS FROM 8032 EMULATED ON 4032• SPECIAL FUNCTION KEYS
COMMODORE 64. PET. AND CBM ARE ALL TRAD EMARKS OF COMMODORE BUSINESS MAC HINES. INC
MICROS HARE 64K PRINT BUFFER
• LOW COST• REDUCES LONG WAITS - SAVES TIME• ALLOWS YOU TO PRINT AND PROCESS SIMULTANEOUSLY• IEEE INPUT - IEEE OR CENTRONICS PARALLEL OUTPUT• WORKS WITH ALL PET I CBM SOFTWARE• NO INSTALLATION REQUIRED• ELIMINATES THE FRUSTRATION OF WATING FOR YOUR
PRINTER
MANUFACTURED BY :COMSPEC COMMUNICATIONS INC.153 BRIDGELAND AVE" UNIT 5,TORONTO, ONTARIO M6A 2Y6(416) 787·0617
TPUG magazine page 13
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 16/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 17/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 18/72
GRAPH 2
some system block diagrams
analog galvo scanning
signal
generarors
signalgenerators
signal
processing
signal
control
(your input)
signal
mixing
(control can be: keyboards , knobs, sliders, pedals, analog memory el c )
Analog
Control
as above
Oala
labl . of
Bil Pad
Digital Techniques
Digital computer technologyplays a
partin several stages of th eproduction of a laser display. For example, outlines of three
dimensional objects are often needed. These can be generated
digitally by feeding a computer with a set of co-ordinates represent
ing the three-dimensional shape of the object, then processing
these to project a two-dimensional outline. This can be done repeat
edly to portray the object in various orientations, and the sequences
of images can be recorded on magnetic tape, as described earlier.
When the tape is played through the laser projection system, ananimated, moving image of the object is produced.
Digital storage can also be used, in place of magnetic tape, to hold
the instructions for the production of images. A sequence of numbers,
representing successive X and Y positions of the laser beam, is
burned into an EPROM. Th e projection equipment can read these
numbers back to produce the image . Th e system which I usecontains many of these pre-programmed images, which I can call
up whenever I need them.
Conclusion
A dry, technologicaldescription of the processes which are used in '
laser projection can do lillie to portray the artistic aspect of my
work. In the creative process, I experience a sense of intimate
connection , a human interaction with software and hardware .This
linkage of the thought and emotion of the inner world with the
high technology of the outer world is, to me , a revelation which
creates a vision of a new reality . TPUG
(Editor's Note: The use of Commodore computers to dn've lighting .
equipment similar to that which Mr. Lowry has descn'bed is a topic which 1
.hope the Hardware Chapter will inv estigate ne xt spring).
page 16 TPUG magazt'ne
scanner
amplifier
scanneramplifier
jOySlick
forx-y
positioning
Scanner
Amplifiers
Digilal
10 Analog
Converter
(analogldigilal pooilion deleClor sca nning ' YSlem)
LASER
",,"
horizon(al ga)vo
control
_ _
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 19/72
Commodore produced good computers
that were economical for families.
Ou r president wanted to provide
Commodore owners with betterperipheral products.
In less than two years, MSD was
shipping interfaces that expanded
the Commodore 64, VIC-20, and
PET computers into business and
developmental applications .. . THE
SERIOUS WORLD OF COMPUTING.
Next, determined to BUILD IT BETTER,
MSD developed SUPER DISK I and" .. .
exceptionally fast and durable disk
drives that NEVER OVERHEAT.
MSD's dual drive formats, copies, and
verifies in less than two minutes . . .
compared to 30 or 40 minutes with
TW O Commodore 1541s. This
unparalleled speed has made SUPER
DISK" the hottest product introduced
br the Commodore line of computers!
Add the six month warranty, and you
can see why our dealers and their
customers believe in us. MSD
SYSTEMS, INC. .. . Call us today for
your nearest local dealer.
Our RS-2l12 Serial Interfaces allow you toconnect printers, modems, plotters, and otherinput/output devices to your 64 or VIC-20.
A para"el interface allows direct access between acentronics printer and your software program,saving you loading and waiting time. Our CPI is
compatible with most software written for the 64and VIC-20.
For professional-quality video and audio output,our Monitor Link Cables can connect your 64or VIC-20 to a high-resolution black/white orcolor monitor, or a CRT terminal, and to a stereosystem.
The CEX-4 Expandoport gives you four additionalports for interfaces and peripherals.
Save time and hassle with the greaterspeed of an IEEE Interface. The unit is'transparent' to your computer's expansion port,allowing hookup to any peripheral withoutinterference. With this interface, your 64 orVIC-20 can gain CBM/PET-type control over theIEEE-488 bus.
Dealer an d distributor inquiries invited.
~ ~ J I : J I - ~ i ~ 1 ' i j m # ~ t ~ m . I I ~ ¢ ' ~ I I " " " " " " " " " " " " . 10031 Monroe Dr. • Suite 206 • Dallas, Texas 75229
214-357-4434 • Outside Texas 800-527-5285
TPUG maga:£ lI e page 17
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 20/72
Programmers GaUd Products Ltd.255 ManuLife Place
xCOM
10180· 101 StreetEdmonton, Alberta TSJ 3S4
Telephone (403) 428·6229
100% Certified
SSDD - $1 .60
DSDD - $2.50
KS
Minimum Quantity 50 Disks Per Order
VISA AC<EPTED
Money Back GUaran tee fNot Fully Satisfied
Introducing xCOM . the total commllnicationssoftware package for the Superpet. (6502 Side)Features include:
- XMODEM protocol for file transfers.
- Multiple baud rates - 300 to 19,200. . . . . .· 20K screen scrolling buffer
· Complete disk and printer interfacing . .........,
- Line edit mode .- Communications status line on screen.· And much much more
VIC 20 (In (i CommOdore 64
Co mmodure Ele ctroniCS lid
d m a r ~ s of Commudore
~ l n c s s Ma c tHIl t1S
xCOM $79.95 xCOM 64 $59.95 for CBM·64
Also Ask About
VIControlierWireless remote con tr olsys tem fo r the VIC-20
and CBM ·64 . Use w ithBSR and Levi to n remote
receiver modutes. $89 .95.- C1ia:VSA' : - ' " . _ .J
COMsenseInput device for theVtC ·20 and CBM·64 .
Pro vides 4 open icloseanrJ 2 analog inp .ut s.$64.95
COMclocklAUTOboot
Clock /c alendar cartridgefor CBM . 64 with battery
backup and auto 's ta rtsoftw03re in ROM . $89.95
by Genesis
- St ep motor driven' from
CBM - 64· Joystick contr ols o r
program co ntr o ls .· Learni ng mode.· Ultraso ni c scanning.
$275.00
COMvoice by G enesis
A speech syn thes ize rth at ex tends the
power of speech toCommodore 64.
Engl is h·to-Speechco nversion. $154.95WIE,ter nal Speake r $169 95
Miln e's Computer ContrOl Systems 62 Wood Cres cen t Reg i na , Saskatchewan S4S 6J7 Ph : 1-306-584-1988
page 18 TPUG magazine
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 21/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 22/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 23/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 24/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 25/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 26/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 27/72
Fi\t' 11' )\1 '",- .)l
....h r ~ - * " : · , . . ' t " ~ \, C\t t . \ t ~ l r t \ o
Please &end me _ copy/copies of the Commodore Reference Diary 1985.
141565, 01 S6.95 ""c h.
Add 5% lor .hipping and handling per order.
_____ heque_ ____Money Order (No COD's or cash),
________ _ VISA,__________M.slercard.
Bank Expiry Dat e
PoslaJ Code
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 28/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 29/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 30/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 31/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 32/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 33/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 34/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 35/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 36/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 37/72
"
TPUG COMAL COURSEBorge ChristensenTonder, Denmark
Part IIIIn Parts I and II of this series (TPUG Magazine, July and August September 1984) Mr. Chn'stensen discussed COMAL p7'ocedures,
variable-passing, recursion and conditional looping. In this article, he explores methods of bra7lching .
5. HOWTO FIGURE OUT A STRING.
Clear the workspace and the screen and enter this fun ct ion:
0010 FUNC VALUECTS}0020003000400050006000700080
0090010001.10
NUM:=OFOR C:= l TO 8 DO
IF TS(C:C)="l" THEN
BIT:=lELSE
BIT:=O
ENDIF
NUM:+NUM+BITEND FOR CRETURN NUM
0120 ENDFUNC VALUE
0130 IIT ype RUN and enter this command:
PR IN T VALUE(HOOOOIOOO " )
Note the number returned by the function. Th en try these commands one by one:
;VALU E( HOOOOI11 1")
;VALUE(H 10000000" )
;VALUE("l1 1111 11" )Th e character ";" may replace the keyword PRINT. I think you have figured out what the function is doing. In any case thi s is how
it operates:
PRINT VALUE("OOOOll11")
/FUNC VALUE(H)
NUM:=O
FOR C:=l TO 8 DO
IF H(C:C)="l" THEN
BIT:=l
ELSE
BIT:=O
ENDIF
NUM:+NUM+BIT
ENDFOR C
RETURN NUM
ENDFUNC VALUE
Th e function is called; i.e. you
ask for a number to be returned
and printed out.
Th e string "00001111" is passed
as a value to the formal
parameter T$.
A value of 0 is assigned to NU M
Th e string held by T$ is scannedcharacter by character, and
if the C'th character is a "1"
BI T is assigned a value of 1,
but if it is anything else
BI T is assigned a value of O.
Th e pr esent value of NU M is
doubled and BI T is added to it ,
thus the binary equivalent of
T$ is accumulated in NUM
whose value is returned to be
used in the calling statement
in the place of function.
End of definition of VALUE. continued overleaf
TPUG magazine page 35
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 38/72
One of the statemen ts in the FOR loo p may need a littl e more attention:
IF T$(C:C)=="I" THEN
Th e expression T$(C:C) returns a one character substring of TS, i.e. s impl y the C't h character of TS. rr this character is equal to " I",
the Boolean expression in the IF statement comes out T RUE ; ot herwise it comes o ut FALSE. W sha ll hav e more to say about
substrings later in this article.
In CO MAL th e truth vallie TR U E is repr ese nted as a numerical I , an d the truth va lue FALSE is represented as a numerical O. Th isfact can be uti lized to simpl i y th e function V ALU E.
Remove the lines 40-80 by us ing the command:
DEL 40-80
and insert thi s one :
40 BI T :==(T$(C:C)=="I")
Ty pe th e command RENUM (don't forget to press < RETURN » and then LIST to see th e foll owing on the screen:
00100020
00300040005000600070
0080
FUNC VALUE <T$)NUM:=O
FOR C:=l TO 8 DOBIT:=(T$(C:C)=ll")NUM:+NUM+BIT
ENDFOR CRETURN NUM
ENDFUNC VALUE0090 II
Note h ow the lin es hav e been renumbered to become o rd erl y sequ enced . Type R N an d then use some callin g comman ds like th e
ones g iven above to test the function's wor king.
Since it is on ly tested whethe r an individua l cha racter is a " I" or not , ot her patterns than those ap p li ed before may be used. Tr y
(;ommands lik e this:
;VALU E("ABCDIII I")
or sim p ly
;VALUE(" IIII ") There are four blanks in the string
and not e the re sults. Then change lin e 40 to become:
BIT := (T$(C:C)=="X")
T ype RUN an d tr y this command:
PRINT VALUE(" XXX X") There are four leading blanks.
Then try some of your own. What is the printout from thi s one:
PRINT VALUE("TXPXUXC;X ")
It is an important fact that patte rns can be ev aluated in different ways. We ar e go ing to used thi s ex tens ive ly in th e fo llowi ng.
Important note . In revision 0. 14 if an error occurs during a direct mode ca ll of a function or a procedu re, th e prepass is injured .
Therefore in such case you have to r es tore the internal states by ap p lying the RU N command before yo u can use the function or
procedur e aga in . In revision 2.00 the pr e pass state recovers aut omatica lly after a runtim e er ror.
As yo u ma y know a l rcady, a nu m ber writte n in eight bits - binary digits - is ca ll ed a byte . So V ALU E simply converts a string
that represe nt .s a byte int o a decimal number .
page ,'16 TI'UG ma/{azine
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 39/72
Enter the command
AUTO 100
and add this procedure to the one already in workspace:
01000110
012001300140015001600170
PROC INTERPRET(LINES)FOR 1:=1 TO 3 DO
BYTE:=VALUE(LINES(I*8-7:1*8»PRINT BYTE;ENDFOR IPRINT
ENDPROC INTERPRET/1
Type RUN and enter these commands (don't forget < RETURN > after each:
INTERPRET("XXXX xxxxxxxx XXXX")
INTERPRET(" XXXX xxXXXXXXXX XXX X ")
INTERPRET(" xxxxxxxxxxxxxxxxxxxx ")
24 chars. in all
Each string may be looked upon as a representation of three bytes; each "X" being a "I" and each blank being a "0". And each call
returns 3 decimal numbers, one for each byte .
Here is how INTERPRET works:
INTERPRET("XXXX XXXXXXXX XXXX")
It'PROC INTERPRET(LINE$)
FOR 1:=1 TO 3 DO
B YTE:=VALUE(LIN ES(I*8-7 :1*8))
PRINT BYTE;
ENDFOR IPRINT
ENDPROCINTERPRET
Let us take a closer look at this line:
BYTE:=VALUE(LINE$(I*8-7:l*9)
Th e string constant is
passed as a value to theparameter LINES, and the
value of LINES is then
divided in three substringseach of which is passed on
to VALUE. Th e numerical value
returned is assigned to BYTE
and this BYTE is displayed.
A linefeed follows,and all is done.
If I is equal to I, the substring LINES( I :8) is pointed out, which means the first eight characters of the string that has been assigned toLINE$. This eight-character string is taken to VALUE for evaluation, and the result is assigned to BYTE. Next the substring
LIN B(9: 16) is picked up, and finally the substring LINES( 17 :24) for similar processing.
What do you get out of this command:
INTERPRET("EXTRA FOR YOUR NEXT XMAS")
Tr y to make an answer without using the computer; then compare with an actual run.
Change line 130-150 of INTERPRET and add some lines to the program to get:
0010002000300040
FUNC VALUE(TS)NUM:=OFOR C:=l TO 8 DO '
BIT:=(TS(C:C)="X")0050 NUN:+NUN+BIT0060 ENDFOR C0070 RETURN NUN
0080 ENDFUNC VALUE0090 / /
0100011001200130014001500160
PROC INTERPRET (LINES)
FOR 1:=1 TO 3 DO
B Y T E : = V A L U E ( L ~ N E $ ( I * 8 - 7 : I * 8 » PRINT USING" i t i t i t " : BYTEVALUE' OF' TPUG: +BYTE
ENDFOR IENDPROC INTERPRET
0170 I I
continued overleaf
TPUG magazine page 87
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 40/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 41/72
· AT BLACKJACK THE PLAYER, IF HE PLAYS RIGHT, IS EXPECTED TO WI N IN THE LONG RUN!! . . . "
FOR THE COMMODORE 64
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 42/72
The Ultimate Blackjack game
COMPLETE WITH SUPER GRAPHICS AND SOUND EFFECTS
WORLD CLASS CASINOBLACKJACK
$49.95
Master the skill and self-control needed to play winning blackjack. Learn the most effective yet the simplest " cardcounting" system, which is used by the world 's most successful internati onal b lackjack players. You can simulate the rulesof the best casinos around the world where you ought to be playing and winning. Play one hand against the dealer and lea-rnthe basic strategy using the "card count" system, or play up to seven hands and see how well you can play under real casinoconditions.
Playing one hand: the computer works the "card count", displays the basic strategy, all cards left in the shoe, each card'schance of being drawn, the percentage chance of going bust, and keeps track of all bets. By choosing different dealingspeeds, you can progressively improve your"card count" until you can keep up with the fastest dealers. You can also get asummary of your game at any time during play.
BONUS -Included is a separate 37K MIL program that lets up to 7 different players play blackjack against the Casino at thesame time maki ng the game as close as possible to the real thing.
World Class Casino Blackjack was actually written by an international blackjack player who has won thousands of dollars incasinos all over the world. It is the most powerful tool to the player who wants to master the skill of playing winning
blackjack.
World Class Casino Blackjack is the only computer game at which, if you are good enough to beat the dealer, you are goodenough to win a million dollars.
WORLDS
BIGGEST
BOOKSTORE
20 Edward St.Toronto, Ont.
COLES
the book people!
EATON CENTRE
Toronto, Ont.
AVAILABLE AT
COLES
the book people!
726 Yonge St.
Toronto,Ont.
COLES
the book people!
COMMERCE COURT
Toronto , Ont .
~ ' " ~ O ~ Purchase World Class Casino Black at any of the above locations and receive absolutely FREE a copy of the book .
"BEAT THE DEALER"
By Edward O. Thorpe
"World Class Casino Blackjack" is published by NOVA COMPUTER SYSTEMS.
Commodore 64 is a Trademark of Commodore Business Machines Inc.
page 40 TPUG maglLlllle
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 43/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 44/72
0001:)OOOI)
DOOE
0012
00140017
0017
0019001B
00lC
01FE
0201
0204
0131
0131
013401350138013A
013D
0141
0144
0146014A
014C
0150e150
000000000001
0002
00050008OOOA
00 0 I)
OOOE
0011
00120012
0013
disp lay top an d bottomId x 1t$8000
add z
ld y 4t$86eO
Id b 1, $50
ld a a s t e rloop
s ta ,x +s ta ,y +decb
u n t i l eq
Id b z_pt r
ldx 1Fz_move c t r
de c b ,x
eq u *ldb z c t rincbcmpb max
-z
i f l ts tb z c t rldy next _z_posld d rc_poss td ,y++
s ty next _z_posldb 1 ' zs tb [ r cadd r ]
endi f
r t s
ca lc rcaddr equ 'Ok
-decadecbs tb co l
c l r zeroldb 1F$50
mu laddd colu'Cln
addd # $8000
r t scolumn rmb 0zero rmb $0 1
co l rmb $01
page 42 TPUG magazine
LISTING 1row boundar ie s
s to re an a s t e r i s k from $8000 to $804fand from $86eO to $87 l f
LISTING 2decrement the number of
; moves l e f t to the zombie
LISTING 3
increment the zombie coun te r
i f zombie counter i s l e s s than max
save the zombie counter
and save the row/column p o s i t io n
and d i s p l a y a zombie
LISTING 4on e n t ry , row i s in A and column in Et h i s i s to count rows and columns froDo ins tead of 1 so the c a lc u la t io n i s c o r r e c t
the row number i s still in reg A
m u l t i p l y the row number by 80
ad d on the column numberad d the screen address o f f s e t
16 b i t column value
8 b it column value
CLEARANCE SALE C-64 4 SLO
CLEARANCE SALE OF 4 SLOT EXPANDER
BOARDS FOR COMMODORE 64 by XETEC
//
/ TeleTaikTelecommunlcadons
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 45/72
DEALER INQUIRIES INVITED
REG. PRICE $119.00 SPECIAL CLEARANCE
PRICE $89.00 ••• Save $30.00
PLUGS into your Commodore 64 memory expansion port.Allows you to insert up to 4 CARTRIDGES at one time.
COMPLETE with Reset switch. Fused power, plus sparefuse, GOLD PLATED CONTACTS. Three status indicators,for each slot, premium grade components. One YEARWARRANTY COMPLETE DOCUMENTATION.
MASTER CARD, VISA, MONEY ORDERS, PERSONALCHECKS TAKE THREE WEEKS TO CLEAR . PHONE ORDERS
ACCEPTED (we deduct $1.00 for the cost of your call).Phone 705-437-3187 from 9 a.m. to 10 p.m. Mon . to Sat.
MAIL ORDERS TO:
B & R ENTERPRISES INC.
PEFFERLAW, ONTARIO
LOE 1NO
ONTARIO RESI DENTS ADD 7% PROVINCIAL SALES TAX I($6.23) . Shipping and Handling Insurance $6.00 per unit . I
•• • DEALER INQUIRIES INVITED. • • IFree money saving catalog with every order :- - - - - - - - - - - - - - - - - - - - ~ - -
fo r your Commodore 6 4 ~ TeleTalk - has the same features as other
more expensive terminal programs.
Compare these features:
- Uploading of text or programs with Block,Xon/ Xoff, CP/M (Xmodem), Pet transfer, or
prompted protocols- Downloading of text or programs with
CP/M (Xmodem), Pet transfer protocols, or
buffer storage (42 K)- Transfer of graphics, V/pro files, or other
information is possible with theCP / M Direct-to-Disk protocol.
- ASCII or Commodore Modes.- 8 Programmable Macro Keys.- 12 Hour Timer and Status Line.- Output to serial printers.
- Terminal Set-Up file and disk commands.
Available on disk for $41.95 + 7% PST
From: ThunderWare SoftwareRR # 5
Thunder Bay, Ontario P7C 5M9
HELP IS HEREFOR C-64 & VIC-20
THE LITTLE BLACKBOXRESETSWITCH• REVIVE and SAVE all CRASHED BASIC PROGRAMS
even after entering command "NEW"
with aid of included program listing
• Saves hours of work in retyping• Resets computer from AN Y BASIC program lock-up
• Easily installs in USER PORT
• Will not void CBM warranty• Saves wear and tear on computer
• Diode Protected Circuitry
• lifetime Warranty!
Now only 14.95 CDN (11.95 U.S.)
(LIMITED TIME OFFER!)
Please send check or money order to:
BESCO PRODUCTS203 - 8060 Granville Ave., Richmond, B.C., Canada V6Y IP4
Ph: 604-278-5115 DEALER INQUIRIES INVITED
TPUG lIlagaz ll1c page -1:1
OLYMPIAR.O.
LETTER QUALITY
PRINTERSCOMPACT 2
LETTER QUALITY
,""'"
IF .• .
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 46/72
DAISY WHEELPRINTER
INC L U 0 E SRS232C and
parallel interfacTractor feed
10,12,15 pitch
$549 .00
DAISY WHEELPRINTER/TYPEWRITER
INC L U 0 E SFull featured
typewriter withcorrection
Parallel centronicsinterface
On line k.ey
$795 . 00
EXCEL TYPEWRITERS LTD.86 Sheppard Ave. West
North York.,OntarioCanada (416) 225-4121
VISA MAST[R CARD
Now there's PASCALfor the Commodore 64-And at a miniprice.Kyan PASCAL is a full-featured implementatio n of PASCAL-no t a subset l With these features:
o high-performance compiler and comprehensive set oferror messages for faster debugging
o speeds up to 40 times faster than Commodore Basico built-in full screen editoro support for files, pointers, record types, sets and ordinal
types used in sophisticated data structures .o plus, a comprehensive tutorial manual illustrating the
speed and power of PASCAL through sample programs.
Kyan PASCAL lets you develop programs on yourCommodore 64 that are transportable to most mainframes .So it's perfect for students and working at home.
Try It fo r 15 days.
Order Kyan PASCAL, and if you're not completel y satisfied,return the diskette and manual within 15 days for a full refund .
Kyan PASCAL with complete tutori al manual . . . . . $49.95(Add $4.50 per copy for postage and handling . $9.50 outside North America. California residents add 6.5% sales tax)
To order, call 4151775-2923.(VISA and MasterCard accepted)
Or send check or money order to: Kyan Software,Suite 183, 1850 Union Street, San Francisco, CA 94123.
Sorry, noC.OD.
orders accepted
Ikyanpage 44 TPUG magazine
All around you they are promising you more
and giving you less
THEN . . .
phone, write or visit*
CANADIAN SOFTWARESOURCE
MORE . . . SOFTWARE
MORE . . . HARDWAREMORE . . . BOOKSMORE . . . DISCOUNTS
Over 1500 products for the
COMMODORE 64
IF . . .
you have not received our FREE NEW1984-85 CATALOGUE
THEN . . .
Call or Write
CANADIANSOFTWARE SOURCE
Box 340 Station "WI!,TORONTO M6M 5B9
(416) 491-2942
*NEW . . .Call or Write for the location of our
NEW METRO TORONTOCOMPUTERWARE CATALOGUE
\. SHOPPING OUTLET
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 47/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 48/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 49/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 50/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 51/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 52/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 53/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 54/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 55/72
C64PROVINCIAL
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 56/72
PAYROLL
A complete Canadian Payroll System for Small
Business.
.5 0 Employees per disk (1541) •
Calculate and Print Journals. Print
Cheques. Calculate submissions
summary for Revenue Canada.
Accumulates data and prints T -4s • Also
available for 4032 and 8032 Commodore
Computers.
Available from your Commodore Dealer.
Distributed by,
QIIICROCOMPUTER
SOLUTIONSn 1262 DON MILLS RD. STE. 4DON MILLS. ONTARIO M3B 2W7TEL: (416) 447-4811
FAMILY TREEA dynamic program to control your data on the
Family Tree. Ideal for the Genealogist. Links indi
viduals together to produce Pedigree Charts, Family
Group Record Forms and Indexes. Easy editing and
sorts.
$49_95 U.S. or $59.95 Cdn.
PET-I-GREERecordkeeping system for the Dog Bre.eder and
Kennel Operator. Individual dog records, breeding
records, show records and pedigree charts can be
produced. Easily altered for other animals.
$99.95 U. S. or $129.95 Cdn
Other software
at discount prices.Write for our catalogue of over 100 Software pro
grams at low discount prices.
GENEALOGY SOFTWARE
519-344-3990P.O. BOX 1151
PORT HURON, MI
48061
page S4 TPUG magazine
1046 PARKWOOD AVE
SARNIA, ONTARIO
N7V 3T9
COMSPEC866 Wilson Ave., Downsview
633-5605
• HARDWARE
• SOFTWARE
• SERVICE
• BOOKS
• ACCESSORIES
(: commodore
Off the Shelf Delivery
THIS MONTHS SPECIALS
WICO "BOSS "WICO "3-WAY"WICO "SAT HAN DLE"EASY SCRIPTCOMMODORE VIC CARTRIDGESCOMMODORE C-64 CARTRIDGESPOWER
PALTOOLBOXBOX OF 10 DISKS WITH THIS AD
10% Discount toTPUG Members
$19.9532.9529.9539.0013.9522.95
59.95
59.95109.9519.95
ON SOFTWARE, BOOKS AND ACCESSORIES.
(NOT INCLUDING SALE ITEMS)
Mail orders subject to shipping and handling fees.
TPUG LibraryAvailable For Copy
Ontario residents add 7% Retail Sales Tax.
U5U5 . .:
Q)
)
Q) '5::.:::*
0
ilson Ave.
Hwy.401
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 57/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 58/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 59/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 60/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 61/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 62/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 63/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 64/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 65/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 66/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 67/72
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 68/72
A LlnLESPIRITGIVE YOU
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 69/72
I
POWER.
SIXMON,HSC O r A P L E ' ~
VlARRAN'" •Spirit's the microprinter that lets you do more thingsyourself. And do each of them letter perfect.It prints standard, bold, expanded and condensed type
faces. Even italics. And finely etched graphics. All becauseevery impression has a crisp, square edge to it for unmistakableclarity.
That's the power to look perfect in print.And a power that operates almost without sound. The
Quietpak option smothers printer noise. So Spirit rushes through work with barely a whisper.There's also the power to manage paper. Variable width tractors adjust for narrow jobs like
labels. Or wider jobs like correspondence. All of which are handed to you immediately thanks to
Spirit's Quick Tear edge.When you can have your ow n personal microprinter
that does so much for so litde, aren't you p0werless not
to act?
For more informarion. and a dealer in your areaconran: Mannesman Tally Corporarion. 703 Perrolta Rd ..Downsview, Onrario M3) 2N6 416-661-9783
Telex: 06522873
-M:uHlfanurt'r ' . suggested ruail pri(;<..' \o, 'j(h parallcl lmcrf:-u.:c .
AN ESMANNTALLY
"THERE'S NO NEED TO HOLD AMOUSE OR LAY A FINGER ON A CRTSCREEN. SAY THE COMMAND AND
CHIRPEE'MWILL DO THE REST."
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 70/72
,.
HOW TO ORDERTo order your Chi rpee Computer Voice Command Module,simply fill our form below and return with cashier's check,money order or use your credit card . Please specify type ofcomputer. Postage paid by manufacturer on shipments fromdestinations within the continental U.S. Full 90-day parts andlabor factory warranty. Allow two weeks for delivery.
Now anyone can use a
computerl Now
everyone willuse their
computer
more!
u.s.INCLUDESChirpee Computer
Command Voice Module,Disk Program, Interface Cable
and Instructions.
Chicago Tribune
June 6, 1984
ORDER NOW!
ENG Manufacturing, Inc.4304 W. Saturn WayChandler, AZ 85224
(602) 431-0400
Chirpee is a trademark of ENG Manufacturing . Inc. MONEY BACK GUARANTEE! (In U.S.) 1-800-431-3331
--------------------------------------------------------------------------------------------------------------------------ORDER FORM
Yes, I would like to order Chirpee(s) ComputerCommand Voice Module(s) at $179.95 each for the followingcomputer(s) :
o Commodore 64 (01-101) 0 Atari(01-102)DApple (01-103) 0 IBM PC (01-104)
o I have enclosed a Cashier's Check or Money Order in theamount of $._ __
o Mastercard 0 Visa 0 American Express 0 Diner's CardNO . D A T ~ E ____________S I G N A T U R _
_____________ _
Name'______________________Addres",-s_ ________________________ tate_ Zip_
ENG Manufacturing, Inc .
4304 W. Saturn WayChandler, AZ 85224
(602) 431-0400(In U.S.) 1-800-431-3331
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 71/72
__ -__ 64
The fasteSt IIId easiest to useISSImbIer 'or the Commodore 64 !
Pal 64 enables the user EO performassembly language proarammtnl usInI thesundardMOS mnemonics. t88.t5
POWER 64Is an absolutely !ndIspensibie aid to
me proararnr1lef" usinI Commodore6<4 BASIC. Power 6<4 turbo-chatpsresldenc BASIC with dozens o' new superuseful commands like MERGE. UNDO.TEST and DISK 'IS well as all Ehe oldsundbys such as RENUM and SEAROi &REPLACE. Includes HonPower 6<4. S89.I5
}t:TOOL BOX 64Is me Ultimate procnmmer's utilitypackaae . Includes Pm M assembler
and Power 6<4 BASIC soup-up klt IItogether in one fuDy intqrated andeconomical package. 1129.95
P E L L P R 0 6 4 Is an easy to use spelling checkerwith a standard dictionary expandable
EO 25,000 words. SpeliPro 64 quicklyadapcs to your personal vocabuand business . you to add anddelete words to/from che dictionary, editdocumems to correct unrecosnlZed wordsand outpUt lisa of unrecopllud words toprinter or screen. SpeIPro 64 wasEO work wtth the WordPro SerIes-and
ocher wordproceuln& programs u s I n " ~ WordPro file format.
NOW SHIPPINGIII
For Your Nearest Dealercall
(416) 273-6350
c-nodafe64_Commodate ....nd-":s 1
Coonmodore8uI i_ HxhInes Inc.
°Preterdr mwltated II, P r o ~ 1 Softwwelnc.
Specl(1Qlions subjec t to c ...... witIIOUl notlce .•
"II""This brand naw offerln& from theorc fEhe WordPro Series'
lIP wordprocessin& to theComrnodare fo,. the fint time. Twoyears under de¥elopmem. WP64 features100% profJOrtlonal prlndna afJlblllty _well. 40180 column display. aucomatic:word wrap. two column princl,.. alternatepaaIng 'or heiden & 'ooten. four wayscroAinJ, extra text area and a brand new'OOPS' buffer tim mIIicaIIy brinp bideEextdeI.eelln error. All you f te t ' dreamedof In 01 wordpnxessor proaram. WP64sets 01 new high standard 'o r the software
industry to meet. "'15
gMAILPIl064A new pneradon of dataorpnlzer lind list mMapr, MaIIPro
6<4 Is me easiest o. all to learn and use .Handles up to ".000 records on one disk,prints multiple labels across, does minortext edlcInB Ie: -tins LIP InvoIceS . Best ofall, MailPro '4 resides entirely withinmemory so you don't have to constantlyjuate disks like you must with ocher datibase manaaers for me Commodore 6<4.
. . . . 5
(416\ 273-6350tss QUEENSWAY EAST. UNIT 8,MtSSISSAUGA. ONTARIO, CANADA. L4Y 4CS
8/2/2019 TPUG Issue 07 1984 Oct
http://slidepdf.com/reader/full/tpug-issue-07-1984-oct 72/72