You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ If you'd like a more detailed and complete documentation, you can view the onlin
13
13
1. Download the latest release of CelticCE [here](https://github.com/roccoloxprograms/celticce/releases/latest). To avoid confusion, this is the file with the `.8xp` file extension.
14
14
2. Transfer the CelticCE installer that you just downloaded to your calculator using a linking program of your choice, such as [TI-Connect CE](https://education.ti.com/en/software/details/en/CA9C74CAD02440A69FDC7189D7E1B6C2/swticonnectcesoftware) or [TiLP](http://lpg.ticalc.org/prj_tilp/).
15
15
3. Run the **CELTICCE** program on your calculator, which can be found under the <kbd>prgm</kbd> menu. If you are on an OS version 5.5 or greater, you will need to use the [arTIfiCE jailbreak](https://yvantt.github.io/arTIfiCE/).
16
-
4. Finish running the installer by selecting whether or not to delete the installer program. It will not be needed unless you for some reason wish to reinstall CelticCE, so it is safe to delete.
16
+
4. Finish running the installer by selecting whether or not to delete the installer program. It will not be needed unless you for some reason wish to reinstall the CelticCE app, so it is safe to delete.
17
17
5. Find **CelticCE** in the <kbd>apps</kbd> menu and open it.
18
18
6. Press <kbd>1</kbd> to install CelticCE, then press <kbd>3</kbd> to exit the app.
19
19
@@ -23,11 +23,11 @@ CelticCE commands are called in TI-BASIC programs using the `det(` token followe
23
23
24
24
Along with the CelticCE app installer, you'll notice that there is another program, **AINSTALL**, which comes with Celtic. If you choose to send this to your calculator, running it will install Celtic's hooks outside of the app, as long as the app is present on your calculator. This can be useful if you want to install CelticCE when during the execution of another program. You can learn more about this in the [General Syntax](https://roccoloxprograms.github.io/CelticCE/gensyntax.html) section of CelticCE's documentation.
25
25
26
-
CelticCE also has a few useful features which are added to the TI-OS editor when it is installed. The first of these is a command preview, which will diplay the basic syntax of a command on the status bar if the cursor is hovering over a valid Celtic command as seen below:
26
+
CelticCE also has a few useful features which are added to the TI-OS editor when it is installed. The first of these is a command preview, which will display the basic syntax of a command on the status bar if the cursor is hovering over a valid Celtic command as seen below:
If you press <kbd>2nd</kbd> + <kbd>enter</kbd> in the OS editor when Celtic is installed, it will also display the current line number and program size like so:
30
+
If you press <kbd>2nd</kbd> + <kbd>enter</kbd> in the OS editor when Celtic is installed, it will also display the current line number, byte offset, and program size like so:
Copy file name to clipboardExpand all lines: docs/celticiiifunctions.rst
+34-32Lines changed: 34 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Celtic III Functions
3
3
4
4
Overview
5
5
~~~~~~~~
6
-
Some (not all) of the functions from Celtic III are included in Celtic CE.
6
+
Essentially all of the functions from Celtic III are included in Celtic CE.
7
7
8
8
Documentation
9
9
~~~~~~~~~~~~~
@@ -14,7 +14,7 @@ Documentation
14
14
15
15
Parameters:
16
16
* ``list_element``: Element of the list to access, beginning at 1. Accessing 0 will return the dimension of the list.
17
-
* ``Ans``: Name of the list to access. Begins with the :sub:`L`\ token found in the :menuselection:`List --> OPS`. (:kbd:`2nd` + :kbd:`stat` + :kbd:`leftarrow` + :kbd:`alpha` + :kbd:`apps`).
17
+
* ``Ans``: Name of the list to access. The data in ``Ans`` must be a string beginning with the :sub:`L`\ token found in the :menuselection:`List --> OPS` (:kbd:`2nd` + :kbd:`stat` + :kbd:`leftarrow` + :kbd:`alpha` + :kbd:`apps`), unless you are using a default OS list such as L :sub:`1`\. When using default OS lists, simply use the corresponding list name token, such as L :sub:`1`\ or L :sub:`2`\.
18
18
19
19
Returns:
20
20
* ``Theta``: The number at the element of the list accessed, or the dimension of the list if ``list_element`` was 0.
@@ -30,26 +30,26 @@ Documentation
30
30
Outputs a real number depicting the type of argument in ``Ans``.
31
31
32
32
Parameters:
33
-
* ``Ans``: Argument to check the type of
33
+
* ``Ans``: Argument to check the type of.
34
34
35
35
Returns:
36
36
* ``Theta``: The number corresponding to the argument's type. A table with the possible types is below.
37
37
38
-
====== ========
38
+
====== =========
39
39
Number Type
40
40
0 Real
41
41
1 List
42
42
2 Matrix
43
43
4 String
44
44
12 Complex
45
-
13 Cpx List
46
-
====== ========
45
+
13 Cplx List
46
+
====== =========
47
47
48
48
------------
49
49
50
50
.. function:: ChkStats: det(32, function)
51
51
52
-
This is a multi-purpose command used to read various system statuses. The output will very based on the specified function. A table with the possible functions and their resulting outputs is below.
52
+
This is a multi-purpose command used to read various system statuses. The output will vary based on the specified function. A table with the possible functions and their resulting outputs is below.
.. function:: BinDelete: det(40, byte_start, number_of_bytes); Str0 = file name
207
207
208
-
Deletes the ``number_of_bytes`` bytes from the file specified by ``Str0``, starting at ``byte_start``. ``byte_start`` is 0-indexed, meaning that the first byte of the program is 0, the second is 1, and so on.
208
+
Deletes ``number_of_bytes`` bytes from the file specified by ``Str0``, starting at ``byte_start``. ``byte_start`` is 0-indexed, meaning that the first byte of the program is 0, the second is 1, and so on.
209
209
210
210
Parameters:
211
211
* ``byte_start``: The byte of the file to start deleting from. It is 0-indexed, so the first byte of the file is 0, the second is 1, and so on.
@@ -290,10 +290,12 @@ Documentation
290
290
291
291
A list of return values and their corresponding errors can be found in the `error codes <errorcodes.html#ti-os-errors>`__ section, under TI-OS Errors.
292
292
293
+
.. warning:: ErrorHandle cannot be used recursively. This means that if you attempt to run ErrorHandle on a program and then run ErrorHandle again inside that second program, the ErrorHandle command in that second program will be ignored.
294
+
293
295
.. note:: When using ErrorHandle from the homescreen, it will not run BASIC programs, though it can still run programs beginning with the Asm84CEPrgm token.
294
296
295
297
Parameters:
296
-
* ``Ans``: The name of the program to run, or TI-BASIC code to be executed
298
+
* ``Ans``: The name of the program to run, or TI-BASIC code to be executed.
297
299
* ``get_offset``: If ``get_offset`` is 1, ErrorHandle will return the byte offset the error occured at in ``Ans``. If it is 0, it will not. This only works with running programs, not strings.
298
300
299
301
Returns:
@@ -311,9 +313,9 @@ Documentation
311
313
Works almost identically to BASIC's sub() command, except that the output will be in hexadecimal and two-byte tokens will read as two instead of one byte. It is particularly useful for extracting data from a string that may contain nonsensical data that simply needs to be manipulated. If you allow the start point to be zero, the size of the string in bytes is returned instead. For data manipulation, you should use the Edit1Byte command.
312
314
313
315
Parameters:
314
-
* ``string``: Which string variable to read from, where 0 = Str0, 9 = Str9, and so on
315
-
* ``start``: The byte of the string to begin reading at
316
-
* ``bytes``: How many bytes to read
316
+
* ``string``: Which string variable to read from, where 0 = Str0, 9 = Str9, and so on.
317
+
* ``start``: The byte of the string to begin reading at.
318
+
* ``bytes``: How many bytes to read.
317
319
318
320
Returns:
319
321
* ``Str9``: The extracted substring.
@@ -326,7 +328,7 @@ Documentation
326
328
Converts up to 4 hex digits back to decimal. If you pass a string longer than 4 digits, only the first four are read.
327
329
328
330
Parameters:
329
-
* ``Ans``: Hex string to convert
331
+
* ``Ans``: Hex string to convert.
330
332
331
333
Returns:
332
334
* ``Theta``: Decimal integer converted from hex string.
@@ -341,8 +343,8 @@ Documentation
341
343
Converts a number between 0 and 65535 to its hexadecimal equivalent. The number of hexadecimal output to the string will have its leading zeroes stripped so inputting 15 will result in “F” and 16 will result in “10”. If override is 1, it will output all leading zeroes, which may be useful for routines that require four hex digits at all times but cannot spend the memory/time whipping up a BASIC solution to fill the missing zeroes.
342
344
343
345
Parameters:
344
-
* ``number``: Decimal integer to convert
345
-
* ``override``: 1 to output all leading zeroes, or 0 to not
346
+
* ``number``: Decimal integer to convert.
347
+
* ``override``: 1 to output all leading zeroes, or 0 to not.
346
348
347
349
Returns:
348
350
* ``Str9``: Hex string converted from decimal integer.
@@ -358,15 +360,15 @@ Documentation
358
360
.. note:: Note: A “word” in this sense is two bytes. Useful for editing a binary string which entries are all two bytes in length, such as a special string tilemap. You’re required, however, to specify offset in bytes. Also know that all words are stored little-endian. That means that the least significant byte is stored before the most significant byte is.
359
361
360
362
Parameters:
361
-
* ``string``: Which string variable to read from, where 0 = Str0, 9 = Str9, and so on
362
-
* ``start``: The byte to start editing in the string
363
-
* ``word``: The two bytes to rewrite
363
+
* ``string``: Which string variable to read from, where 0 = Str0, 9 = Str9, and so on.
364
+
* ``start``: The byte to start editing in the string.
365
+
* ``word``: The two bytes to rewrite.
364
366
365
367
Returns:
366
-
* Modifies the string with the specified word
368
+
* Modifies the string with the specified word.
367
369
368
370
Errors:
369
-
* ``..E:NT:FN`` If the offset is past the end of the string
371
+
* ``..E:NT:FN`` If the offset is past the end of the string.
370
372
371
373
------------
372
374
@@ -387,12 +389,12 @@ Documentation
387
389
5 Right Shift
388
390
===== ===========
389
391
390
-
If the numbers are out of bounds, then the function will exit out with an error. This command really helps mask out hex digits but if you use strings to store those digits, you'll need to use the HexToDec command for each value you need.
392
+
This command really helps mask out hex digits but if you use strings to store those digits, you'll need to use the HexToDec command for each value you need.
391
393
392
394
Parameters:
393
-
* ``value1``: First value to perform bit operation with
394
-
* ``value2``: Second value to perform bit operation with
395
-
* ``function``: Which operation to perform, as seen in the table above
395
+
* ``value1``: First value to perform bit operation with.
396
+
* ``value2``: Second value to perform bit operation with.
397
+
* ``function``: Which operation to perform, as seen in the table above.
396
398
397
399
Returns:
398
400
* ``Theta``: Result of the bit operation.
@@ -401,7 +403,7 @@ Documentation
401
403
402
404
.. function:: GetProgList: det(51, type); Ans = search string
403
405
404
-
This function will return a space-delimited string consisting of the names of programs, appvars, or groups that match partial name of the search string. Which is to say::
406
+
This function will return a space-delimited string consisting of the names of programs, appvars, or groups whose names partially match the search string. Which is to say::
405
407
406
408
"TEMP
407
409
det(51, 0)
@@ -420,12 +422,12 @@ Documentation
420
422
This command is NOT to be confused with FindProg, which outputs a string consisting of files whose CONTENTS starts with the specified string. Also use the fact that the final name in the list is terminated with a space to make extracting names from the list easier. It also will not find hidden variables.
421
423
422
424
Parameters:
423
-
* ``type``: The type of file to search for, as seen above
424
-
* ``Ans``: String to find in file names
425
+
* ``type``: The type of file to search for, as seen above.
426
+
* ``Ans``: String to find in file names.
425
427
426
428
Returns:
427
-
* ``Str9``: Filtered list of files
429
+
* ``Str9``: Filtered list of files.
428
430
429
431
Errors:
430
-
* ``..S:NT:FN`` if ``Ans`` is not a string
431
-
* ``..P:NT:FN`` if no files were found containing the search string
432
+
* ``..S:NT:FN`` if ``Ans`` is not a string.
433
+
* ``..P:NT:FN`` if no files were found containing the search string.
Copy file name to clipboardExpand all lines: docs/convertsprites.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ First you'll need to download the latest version of convimg from the `GitHub rel
13
13
14
14
.. note::
15
15
16
-
If you already have the CE C toolchain installed, chances are that convimg has already been installed and is in your Path. You can check this by opening a terminal and running `convimg --version`.
16
+
If you already have the CE C toolchain installed, chances are that convimg has already been installed and is in your Path. You can check this by opening a terminal and running :code:`convimg --version`.
17
17
18
18
On Windows:
19
19
* Extract the zip to a file path without spaces.
@@ -96,6 +96,6 @@ Once you have completed your yaml, navigate to the directory with the sprites an
You can then use the data in your programs by copying it into the source code or pasting it into a TI-BASIC IDE like SourceCoder.
99
+
You can then use the data in your programs by copying it into the source code or pasting it into a TI-BASIC IDE like `SourceCoder<https://www.cemetech.net/sc/>`__.
100
100
101
101
For more documentation on convimg, check out the README `here <https://github.com/mateoconlechuga/convimg/blob/master/README.md>`__. For more info on glob patterns, look `here <https://en.wikipedia.org/wiki/Glob_(programming)>`__.
Copy file name to clipboardExpand all lines: docs/csefunctions.rst
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,7 @@ Documentation
86
86
* ``HEADER``: whether or not to include a header which allows `CEaShell <https://github.com/roccoloxprograms/shell>`__ to edit the appvar. This extra argument is optional. 1 to include the header, and 0 to not.
87
87
88
88
Returns:
89
-
* ``Str9``: Intact if no error occured; otherwise, contains an error code.
90
-
* ``Str0``: Intact with program's name to be created.
89
+
* Creates the program or AppVar.
91
90
92
91
Errors:
93
92
* ``..P:IS:FN`` if the program already exists.
@@ -127,13 +126,13 @@ Documentation
127
126
* ``Ans``: Line number to delete from, begins at 1.
128
127
129
128
Returns:
130
-
* ``Str9``: Intact if no error occured; otherwise, contains an error code.
129
+
* Deletes the specified line from the program or AppVar.
131
130
132
131
------------
133
132
134
133
.. function:: VarStatus: det(8); Str0 = variable name
135
134
136
-
Output status string describing a program or AppVar's current state, including size, visibility, and more.
135
+
Output a status string describing a program or AppVar's current state, including size, visibility, and more.
137
136
138
137
Parameters:
139
138
* ``Str0``: Name of program or AppVar to examine.
@@ -189,7 +188,7 @@ Documentation
189
188
190
189
.. function:: ExecArcPrgm: det(11, function, temp_prog_number); Ans = program name
191
190
192
-
Copies a program to the ``XTEMP`` program of the specified ``temp_prog_number``. ``Ans`` is the name of the program to copy. ``function`` refers to the behavior of the ``ExecArcPrgm`` command, as seen in the table below:
191
+
Copies a program to the ``XTEMP`` program of the specified ``temp_prog_number``. ``temp_prog_number`` can only be 0 - 15. ``Ans`` is the name of the program to copy. ``function`` refers to the behavior of the ``ExecArcPrgm`` command, as seen in the table below:
Copy file name to clipboardExpand all lines: docs/dcefunctions.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Documentation
55
55
56
56
.. function:: FillRect: det(15, low, high, x, y, width, height)
57
57
58
-
Draw a filled, colored rectangle on the screen. This command can also be used to draw an individual pixel by setting the width and height to 1, or a line by setting either the width or height to 1.
0 commit comments