Jump to content
IGNORED

Tandy BASIC


Opry99er

Recommended Posts

9 hours ago, Opry99er said:

Couldn't figure out why it was rejecting "READ FREQ

 

FRE() is a reserved function name in Model 100 BASIC.

 

Z = FRE(0)

Returns the amount of memory available (free) for numeric memory in bytes

 

Z = FRE(' ')

Returns the amount of string space available (free) memory in bytes

 

(From page 14 of this document:  http://www.classiccmp.org/cini/pdf/Tandy/Model 100 Quick Reference.pdf  )

 

As a rule with these old dialects of BASIC - you can't create a variable that includes a reserved word.

 

You can use var names longer than 2 chars, but generally, only the first 2 chars were significant.

 

Thus

 

10 ABCXYZ = 99

20 PRINT ABLLLL

 

RUN

99

 

 

Edited by Calibus
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...