Skip to main content

WORKING WITH APPLE //E BASIC PART IV by Frank Lemmen

The  story continues as we almost reach the end of the basic  key 
words. The last keyword that we saw was RETURN. The next one is:

RIGHT$ 
 Right$(object string, character select)
  Applied to the object string,  this function returns the number 
  of the right-most character indicated by the  character  select    
  value.
  The  object  string  may  be  at  literal,  a  variable  or  an 
  expression.

RND
 RND(indicator)
  Returns a pseudorandom number;  that is ,  one of  distribution 
  that  is random by test but that is generated according  to  a 
  rule.

ROT=
 ROT=angle
  Causes  a previously specified shape to be  rotated  clockwise 
  about  its  reference point;  that is,  it  sets  the  angular 
  rotation  of the shape to be placed on the screen by  DRAW  or 
  XDRAW.  The angle is based on 64 parts of a circle,  that  is, 
  angel=32 is a rotation of 180 degrees clockwise.

RUN
 Executes a program
 Control-C aborts.

SAVE
 this command saves the program. 

SAVE=
 Scale=multiplier
  Sets the scale for a shape to be drawn.

SCRN(
 SCRN(X,Y)
  In low res graphics SCRN( returns the screen colour code of the 
  point defined by the coordinates.

SGN
 SGN(variate)
  This function looks if the variate is positive of negative.

SHLOAD
  Loads  a shape table from disk into memory  just  below  HIMEM, 
  which is then moved to protect the shape.

SIN
 SIN(angle)
  Returns the sine of an angle expressed in radians.

SPC(
 ;SPC(spaces);
  Creates number of spaces used to print.

SPEED=
 SPEED=rate
  Sets the rate at which characters are sent to the screen of  to 
   another output device.  0 Corresponds to about two  characters 
   p/s and 255 gives about 50 character p/s.

SQR(
 SQR(variate)
  Returns the positive square root of the variate.

STEP
 FOR variate = initial value TO limit STEP increment.
  Sets the value of increment of the FOR-NEXT loop.

STOP
  When encountered,  STOP suspends execution of a program at  the 
  end of the statement being processed.

Next time we will see the last 15 statements, so see you then!

Disclaimer
The text of the articles is identical to the originals like they appeared in old ST NEWS issues. Please take into consideration that the author(s) was (were) a lot younger and less responsible back then. So bad jokes, bad English, youthful arrogance, insults, bravura, over-crediting and tastelessness should be taken with at least a grain of salt. Any contact and/or payment information, as well as deadlines/release dates of any kind should be regarded as outdated. Due to the fact that these pages are not actually contained in an Atari executable here, references to scroll texts, featured demo screens and hidden articles may also be irrelevant.