Jump to content
  • entries
    3
  • comments
    0
  • views
    15,689

Case Sensitivity


Willsy

831 views

A few days ago I added case insensitivity to TurboForth. When you are working on a real TI, you tend to engage the Alpha Lock key and leave the keyboard in upper case mode. However, if using via emulation then you normally have your caps lock switched off (in lower case). It always annoyed me that the system couldn't recognise load but could recognise LOAD. I mean, it's the same word!!

 

So, I finally added the code so that it doesn't matter anymore. Basically, as text is entered from the keyboard or compiled it is converted to upper case (except stuff in strings) so it doesn't matter any more.

 

Anway, another day, another "Hmmm" moment. I decided I would add a switch to make it selectable. So you the system can be case sensitive if you want it to be.

 

I added a variable called CSEN. Write TRUE to CSEN, as in:

 

TRUE CSEN !

 

and your system is case sensitive. Write a false and it isn't. The default is false.

 

There. Sorted!

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

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