Difference between revisions of "TI BASIC"

From Ninerpedia
Jump to navigation Jump to search
(Added link to new article on using mathematical operators to replace logical operators in TI BASIC.)
(add use of alpha lock tip)
Line 3: Line 3:
See [[Basic Programs in Memory| How a BASIC program is stored in the computers memory]]
See [[Basic Programs in Memory| How a BASIC program is stored in the computers memory]]


==AND OR==
One omission from TI Basic is the lack of logical operators such as AND and OR used for example in expressions such as IF V<8 AND W>4 THEN 120 ELSE 240. TI Basic programmers instead used [[mathematical operators to replace logical operators]].
One omission from TI Basic is the lack of logical operators such as AND and OR used for example in expressions such as IF V<8 AND W>4 THEN 120 ELSE 240. TI Basic programmers instead used [[mathematical operators to replace logical operators]].
==Check Alpha Lock==
A program using the joysticks requires the alpha lock is UP, a relic of the TI99/4 days.
If your program requires the alpha lock to be DOWN for input etc you can instruct the console:
Insert a dummy line CALL KEY(3, Z, Z)
The use of key unit 3 tells the computer to treat the alpha lock as if it were down whilst the program is running, unless we reset.  Use of key unit 0 has no effect on alpha lock status. Key unit 5 will reset normal operation.


[[Category:Programming language]]
[[Category:Programming language]]

Revision as of 19:42, 3 October 2014

(Page requires expansion)

See How a BASIC program is stored in the computers memory

AND OR

One omission from TI Basic is the lack of logical operators such as AND and OR used for example in expressions such as IF V<8 AND W>4 THEN 120 ELSE 240. TI Basic programmers instead used mathematical operators to replace logical operators.

Check Alpha Lock

A program using the joysticks requires the alpha lock is UP, a relic of the TI99/4 days.

If your program requires the alpha lock to be DOWN for input etc you can instruct the console:

Insert a dummy line CALL KEY(3, Z, Z)

The use of key unit 3 tells the computer to treat the alpha lock as if it were down whilst the program is running, unless we reset. Use of key unit 0 has no effect on alpha lock status. Key unit 5 will reset normal operation.