Jump to content
Opry99er

Tandy BASIC

Recommended Posts

 

 

My first little program.  Couldn't figure out why it was rejecting "READ FREQ".... but then I shortened the variable to "FR" and all was well.

 

 

 

  • Like 2

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Cool info!  I haven't worked my way through the manual yet... just typing code that should work in other BASIC dialects and then using the quick reference card to see where I screwed up.  :) 

 

Thanks for the info!!

Share this post


Link to post
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.

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...