Re: Star Trek by Krishna Myneni
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Star Trek by Krishna Myneni         

Group: comp.lang.forth · Group Profile
Author: Doug Hoffman
Date: Sep 19, 2008 19:47

This might also be a problem:

fvariable x
^^^^^^^^^^^

: FirePhasers ( -- )

...
cr ." NUMBER OF UNITS TO FIRE " #in X !
^^^
e @ X @ - 0 >=
UNTIL

X @ 0> IF
X @ negate e +!
d{ 7 } f@ f0< IF X @ s>f ran0 f* fround>s X ! THEN
X @ k3 @ / h1 ! \ distribute phaser energy among klingons present

( there may be more uses of @ and ! with x )

-Doug
no comments
diggit! del.icio.us! reddit!