Search results

From Learn @ Cemetech
Jump to navigationJump to search
  • ...other games, try out the game and try to understand and think through the code. == The Code ==
    1 KB (229 words) - 00:39, 25 February 2016
  • ...st variable, and some fairly advanced optimizations. Try to understand the code, and actually put it in your calculator and try it out. == The Code ==
    1 KB (188 words) - 00:36, 25 February 2016
  • # What is the code for movement? # How can you modify the movement code in order to make it so that when you go off the screen, you loop to the oth
    1 KB (241 words) - 00:56, 25 February 2016
  • This simply means that the compiler can't compile the code. This is usually the result of a typo or trying to do something not allowed ...jr label ;accidentally jumped to a variable instead of actual code
    3 KB (473 words) - 21:12, 3 February 2016
  • These two pieces of code, for instance, are nearly 20 times different in speed, which is a major spe However, this bug does not occur when there is a line or code between the For( line and the If statement.
    4 KB (713 words) - 00:58, 25 February 2016
  • |summary=Loops through a block of code until the condition is true. Always loops at least once. ...de to break out of the loop (it isn't built into the loop). If there is no code that ends the loop, then you will have an infinite loop. An infinite loop j
    4 KB (650 words) - 18:10, 24 February 2016
  • ...he board is filled of one player gets four in a row. Try to understand the code. It uses Matrix [A] to track the game board, Var P as one or two to track w == The Code ==
    2 KB (378 words) - 00:37, 25 February 2016
  • = Source Code = ...attach a license indicating what people are allowed to do with the source code. If you don't include a license, the default is "All rights reserved".
    4 KB (689 words) - 21:13, 3 February 2016
  • * [[TI-BASIC:code-conventions|Code Conventions]] * [[TI-BASIC:comments|Commenting Code]]
    1 KB (128 words) - 17:55, 1 December 2017
  • ...other games, try out the game and try to understand and think through the code. == The Code ==
    1,001 bytes (178 words) - 00:36, 25 February 2016
  • == The Code == Next we initialize the main program loop, where all the code inside the loop will be repeated until the user guesses the number. While w
    5 KB (951 words) - 00:37, 25 February 2016
  • * [[TI-BASIC:Selfmodify|Self-Modifying Code]] |prevpage = code-conventions
    1 KB (149 words) - 21:03, 1 December 2017
  • ...AI system that makes it kind of intelligent. Please try to understand the code and learn from it. == The Code ==
    1 KB (194 words) - 18:11, 24 February 2016
  • ...other games, try out the game and try to understand and think through the code. == The Code ==
    2 KB (286 words) - 00:38, 25 February 2016
  • ...does nothing. This one command fixes what would take quite a few lines of code and the possibility of user error. You can then use the dim( command to spe ...at hard to use a list. To write something to it, for example, you use this code:
    5 KB (777 words) - 00:55, 25 February 2016
  • === Code Conventions === * Don't pad code with unnecessary blank lines or spaces.
    2 KB (368 words) - 18:14, 24 February 2016
  • ...te the name and model of your calculator in the table below, then use this code to measure your loop overhead (with an empty line). Alternatively, use the following timing code to include storing to Ans (":1") in the overhead:
    9 KB (958 words) - 17:45, 3 May 2016
  • ...other games, try out the game and try to understand and think through the code. == The Code ==
    1 KB (220 words) - 00:36, 25 February 2016
  • ...e using the calculator because it has a small screen that doesn't fit much code, and using its keys to type can be rather cumbersome for writing large prog ...urceCoder 3 is implemented with jsTIfied, which makes it easy to test your code in an emulator.
    8 KB (1,322 words) - 00:56, 25 February 2016
  • ...tring. Again, try out the game and try to understand and think through the code. == The Code ==
    1 KB (238 words) - 00:38, 25 February 2016
  • = Source Code = ...h source to let other people finish your project. If you do release source code, be sure to attach a license: remember, no license is the same as "All righ
    2 KB (367 words) - 08:13, 6 February 2016
  • ...ctates what people are allowed to do with the program, including using the code or graphics in their own programs, distributing the program on the Internet ...an important consideration is how others might be able to learn from your code. This mostly applies to beginner programmers who are just starting out lear
    4 KB (630 words) - 18:32, 24 February 2016
  • This is the most complicated part of the code. To make the nesting of the If commands clearer, it's been indented above, ...understand -- but why it's here might not be. Think about it, though: this code is right after the End of the For( loop. The For( loop repeated 10 times (o
    3 KB (588 words) - 00:55, 25 February 2016
  • ...hypothesis (''μ,,1,,''>''μ,,2,,''), which corresponds to a value of 1. The code you'd use is: ...ents at the rival school, and that the means were 1737 and 1623. Then your code is:
    7 KB (1,228 words) - 18:17, 24 February 2016
  • ;Outputs: A = Key Code; Zero If None ; This code must run in RAM
    7 KB (1,013 words) - 22:09, 31 May 2016
  • ...ands will calculate the number of possible 3 digits number lock codes? The code can use the numbers 0 - 30 and order ''does'' matter. ...ice 4. Order matters, making the code a ''permutation''. The length of the code, or ''r'', is 3 digits, and the number of possible digits. or ''n'', is 31,
    2 KB (358 words) - 22:25, 24 February 2016
  • First, you need to disable all these annoying thing by the following code: |nextpage = code-conventions
    5 KB (841 words) - 00:36, 25 February 2016
  • * [[TI-BASIC:Code_Conventions|Code Conventions]] * [[TI-BASIC:Comments|Commenting Code]]
    1 KB (138 words) - 18:18, 24 February 2016
  • ...second sprite, erasing it and finally repeat the loop. Remember that this code is for only 2 sprites. More can be added though. Note that this routine u '''Thank you Fallen Ghost for your help with this code!'''
    4 KB (648 words) - 21:30, 3 February 2016
  • ...owdowns in between maps. The internal maps also slow down the main program code itself. The program code for the maps basically remains the same, it's just in another program. You
    15 KB (2,453 words) - 00:39, 25 February 2016
  • ...hypothesis (''μ,,1,,''>''μ,,2,,''), which corresponds to a value of 1. The code you'd use is: ...eans were 1737 and 1623, and the standard deviation 211 and 218. Then your code is:
    7 KB (1,211 words) - 21:38, 24 February 2016
  • == The Code ==
    1 KB (179 words) - 00:37, 25 February 2016
  • '''Fixed code:''' 4. Nothing wrong with the code.
    1 KB (176 words) - 07:34, 5 February 2016
  • Loops through a block of code while the condition is true. Loops through a block of code until the condition is true. Always loops at least once.
    8 KB (1,284 words) - 00:57, 25 February 2016
  • {{Template:TI-BASIC:Code |code=
    602 bytes (98 words) - 18:07, 24 February 2016
  • ...hich corresponds to an argument of 1. To solve the problem, you'd use this code: ...; let's suppose that the mean was 11.2 and the standard deviation 1.3. The code you'd use is:
    7 KB (1,189 words) - 18:21, 24 February 2016
  • 1. ASCII is the American Standard Code for Information Interchange. Though TI uses a different standard than the c ...ilizes the shift operators ([2nd] and [Alpha]) while getCSC returns a scan code for those two keys.
    3 KB (423 words) - 07:36, 5 February 2016
  • Based on the data list syntax for a 2-SampZInt(, here is your code: This means that the code is:
    5 KB (786 words) - 21:40, 24 February 2016
  • When optimizing any code in TI-Basic, you should check to see if your math is done efficiently. For ...ltiplication yourself between two real numbers. This is what the previous code would look like with implied multiplication.
    3 KB (409 words) - 00:56, 25 February 2016
  • ...colon rather than a new line between the condition and statement, to make code easier to read. ...n on one line, separating them with a colon and not a new line. This makes code easier to read (you don't have to scroll as much) and looks more like other
    7 KB (1,173 words) - 00:56, 25 February 2016
  • ...s, all labels are calculated with an offset applied, to allow the block of code to be copied elsewhere with the correct label addresses.
    415 bytes (59 words) - 17:21, 5 February 2016
  • This page is dedicated to showcase small snippets of code that may be useful. These small routines are designed to accomplish tasks i This code can be modified to be faster if X is already known to be odd.
    1 KB (210 words) - 22:25, 24 February 2016
  • ...ring a data list is TInterval ''list'', ''confidence level'', here is your code: ...mean'', ''std. deviation'', ''sample size'', ''confidence level'', so your code would look like:
    4 KB (616 words) - 22:09, 24 February 2016
  • ...list is ZInterval ''std. deviation'', ''list'', ''confidence level'', the code would look like: ...std. deviation'', ''mean'', ''sample size'', ''confidence level'', so your code would look like:
    4 KB (550 words) - 22:11, 24 February 2016
  • ...n the $C000-$FFFF area. Once you succeed in unlocking flash, the following code can be used to unlock RAM page 0 from within TIOS: ; page to find the appropriate code)
    3 KB (408 words) - 23:59, 5 February 2016
  • ...better. In the field of TI calculator programming, it refers to improving code to use less memory, whether as program size or in the size of variables use ...ll call "line-by-line optimization", refers to ways of rewriting a line of code, or several lines, so that it does basically the same thing, but is smaller
    3 KB (492 words) - 18:40, 24 February 2016
  • ...s. It is a scripting language, which means that it is converted to machine code as it runs. Conversely, a compiled language does not have to be translated ...you want; the computer can not decide that it makes more sense to do this code before another bit. Some would argue this the hardest part of programming,
    3 KB (483 words) - 00:47, 25 February 2016
  • == The Code ==
    1 KB (248 words) - 00:38, 25 February 2016
  • == Macro Code ==
    1 KB (164 words) - 00:07, 6 February 2016
  • Based on the data list syntax for a 2-SampTInt, here is your code: This means that the code is:
    5 KB (856 words) - 21:40, 24 February 2016
  • ...:Repeat Ans>40 and Ans<94 or '''max(Ans={105,23'''", and add the following code right before the final End that terminates the outer loop. ...'. 'K' must also be added onto a new line after the second 'End' after the code below. This is because the new variable 'I' messes with 'Ans'.
    13 KB (2,325 words) - 18:09, 24 February 2016
  • Now that we know what flags are, how do we use them? As seen in the code above, there are 3 bitwise instructions that can be used on flags: [[Z80:Op There are other uses of bitmasking, but they are usually code specific (mostly for optimizing).
    12 KB (2,030 words) - 08:02, 6 February 2016
  • ...find out what direction the user moved. This can be done with the normal code without [[TI-BASIC:Min|Min(]] and [[TI-BASIC:Max|Max(]]. Next, we will red
    4 KB (768 words) - 00:57, 25 February 2016
  • ...r lines of code. This is extremely useful as most macros compress lines of code into one instruction.
    876 bytes (128 words) - 06:13, 6 February 2016
  • An alternate method to this is an adaptation of the Key Code to Letter routine, written below. Both methods share very extremely fast sp * [[TI-BASIC:Key_Code_Retriever|Key Code Retriever]]
    1 KB (221 words) - 22:13, 24 February 2016
  • ...hich corresponds to an argument of 1. To solve the problem, you'd use this code: ...instead. The sample size is 30; let's suppose that the mean was 11.2. The code you'd use is:
    7 KB (1,171 words) - 18:10, 24 February 2016
  • ... ;other code So now let's write some code that draws directly to the screen (or rather, look at someone else's for no
    17 KB (2,951 words) - 08:25, 6 February 2016
  • == The Code ==
    1 KB (206 words) - 00:38, 25 February 2016
  • ! Key !! Code !! Equate !! !! Key !! Code !! Equate !! !! Key !! Code !! Equate
    2 KB (163 words) - 18:00, 6 February 2016
  • ...ant to make them as compact as possible. This starts with moving invariant code outside the loops. You only want loops to contain expressions whose values ...the Lbl is deep within the program. It also has the tendency to make your code harder to follow and maintain. And, if you use a Goto to exit a loop or a c
    4 KB (814 words) - 18:41, 24 February 2016
  • ...hange does not affect displayed information at all and merely shortens the code a little. ...o combine the two times the word YOU is displayed? Consider the following code, which is six bytes smaller.
    5 KB (747 words) - 00:56, 25 February 2016
  • = Code replacements = = Optimised Code Snippets =
    7 KB (1,165 words) - 08:23, 6 February 2016
  • ...eful for OS 2.53MP and up. For lower OSes, replace randIntNoRep( with this code: ...ly be cracked by sheer luck. So here are the two codes and then a combined code that takes care of both:
    5 KB (839 words) - 00:38, 25 February 2016
  • ...:Ports:Port03|port03]]. Otherwise, it will continuously call the interrupt code once interrupts are reenabled with [[Z80:Opcodes:EI|EI]]. ...d [[Z80:Ports:Port16|port16]] to enable execution on RAM page 00. (Assumes code is running from 4000h (i.e. an application))
    6 KB (925 words) - 08:10, 6 February 2016
  • Try the above code out on your calculator! Key code stored in Ans
    9 KB (1,487 words) - 06:57, 26 February 2016
  • == The Code ==
    1 KB (176 words) - 00:37, 25 February 2016
  • ...t from a string within the menus. See [[TI-BASIC:Selfmodify|self-modifying code]] for more information.
    9 KB (1,593 words) - 23:21, 24 February 2016
  • = Code (Graph Screen) = = Code (Home Screen) =
    3 KB (529 words) - 22:12, 24 February 2016
  • ** [[Z80:Application Code|Application Code]]
    4 KB (510 words) - 08:18, 6 February 2016
  • ...s made as an alternative to the [[TI-BASIC:String_To_List|String_To_List]] code. it works in conjunction with the [[TI-BASIC:List_To_String2|list to string
    809 bytes (124 words) - 22:10, 24 February 2016
  • ...technical information. If you have a quality program with some exceptional code, other less knowledgeable users would probably be interested in studying th |prevtitle = Code Timings
    4 KB (604 words) - 18:03, 24 February 2016
  • {{Template:TI-BASIC:Prgm-code |code=:dim([A]
    2 KB (262 words) - 23:22, 24 February 2016
  • ...de_Conventions|Code Conventions]], and [[TI-BASIC:Comments|Commenting Your Code]])
    7 KB (1,177 words) - 00:56, 25 February 2016
  • |summary=Retrieves the key code of any key pressed This routine loops until a key is pressed. When a key is pressed, the key code for that specific key is displayed.[[Category:TI-BASIC]]
    380 bytes (55 words) - 22:13, 24 February 2016
  • # [[Z80:Application Code|Application Code]]
    2 KB (315 words) - 21:18, 3 February 2016
  • every piece of keyhooking code begins with this ;it from randomly executing some code.
    1 KB (215 words) - 18:20, 24 February 2016
  • ...inked from this page are complete (if simple) games, presented with source code and an explanation. They are meant as a way of putting everything that is o * '''[[TI-BASIC:Mastermind|Mastermind]]''' -- Try to break a random code of five numbers in fifteen guesses or less.
    3 KB (561 words) - 18:04, 24 February 2016
  • ...eat]] loop, and [[TI-BASIC:For|For(]] loop, to indicate the ''end'' of the code block for the respective control structure. In the case of the If condition .... The easiest way to keep track of lots of nested control structures is to code the first part, add an End immediately after the beginning, and then hit 2n
    2 KB (378 words) - 18:31, 24 February 2016
  • (code if clock is on) (code if clock is off)
    985 bytes (161 words) - 18:15, 24 February 2016
  • ...remove the first element of the list. This can be done with the following code: ...then decreasing the list size by one. This can be done with the following code:
    3 KB (554 words) - 18:41, 24 February 2016
  • ...DFull) is EF4045 in machine code, and B_CALL(_ClrLCD) is EF4345 in machine code, and B_CALL(_ClrScreenFull) is EF4645. EF is BCALL(**). But why is the firs
    3 KB (372 words) - 06:32, 5 February 2016
  • ...xpressions. The disadvantages are that it can hinder readability (make the code harder to read) when you have lots of varied arguments, and it is easier to
    5 KB (886 words) - 18:21, 24 February 2016
  • ...y tackling one small problem at a time, instead of the entire problem, the code needed is typically not only smaller and easier to understand (i.e., more m ...BASIC:Repeat|Repeat]], or [[TI-BASIC:For|For(]] loop). While the iteration code may be larger, it doesn't need the additional memory for each call that the
    5 KB (789 words) - 18:04, 24 February 2016
  • ...se commands is [[TI-BASIC:Timings|timing]] different commands or pieces of code, as well as countdowns in games, or a time-based score (such as in Mineswee When testing code, be aware that many different things affect the time: the strength of the b
    3 KB (440 words) - 18:32, 24 February 2016
  • ...omething in the title that signifies what page you're on. Finally, run the code as a subprogram.
    3 KB (541 words) - 22:10, 24 February 2016
  • ...pointer, and draw again to the buffer. You can do that with this piece of code: <code>
    2 KB (381 words) - 22:39, 4 May 2018
  • .db $80,$70 ;Indicates the start of the application code. .db $80,$C2, 1,13 ;Field: Lowest base code (OS version) that the app can run on. in this example, OS v1.13.
    1 KB (197 words) - 21:30, 31 May 2016
  • The following code sets up an integer square window with (0,0) in the center: ...ost two digits. For this reason, it is the most widely used. The following code sets up such a window:
    7 KB (1,094 words) - 18:23, 24 February 2016
  • Here's a trick. To set the seed to a random number, use this code: This is the final part of the code where it takes the difference of the guesses and subtracts that from the tu
    6 KB (994 words) - 00:55, 25 February 2016
  • |||||||||||||||!! One-byte tokens by hex code (0x00 - 0x7F) |||||||||||||||!! One-byte tokens by hex code (0x80 - 0xFF)
    9 KB (1,031 words) - 23:54, 24 February 2016
  • ...2''x''<sup>2</sup>-1 would need to be {3,2,0,-1}. The program outputs the code as L,,3,, in that form. The program also displays the degree of the first Here are a couple of examples for you to try out to see if the code was inputted correctly:
    4 KB (577 words) - 22:23, 24 February 2016
  • ...tutorial]] we pointed out that you can not create permanent self modifying code. So, how do you save important data? The answer is in AppVars. They are a s
    3 KB (502 words) - 07:59, 6 February 2016
  • ...3-5 page tags describing the routine content. It may be useful to copy the code for this page and edit it as necessary, when creating a new routine page. :The code of the routine
    3 KB (453 words) - 22:11, 24 February 2016
  • ...an check for two solutions within a condition simultaneously. Observe the code for a condition. So, this code takes the integer part of the number and makes that the ''y'' part. Then,
    5 KB (893 words) - 00:55, 25 February 2016
  • Although this code draws pretty fast already, it could be made faster using lookup tables. Eve * The example trigonometric code was borrowed from David Martin's tutorial, which is not available on the In
    4 KB (597 words) - 18:34, 24 February 2016
  • the code for this is ...o guarantee that the correct answer will never be displayed, the following code can be used:
    2 KB (345 words) - 22:10, 24 February 2016
  • Compiled table of code that will make creating buffer tables easier. For both GetKey and GetCSC. Reference code for on-calc programming.
    2 KB (212 words) - 07:40, 6 February 2016
  • Running this code gives this program: The code for this is fairly simple:
    12 KB (2,106 words) - 18:24, 24 February 2016
  • ...editor, you can place the [[TI-BASIC:Percent|%]] symbol directly into the code as a replacement for dividing by 100. This saves a few bytes each time you ...program as possible. Since [[TI-BASIC:Setup|program setup]] is usually the code that is at the beginning of the program, this means that you should move it
    6 KB (1,064 words) - 23:53, 24 February 2016
  • ...programs need to be written on a computer, and then converted into machine code with an assembler and several other programs. These programs are currently ...is its speed. Because TI-Basic is converted by the calculator into machine code before it is executed, it loses much of its speed. Doing anything involving
    4 KB (706 words) - 18:34, 24 February 2016

View (previous 100 | next 100) (20 | 50 | 100 | 250 | 500)