Page 12

■■■

-

:' ■" ■--.■■..'

■ ■

MAGIC

Load and run Basic programs the easy way; add a keyboard tonefeature to your C-64; simplify program debusing; default to disk every time; create colorful bar charts; typefrom right to left on your C-64; and more.

Compiled bjJMBORBEN Magic is the original column of reader-submitted hints and tips.

130

PRINT"{HOME){6

140

SON §{B SPACEs){8 CRSR LFs1";:INPUTN$(A ) IFLEN(N$(At)<>2THEN130

Each month-we present brief, useful computer "tricks" to help you get the mast out ofyour Commodore computing system—whether you're a

beginning or advanced armfmterisl, a C-64 or C-128 owner. Magic is a forum for RUN!? imaginative and inventive readers to share their programming tips, briefsoftware or Iiardivare modifkutunis, shortcuts or items ofgeneral interest. Ifyou liave an idea to wake computing eas ier,faster, more exciting and enjoyable, send it to: Magk

150

160 170 180 190

CRSR DNs)INITIALS OF

PER

NEXT

PRINT"{SHFT CLR}{CRSR DN)"TAB(14)"64 YA RD DASH{3 CRSR DNs}" PRINTSPC(38)"{COMD S)" FORL=1TON*2:PRINTSPC(38)"{SHFT B}":NEXT PRINTSPC(38)"{COMD X]{HOME}(5 CRSR DNs) ■1

RUN Magazine 80 Elm St.

200

FORA=1TON:PRINTN$(A):PRINT:NEXT

220

R%=1-tN*RND( . ): PRINT" {HOME) (3

210

Peterborough, Nil 03458

RUN pays $10 to $40for each trick ticcefHedfor ptddicatiort in the column. A payment of$50 and a Magk Contributor T-shirt is awarded for the Trick of the Month. To be eligible, the Trick of the Month must

Ifyou 'd like a copy o/"RUN '5 latest edition of the Magic Trick Writ and you 'II receive a copy in two to three weeks.

CRSR DNs)"

:FORK=1TOR%:PRINT"(CRSR DN}":NEXT:P(R%) 230 240

befor tlie C-64 or the C-64 and C-128. Tricksfor tlie C-128 only are not eligiblefor Trick of the Month. er's Guide, enclose a self-addressed, stamped envelope with your requrst,

TI$="000000"

IFP(R%)>34THEN220 PRINTSPC(P(R%)+2)"{CTRL R

DNHCRSR LFHCTRL

HCTRL

250

2}

(CRSR

6}

9){CTRL 2) [CRSR

DNHCRSR

(CRS

UP}{CTRL

LFKCTRL

9

6}{CT

RL 0HSHFT LB. }"

IFP(R%)=34THEN270

260

GOTO220

280

),2) PRTNTSPC(25f'(CTRL

270 W=W+1:T$=MID$(STR$(INTI(TI/60)*100)/100

IpOL/7 64-yard dash—I teach computer science at a small

private school. Unfortunately, we do not have as many

290

computers as we'd like, and, until now, lighting over com puter time had been a real problem. The 64-Yard Dasli

300

9}{CTRL

2}(2 CRSR UP

S}"T$TAB(30)"SEC"TAB{34J"["MID$(STR$(W)

,2)"]":IFW<NTHEN220 PRINT"{HOME}{23 CRSR DNs}"TAB{13)"{CTRL 2JPRESS AMY KEY." GETA$:IFA$=""THEN300

program is my solution. (The program should also run on

Scott M. Huse

the VIC-20, Plus/4 and C-128.)

Salisbury Center, NY

Type in the program and run it. You'll be asked to give the number of students and their initials (two characters). The program will randomly choose the order in which students may use the computer. Watch out for clever stu dents who might try to alter the program Ul their favor

(this is the voice of experience speaking). 100 110 120

PRINT"{SHFT CLRHCTRL 2)"TAB(14)"64 D DASH":POKE53280,0:POKE53281 , 0 INPUT"{2 CRSR DNs}NUMBER OF PEOPLE ( AX ) " ; N : IFN > 80RN< 1 TliENRUN F0RA=1T0N

10 / RUN Al'Rll, Iffl?

Easy-access dip switches—When I use my Card? + G interface with my software, I frequently need to change the positions of interface switches 7 and ft on the circuit board, and the board has to be removed each lime

YAR

to make the change. I solved this annoying problem by soldering flexible wires to these switches on the bottom of the circuit board

and bringing them out to miniature single-pole, singlethrow (SPST) switches mounted in a small box outside the

Run_Issue_40_1987_Apr  

TaxTimeRelief CHIEF rMBATA April 1987ACWOlPublication 7-U70 12069

Run_Issue_40_1987_Apr  

TaxTimeRelief CHIEF rMBATA April 1987ACWOlPublication 7-U70 12069

Advertisement