Execute Brain****/TI-83 BASIC: Difference between revisions
Content added Content deleted
(the last version of the program was unnecessarily large, and the description was both too wordy and completely wrong in some places) |
(I'm usd to markdown formatting and forgot to hit the preview button) |
||
Line 2: | Line 2: | ||
This implementation (in [[TI-83 BASIC]]) has quite a few limitations. Among them: |
This implementation (in [[TI-83 BASIC]]) has quite a few limitations. Among them: |
||
* TI-BASIC doesn't have any concept of ASCII, so the |
* TI-BASIC doesn't have any concept of ASCII, so the <tt>.</tt> command, which is translated to <tt>Disp </tt>, outputs everything on a new line as a number. Input is taken whenever a comma is encountered as opposed to being presupplied, and again takes numbers as input. [Attempting to input a string (enclosed in "quotes") will, because of a weird glitch in the interpreter, work without throwing an error: it stores the string to a custom list (yes, a list) named 'V', not the variable V (which remains unaffected). Attempting to access this list throws an ERR:DATA TYPE.] |
||
* In order to simplify the main loop, all commands are stored to list L1 at the beginning. Lists (arrays) in TI-BASIC can't be more than 999 elements, so attempting to run a program exceeding that size will throw an error (probably INVALID DIM). This can be fixed at the cost of speed and size. |
* In order to simplify the main loop, all commands are stored to list L1 at the beginning. Lists (arrays) in TI-BASIC can't be more than 999 elements, so attempting to run a program exceeding that size will throw an error (probably INVALID DIM). This can be fixed at the cost of speed and size. |
||
* Speaking of which: the interpreter is... on the slow side, to put it nicely. |
* Speaking of which: the interpreter is... on the slow side, to put it nicely. |
||
This was made to be compatible with [http://sc.cemetech.net SourceCoder], so the tilde (~) translates to the negative sign (the (-) key) and -> is the arrow on the STO> key. |
This was made to be compatible with [http://sc.cemetech.net SourceCoder], so the tilde (~) translates to the negative sign (the <tt>(-)</tt> key) and -> is the arrow on the STO> key. |
||
Input "",Str1 //program input |
Input "",Str1 //program input |