Search results

From Learn @ Cemetech
Jump to navigationJump to search

Page title matches

  • |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
  • Now that we have the header of the application, it's time to discuss the code for applications. [[Z80:Intro to Flash Applications|Intro to Flash Applicat ...te a few of the novelties of flash application programming. So, here's the code (with out header):
    4 KB (541 words) - 08:00, 6 February 2016
  • * [[TI-BASIC:Key_Code_Retriever|Key Code Retriever]]
    825 bytes (113 words) - 21:56, 24 February 2016
  • ..., primarily focusing on the structure and appearance of the code. Although code conventions are generally subjective and informal, just the individual pref ...understand, but also eliminates a lot of the difficulty in maintaining it. Code conventions are also important in group projects, where multiple people are
    5 KB (794 words) - 18:02, 24 February 2016
  • 69 bytes (7 words) - 18:06, 24 February 2016
  • {{Template:TI-BASIC:Code |code=
    602 bytes (98 words) - 18:07, 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
  • ...tructure and organization. Where the spaghetti name comes from is that the code becomes difficult to read and understand, similar to how it is difficult to Besides making code hard to read and understand, spaghetti code also has some other disadvantages associated with it:
    2 KB (358 words) - 18:27, 24 February 2016

Page text matches

  • When creating a subprogram, you take whatever code you want from the parent program and put it in its own program (see [[TI-BA ...nderstand and update (in fact, it's actually a [[TI-BASIC:Code_Conventions|code convention]]), and helps cut down the potential for [[TI-BASIC:Errors|memor
    34 KB (5,832 words) - 18:36, 24 February 2016
  • ...easy to mess up your program, overwriting or deleting necessary pieces of code. If you just spent several hours working on your program, you don't want to = Simplify the Code =
    14 KB (2,449 words) - 00:39, 25 February 2016
  • ...s://www.cemetech.net/forum/profile.php?mode=viewprofile&u=10064 <code>PT_</code>]. ICE allows you to create advanced programs right on your 84+ CE without ...and use ICE to compile your program into eZ80 assembly, A.K.A raw machine code for your calculator. This means that your ICE programs will run much faster
    68 KB (11,666 words) - 22:35, 14 June 2018
  • ...re of the TI-Basic community: allowing others to study and learn from your code, and to use the techniques and concepts in their programs, increases the qu = Put the Code Together =
    17 KB (2,996 words) - 00:38, 25 February 2016
  • = The Code = To achieve the function of movement, we need to use some intense code and combine that with the attribute of getKey. First of all, the object th
    15 KB (2,588 words) - 00:56, 25 February 2016
  • ...ly write the code. Depending on what kind of program you're creating, your code will vary a great deal. However, it is possible to provide a few tips on co If you don't know already, re-writing the same code multiple times is a waste of time and space. Instead, it is much more effic
    8 KB (1,272 words) - 08:01, 6 February 2016
  • Controlling flow defines the order in which a program runs, what line of code will be executed next; to repeat or skip a group of commands. There are thr ...ccur -- directing the flow of program execution. Conditionals determine if code will be executed or not.
    31 KB (5,464 words) - 00:37, 25 February 2016
  • ...do so until the condition after While becomes false. Let us consider this code: This code, of course, initially stores 3 into A. Then, it encounters the While loop.
    16 KB (2,791 words) - 00:57, 25 February 2016
  • ...keep track of time in games because they operate regardless of what other code is currently being executed. There are two kinds of interrupts: hardware an ...-Calculators, an interrupt is never triggered. You can test this with this code:
    7 KB (1,090 words) - 06:16, 5 February 2016
  • The table of key code values is stored at '''(KeyExtend)'''. '''kExtendEcho2 ($FC)''' holds the last key code returned from GetKey, which is also stored into the accumulator after calli
    6 KB (683 words) - 08:28, 6 February 2016
  • ...lp you determine the flow of the program. It would be really boring if the code executed each line once from the beginning of the program to the end. We ne ...ly, testing conditions are a vital part to programming code. If a piece of code is continually run from start to finish without conditions, it's usually no
    10 KB (1,600 words) - 07:57, 6 February 2016
  • ...ach time through the game loop. In addition, if you enter a large block of code for the player, it will take a while before the other players have a chance This is code determines which assigns each calculator with a unique identity:
    18 KB (2,917 words) - 00:37, 25 February 2016
  • ...ress alpha followed by up or down, you will scroll a whole page of program code. In addition, 2nd right will take you to the end of your current line, and ...king up just consists of creating a new program, and recalling the program code into that program. However, if your program uses several programs and other
    5 KB (789 words) - 00:57, 25 February 2016
  • ...ress alpha followed by up or down, you will scroll a whole page of program code. In addition, 2nd right will take you to the end of your current line, and ...king up just consists of creating a new program, and recalling the program code into that program. However, if your program uses several programs and other
    4 KB (762 words) - 18:34, 24 February 2016
  • In the beginning of programming, programmers had to write code by manually setting on/off switches. Depending on whether the switch was se ...ent of compilers. These were primitive programs that took user inputs (the code) and turned them into on/off data that the computer could use. The basis of
    10 KB (1,648 words) - 20:11, 19 May 2016
  • ...screen. Notice that it only displays a character, though. Below is some code that would display text: ...gs because it to your calculator it is all the same thing (pictures, text, code, data, etc.).
    16 KB (2,502 words) - 18:52, 6 March 2017
  • ...ounter (often we use B to take advantage of DJNZ), we can copy the looping code the fixed number of times. ...ed from the original. However, comparing the sizes, the optimised unrolled code is 43 bytes compared to 13 bytes.
    13 KB (1,775 words) - 08:12, 6 February 2016
  • = The Code = This is the basis for the code used in the two later examples. An explanation for why it works can be see
    7 KB (1,212 words) - 00:39, 25 February 2016
  • ..., primarily focusing on the structure and appearance of the code. Although code conventions are generally subjective and informal, just the individual pref ...understand, but also eliminates a lot of the difficulty in maintaining it. Code conventions are also important in group projects, where multiple people are
    5 KB (794 words) - 18:02, 24 February 2016
  • ...es the end of the code, so if you are developing a game or so you need the code to flow correctly and execute over and over (for example for checking if yo ...not have exactly 101 uses, they are some of the most spectacular pieces of code that enable iterations to be made so that a game can constantly update itse
    5 KB (877 words) - 00:56, 25 February 2016
  • Example of Inputting Hex Code ...mmand, where Asm(prgmPROGNAME is the program that contains the hexadecimal code.
    15 KB (2,541 words) - 21:58, 24 February 2016
  • ...[[TI-BASIC:Pause|Pause]] to separate the variable initialization from the code test). Feel free to experiment with code timings, and to put your results up on this page. However, be sure to list
    20 KB (3,134 words) - 00:36, 25 February 2016
  • ...mment is a brief note that describes some functionality or feature of your code. You don't need to comment everything, but the two main things that you sho There are a couple different ways that you can add text comments to your code, with each having their own advantages and disadvantages. The first way is
    6 KB (1,044 words) - 18:05, 24 February 2016
  • In this code, if ''a'' is greater than ''b'', the program will say "yes", otherwise, it This code tests the value of '''a''' three times. First it finds if '''a'''=1. If i
    41 KB (6,621 words) - 00:38, 25 February 2016
  • |summary=Executes a line or block of code when an expression is nonzero. ...Advanced uses of the If command allow you to execute a different block of code if the check turns out to be false. The simplest form of the command is qui
    4 KB (661 words) - 18:40, 24 February 2016
  • ...e compatible with a shell. There are certain instructions you put in your code so that the shell recognizes the programs that it should show. ;code starts here
    6 KB (904 words) - 21:05, 3 February 2016
  • Here's a chunk of code that will create a simple menu with a header(Test Menu), 4 items (A,B,C, an Hopefully from the code you'll be able to understand the general flow.
    16 KB (2,051 words) - 21:27, 3 February 2016
  • ...message at the end. To eliminate this you can add this to the end of your code Output(1,1,"</span> '''7'''. What is the minimal modification that will allow this code to start-up?
    13 KB (2,355 words) - 18:24, 24 February 2016
  • The following code is an efficient way of waiting until a number key is pressed, and convertin ...f all you're going to do with the option is go to a different part of your code, you might just want to use the getKey value for comparisons. And if you on
    10 KB (1,673 words) - 18:33, 24 February 2016
  • The code below allows you to move an X around on the [[TI-BASIC:Homescreen|home scre This code is a collaboration of many optimizations by many members of the ti-basic co
    7 KB (1,221 words) - 18:02, 24 February 2016
  • 1817 ;skips the first chunk of code 1827 ;skips the first chunk of code
    6 KB (1,175 words) - 22:10, 24 February 2016
  • ...message at the end. To eliminate this you can add this to the end of your code Output(1,1," '''7'''. What is the minimal modification that will allow this code to start-up?
    14 KB (2,256 words) - 23:22, 24 February 2016
  • ...en display it at the end to get a final output. For example, look at this code. All it is doing is testing a condition and acting upon it on which phrase ...e strings depending on some conditions to receive an output. So the above code can be turned into this:
    6 KB (1,039 words) - 00:54, 25 February 2016
  • ...uilt-in. An [[TI-BASIC:If|If]] conditional is easiest, but if there is no code that ends the branching, then program execution will continue indefinitely, * It makes reading code (your own, or someone else's) much more confusing.
    6 KB (1,099 words) - 18:30, 24 February 2016
  • ===== The Code, Version 1, Kahla Mancala ===== ===== The Code, Version 2 =====
    10 KB (1,317 words) - 00:39, 25 February 2016
  • '''Main code:''' ...e corners of an imagined rectangle, in pixel coordinates, and run the main code of the routine. The ellipse will be drawn inside this rectangle (much like
    4 KB (713 words) - 21:59, 24 February 2016
  • ...recursively: N! = N*(N-1)! (with 1! and 0! being defined as 1). The actual code for a stack will be given in the next few sections; for now, let the fictio ...tack will crash when you try to do that. In most cases, you can watch your code to make sure that pushes and pops come in pairs, to prevent this from happe
    6 KB (1,064 words) - 18:10, 24 February 2016
  • |summary=Loops through a block of code while the condition is true. ...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 (744 words) - 18:11, 24 February 2016
  • ...] and [[TI-BASIC:Programs|Programs]] are a good place to find such example code. See the [[TI-BASIC:Routines|Routines]] page for several short routines to ...ider [[TI-BASIC:Comments|Commenting Code]] and [[TI-BASIC:Code_Conventions|Code Conventions]] when you're writing it.
    6 KB (999 words) - 18:22, 24 February 2016
  • Here's what this code would do: ...how we would do to mix all together and add loops! Try to understand this code before continuing and type it in your own calculator.
    9 KB (1,461 words) - 00:39, 12 April 2016
  • ...isplayed. Now if the IF comes across a 1, it returns true and executes the code that follows. Now you might be asking yourself "And what about the IF 2?" w ...number but a condition. Well you are wrong. Look at the following piece of code:
    4 KB (784 words) - 00:57, 25 February 2016
  • Here is what the validation code for our game might look like with each of the three different validation ap ...mbly shells]]. We used the opposite commands in the making bad input valid code: [[TI-BASIC:Ipart|IPart(]] instead of fPart( and [[TI-BASIC:Real|Real(]] in
    13 KB (2,239 words) - 18:20, 24 February 2016
  • ...be displayed. Try out the game and try to understand and think through the code. == The Code ==
    1 KB (194 words) - 18:20, 24 February 2016
  • ; your code goes here ...e, the .db $BB,$6D inserts the "AsmPrgm" token as the first line of actual code into your program. You can find this token by going into your program catal
    4 KB (684 words) - 19:38, 6 February 2016
  • ...point, adding variables such as X and Y above is useful, allowing the same code to draw the same thing at multiple locations. It should also be noted that * The image data is stored in variables (lists), so the same code can display any sprite.
    15 KB (2,537 words) - 00:38, 25 February 2016
  • This is a better version of the previous code. It can add A to HL, BC, or DE, it doesn't require that you destroy the da The first code subtracts B from A. The second code subtracts the value pointed to by HL from A.
    6 KB (974 words) - 20:58, 3 February 2016
  • = The Original Code = Below is the code of the original version of the guess-the-number game. It is a 1-Player game
    27 KB (4,816 words) - 22:24, 24 February 2016
  • ...a buffer, you need to define the beginning or end. Whether you do this in code or just in your head, it doesn't really matter. == The Code ==
    6 KB (786 words) - 08:22, 6 February 2016
  • ...tructure and organization. Where the spaghetti name comes from is that the code becomes difficult to read and understand, similar to how it is difficult to Besides making code hard to read and understand, spaghetti code also has some other disadvantages associated with it:
    2 KB (358 words) - 18:27, 24 February 2016
  • Now that we have the header of the application, it's time to discuss the code for applications. [[Z80:Intro to Flash Applications|Intro to Flash Applicat ...te a few of the novelties of flash application programming. So, here's the code (with out header):
    4 KB (541 words) - 08:00, 6 February 2016
  • == Code Structure == ...ur code and make choices depending on whats true at the time and what your code tells it to do.
    10 KB (1,746 words) - 00:39, 25 February 2016
  • At 13 bytes, this code is a pretty decent balance of speed and size. It multiplies DE by A and ret ...ading zeroes before finishing the multiplication, which take a little more code, but results in a faster average speed.
    46 KB (6,182 words) - 22:30, 31 May 2016
  • Before writing any of the code for a program, you should carefully plan out the program. This may seem lik ...es using English (or whatever language you speak) in place of the TI-Basic code to describe what the program will do to perform the desired functions and t
    8 KB (1,382 words) - 21:28, 1 December 2017
  • ...t will have a length of more than that (in this case, 3). So this piece of code stores a default of {0,0,0} to the list if it's just been created (of cours ... //Rest of code
    6 KB (979 words) - 18:03, 24 February 2016
  • ...f iPart( and fPart(, multiplying by the related power of 10. The following code draws a line for each element in the list: ...e harder to compress multiple digit of any length into one number, so more code is needed to accomplish this.
    10 KB (1,658 words) - 18:04, 24 February 2016
  • This is perhaps best explained with an example. The following code will display the numbers 1 to 10, in order: <some code>
    6 KB (958 words) - 18:04, 24 February 2016
  • Before writing any of the code for a program, you should carefully plan out the program. This may seem lik ...es using English (or whatever language you speak) in place of the TI-Basic code to describe what the program will do to perform the desired functions and t
    8 KB (1,384 words) - 18:13, 24 February 2016
  • Another code you can use uses the xor logic: The code above will scroll the screen right 5 pixels, then toggle a LCD update.
    18 KB (2,976 words) - 00:37, 25 February 2016
  • == Macro Code == In case you memorized the hex code, the code is undocumented, or you are typing directly on the calculator. For example,
    1 KB (164 words) - 07:53, 6 February 2016
  • The command DS<(A,B is equivalent to the following code: A similar code can be used as a substitute for B-1→B if you don't want to change Ans:
    4 KB (749 words) - 18:21, 24 February 2016
  • ...veral different pitfalls that you have to be aware of. A pitfall is simply code that is syntactically correct, but does not produce the correct or desired ...around (25 should be swapped with 34, and vice versa for 24 and 26). This code will not generate any errors by the calculator, since it is syntactically c
    6 KB (999 words) - 00:55, 25 February 2016
  • : '''ASCII <span id=" ascii"></span>''' : The American Standard Code of Information Interchange. It uses 1 [#byte byte] (8 [#bit bits]) to hold ...A-F. It is used as a convenient shorthand way to express [#binary binary] code, because every four bits of binary have a corresponding hexadecimal symbol.
    28 KB (4,340 words) - 22:24, 24 February 2016
  • ...veral different pitfalls that you have to be aware of. A pitfall is simply code that is syntactically correct, but does not produce the correct or desired ...around (25 should be swapped with 34, and vice versa for 24 and 26). This code will not generate any errors by the calculator, since it is syntactically c
    6 KB (972 words) - 18:04, 24 February 2016
  • ...o begin with, so at the start of your program you should put in a block of code to do this. ...the list didn't already exist or didn't have 7 elements, the next block of code will execute.
    6 KB (1,092 words) - 18:27, 24 February 2016
  • ...ecks of cards. Commonly, before this command was introduced, the following code would shuffle a deck: This result can now be achieved with the following code:
    2 KB (275 words) - 18:06, 24 February 2016
  • ...numbers, because other programs might. To prevent this, use the following code to save and restore "randomness": {{Template:TI-BASIC:Prgm-code
    4 KB (625 words) - 18:28, 24 February 2016
  • ...other games, try out the game and try to understand and think through the code. == The Code ==
    2 KB (273 words) - 00:36, 25 February 2016
  • ...built-in. An [[TI-BASIC:If|If]] conditional is easiest, but if there is no code that ends the branching, then program execution will continue indefinitely, * It makes reading code (your own, or someone else's) much more confusing.
    3 KB (561 words) - 18:31, 24 February 2016
  • The command IS>(A,B is equivalent to the following code: Similar code can be used as a substitute for B+1→B if you don't want to change [[TI-BA
    4 KB (748 words) - 18:12, 24 February 2016
  • '''Q''': My program is extremely large. Is there a way to manage/condense the code better? '''Q''': How do I hide the code of my TI-Basic program?
    23 KB (3,863 words) - 18:33, 24 February 2016
  • ...inal string backwards using a [[TI-BASIC:For|For(]] loop. Here is what the code would look like: The actual code for the routine is:
    5 KB (975 words) - 18:16, 24 February 2016
  • * [[TI-BASIC:Timings|Code Timings]] * [[TI-BASIC:Selfmodify|Self-Modifying Code]]
    7 KB (891 words) - 18:34, 24 February 2016
  • Or alternatively for a slightly faster and smaller code: ...try this with small examples to understand and possibly develop their own code.
    35 KB (5,985 words) - 00:36, 24 April 2016
  • ...to think of matrices as lists of lists, you can say that the last line of code says, "Provide 2 lists, each with 3 elements." ...to store the powers of 2 from element (1,1) to (2,3), we have to use this code:
    3 KB (512 words) - 00:53, 25 February 2016
  • ...resents it with the appropriate tokens. It can convert .8xp fies to source code, as well as let you edit and create programs online and export them as .8xp ...guishing the code can be difficult. JALcc solves this problem by utilizing code-coloring commands, indenting nested commands, and allowing you to make larg
    10 KB (1,435 words) - 18:38, 24 February 2016
  • ...tect's source has been released, it is not much of a problem to modify the code to look for appvars instead of programs. ...ng the detector easier. In this example, you can copy this entire block of code and compile it. There is no need for any header (include ti83plus.inc, defi
    4 KB (678 words) - 08:22, 6 February 2016
  • ...functionality like giving access to key-hooks. This page provides you with code you can embed into TI-Basic programs to make them compatible with assembly :<program code...>
    2 KB (358 words) - 00:37, 25 February 2016
  • ...nd result tends to produce more bulky and poorly written code, than if the code was written from scratch and thought out from the beginning. Don’t worry ...re tips from the [[TI-BASIC:Plan|planning]] tutorial, but you can start to code.
    7 KB (1,255 words) - 18:39, 24 February 2016
  • Defines a code section. Code inside sections isn't compiled immediately. To compile it, you need to use
    937 bytes (101 words) - 17:28, 5 February 2016
  • This code will recall Pic1 then wait for the user to press Enter and finally erase al The code for the bullet(s) is
    10 KB (1,674 words) - 00:56, 25 February 2016
  • Self-modifying code (SMC) is code that changes itself while it is executing. While TI-Basic does not provide ...ariable whenever you want to call the statement. This eliminates duplicate code, which makes your program smaller.
    4 KB (735 words) - 18:40, 24 February 2016
  • The American Standard Code for Information Interchange. It is a standard for character interpretation Lines of code that on compile are replaced with other lines of code. A notable example is [[Z80:Macros:BCALL|BCALL]].
    5 KB (862 words) - 07:34, 6 February 2016
  • ...et for a moment that the [[TI-BASIC:Abs|Abs(]] command exists, and picture code that would do its job. A possible solution relies on the [[TI-BASIC:If|If]] ...ssions while keeping the result the same. For example, here is part of the code for moving a cursor on the screen, as a piecewise expression:
    4 KB (729 words) - 18:18, 24 February 2016
  • '''BC''' is used by instructions and code sections that operate on streams of bytes as a byte counter. Is also used a ...ogram counter. It hold the point in memory that the processor is executing code from. No function can change PC except by actually jumping to a different l
    13 KB (2,179 words) - 05:22, 10 March 2017
  • Given a value in X, this code will search L1 and return the index number of the first (or last) occurrenc ...4}, the index value of the element 5 is 3. Storing 5 to X and running this code will return 3.
    1 KB (170 words) - 22:12, 24 February 2016
  • This code, as it stands right now, displays the day of March it falls on (if it's ove Append the following code to display the actual day:
    2 KB (389 words) - 22:09, 24 February 2016
  • ...than immediate constants) to access. They are harder to type and can make code look confusing, so it is better to write your program using normal variable Code used in testing:
    2 KB (288 words) - 18:18, 24 February 2016
  • ...replaced with other sprites to create animations. They are stored in your code just like data. ...n you have to draw out your sprite, and I literally mean draw it out. The code below is sprite data for the ball.
    3 KB (445 words) - 03:04, 5 February 2016
  • ...ay you want to tell the user that they're score was 10. you would use this code: However, games usually have variating scores. You can use this code to display the player's score, A.
    3 KB (493 words) - 00:57, 25 February 2016
  • ...ample, the following code will not memory leak nor will it slow down. (The code has been indented purely for readability. ...f Ends after the Lbl and Goto. If one of the While loops were missing, the code would memory leak.[[Category:TI-BASIC]]
    3 KB (446 words) - 18:06, 24 February 2016
  • ...type the matching number. Like with the other games, try to understand the code and experiment with it. == The Code ==
    1 KB (166 words) - 00:37, 25 February 2016
  • ...et to the size of all the pages you used combined. This means that if your code happens to be 16,385 bytes, then you would have to go onto the next flash p ...o actually start the program before the Jump table. Deal with it. Sample code pulled from Ti.
    8 KB (1,291 words) - 21:07, 3 February 2016
  • Loops are a type of control structure used to repeat a block of code several times. Typically, there are two kinds of loops in programs: ...' the condition is true"), and exit as soon as the condition is false. The code inside a Repeat loop will keep repeating until the condition becomes true (
    4 KB (707 words) - 00:54, 25 February 2016
  • == Code == Type in this code into your calculator:
    2 KB (288 words) - 18:08, 24 February 2016
  • ...o find out if any number from 1 to 999 is a happy number. Before I put the code in though, some of you may be wondering what a happy number is though. Here is the code. It might not be in the most convenient format, but here it is:
    2 KB (376 words) - 18:19, 24 February 2016
  • ...ions. This page will explain these changes and how to properly set up your code to make everything and everyone happy. ; page0 code
    5 KB (781 words) - 06:20, 5 February 2016
  • ...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
  • {{Template:TI-BASIC:Prgm-code |code=
    3 KB (446 words) - 18:04, 24 February 2016
  • ...acter. Again, try out the game and try to understand and think through the code. == The Code ==
    2 KB (261 words) - 00:37, 25 February 2016
  • ...other games, try out the game and try to understand and think through the code. == The Code ==
    2 KB (250 words) - 00:38, 25 February 2016
  • * [[TI-BASIC:Code_Conventions|Code Conventions]] * [[TI-BASIC:Comments|Commenting Code]]
    5 KB (576 words) - 21:35, 25 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
  • = 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
  • every piece of keyhooking code begins with this ;it from randomly executing some code.
    1 KB (215 words) - 18:20, 24 February 2016
  • # [[Z80:Application Code|Application Code]]
    2 KB (315 words) - 21:18, 3 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
  • ...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
  • ...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
  • ...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
  • 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
  • .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
  • 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
  • ...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
  • ...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
  • ...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
  • Running this code gives this program: The code for this is fairly simple:
    12 KB (2,106 words) - 18:24, 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
  • ...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
  • {{Template:TI-BASIC:Prgm-code |code=
    3 KB (527 words) - 23:54, 24 February 2016
  • ...respective calculators and the other program is the primary all-calculator code for the program.
    9 KB (1,377 words) - 22:24, 24 February 2016
  • '''BC''' is used by instructions and code sections that operate on streams of bytes as a byte counter. Is also used a ...ins $A100 because of the little-endian processor. Here's a possible sample code:
    4 KB (403 words) - 05:49, 10 March 2017
  • ...tive to the previously existing [[TI-BASIC:List_To_String|List_To_String]] code.
    753 bytes (117 words) - 22:09, 24 February 2016
  • ...modified version of the code it would output "helloworlditsme" a 15 letter code while still only displaying 10 letter words for any other input. You can s
    2 KB (316 words) - 22:12, 24 February 2016
  • ...er than getting it from a string. See [[TI-BASIC:Selfmodify|seld-modifying code]] for more information.
    9 KB (1,529 words) - 00:56, 25 February 2016
  • ...ptimization is making your game better. It involves reviewing all of your code and looking for subtle changes that can be made, that as a whole, decrease ...Sometimes, to make programs smaller, one has to scrap previously written code and completely rewrite the program with a different approach. This would b
    2 KB (295 words) - 00:57, 25 February 2016
  • ...tement is hit. If it evaluates to false (zero) then the following block of code is skipped until another conditional statement is hit.
    589 bytes (80 words) - 08:27, 5 February 2016
  • ...he formulas aren't exactly the same in the code. The reason is because the code is designed to be optimized, and rather than displaying each temperature co
    2 KB (242 words) - 22:09, 24 February 2016
  • {{Template:TI-BASIC:Prgm-code |code=
    2 KB (252 words) - 23:22, 24 February 2016
  • ...mbers (more than 1 line). Now go to prgmWIKI and simply create one line of code: ClrHome. Execute the program. ...t can only be used in one way: It will stop the program from executing any code that comes after it until the user presses "ENTER"
    4 KB (707 words) - 00:37, 25 February 2016
  • This code will return the number 5 extracted from the complex number 5+6i. That's all ...ariable A to contain both the values of B and C, you can use the following code.
    2 KB (347 words) - 00:57, 25 February 2016
  • ...will be assembled instead. If it evaluated to true, the following block of code will be skipped.
    410 bytes (55 words) - 17:01, 5 February 2016
  • Scans the keypad and returns a key code in the ANS variable. Returns a code in the ANS variable which will tell you what calculator version you are run
    11 KB (1,708 words) - 00:36, 25 February 2016
  • * When the code in the string does not return an answer, and thus is not an expression: e.g ...try to take as much out of an expr( statement as possible to speed up your code. For example:
    3 KB (453 words) - 18:35, 24 February 2016
  • 3- Optimize the code and add some cool menus and stuff; 5- Try protecting the code of your game/app, use this software: [http://education.ti.com/educationport
    2 KB (279 words) - 18:19, 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 (940 words) - 00:57, 25 February 2016
  • ...eplace it with a [[Z80:Directives:DB|.db 0]]. You can also replace any key code with another [[Z80:Character Maps|TI ASCII value]] to create an alternative
    11 KB (1,396 words) - 07:53, 6 February 2016
  • ...ase go ahead and add them. Thank you for your continued commitment to this code of conduct.
    2 KB (409 words) - 18:10, 24 February 2016
  • This code works because it creates two points with a known best fit line: the best fi ...numbers. With complex numbers, such as imaginary numbers, you can use this code at the end of the first to get the same effect with ''i'' in it.
    2 KB (290 words) - 23:22, 24 February 2016
  • See the code segment below for an example: ...will not work on earlier OSes. To avoid non-portability, use the following code.
    2 KB (288 words) - 18:19, 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 (420 words) - 18:30, 24 February 2016
  • Then you have this code: So if you have dcs the code to display that in grey till a key is pressed would be:
    2 KB (372 words) - 18:02, 24 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
  • ...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
  • ** [[Z80:Application Code|Application Code]]
    4 KB (510 words) - 08:18, 6 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
  • The directive generates code (and inserts it at the current point) according to the list.
    1 KB (138 words) - 16:43, 5 February 2016
  • The code will show A=?, which means, "What do you want A to equal?". Prompt has limi
    4 KB (603 words) - 00:56, 25 February 2016
  • Another use of the finance variables is in speed-critical sections of code: they are faster to access even than [[TI-BASIC:Ans|Ans]]. Somewhat off-set
    6 KB (934 words) - 23:22, 24 February 2016
  • Scan codes for direct hardware input. Horizontal values are the scan code and vertical values are the group codes. To activate a group, set the bit t
    2 KB (190 words) - 07:49, 6 February 2016
  • ...ou want to write a program called prgmGAME, you type the ASCII represented code in a program with a different name (e.g. GAMEA) and then do AsmComp(prgmGAM
    2 KB (246 words) - 18:20, 24 February 2016
  • ...-Basic programs, assembly programs are written in the calculator's machine code directly, which makes them more powerful in both speed and functionality. H
    1 KB (207 words) - 18:37, 24 February 2016
  • # Loops are a type of control structure used to repeat a block of code several times. There are two kinds of loops: a loop that repeats until a co
    2 KB (278 words) - 00:56, 25 February 2016
  • ...n the "list" (the delimiter must never occur in an individual string). The code will be simpler if the delimiter also occurs at the end of the string, as i
    4 KB (605 words) - 18:24, 24 February 2016
  • ...macro. Macros are basic find-and-replace operations, and as such lines of code are modified before being assembled.
    506 bytes (58 words) - 16:54, 5 February 2016
  • ...the fractional part, encoded as one of 0, 0.25, 0.5, or 0.75. In the above code (accessing individual cards), the convention is that 0=Spades, 0.25=Hearts,
    2 KB (330 words) - 22:10, 24 February 2016
  • this very simple code will switch the pixels on and off rapidly, a delay could be added using a "
    765 bytes (109 words) - 18:32, 24 February 2016
  • ...our game, it is practically 100% guaranteed that you made a mistake in the code. So use an [[Z80:Emulators|emulator]]! Tilem, Virtual Ti, and PindurTI ar
    3 KB (463 words) - 07:21, 6 February 2016
  • This can be taken to extreme degrees. For example, the following code uses abs( three times to test if X is the [[TI-BASIC:Getkey|GetKey]] keycod
    3 KB (391 words) - 02:25, 27 November 2017
  • ...tead of the variable. Even if Ans were 0 at the beginning of the loop, the code will work, since a Repeat loop will always cycle once before the condition
    5 KB (835 words) - 18:37, 24 February 2016
  • ...or limitation that it has is it does not allow formatting inside a link or code block. Specifically, you cannot display text or numbers as superscript (tex
    2 KB (245 words) - 00:36, 25 February 2016
  • * The hex code [[TI-BASIC:Asmprgm|AsmPrgm]]FDCB058EC9 will disable the option (but it requ
    5 KB (950 words) - 18:26, 24 February 2016
  • ...to perform the translation. It is a standard expression, where the special code {*} specifies the current character being translated. Here are a couple of
    1 KB (227 words) - 16:57, 5 February 2016
  • |location=This command can only be accessed through a hex editor (its hex code is 0xBB 0xDA)
    906 bytes (138 words) - 18:15, 24 February 2016
  • These quick chunks of code allow you to get through your programming without the hassle of inventing s
    2 KB (317 words) - 18:32, 24 February 2016
  • * [[TI-BASIC:Key_Code_Retriever|Key Code Retriever]]
    825 bytes (113 words) - 21:56, 24 February 2016
  • ...nvNorm( as an approximation for the nonexistent "invBinom(". The following code gives the number of trials out of N that will succeed with probability X if
    3 KB (381 words) - 18:21, 24 February 2016
  • The idea behind the code is actually pretty simple. The calculator has a few commands (in particular
    2 KB (293 words) - 22:12, 24 February 2016
  • ...etween bases will make programming as well as understanding other people's code a lot easier.
    8 KB (1,163 words) - 06:06, 5 February 2016
  • This page is dedicated to showcase small snippets of code may be useful. These small routines are designed to accomplish tasks involv
    560 bytes (97 words) - 18:07, 24 February 2016
  • ...can also calculate population standard deviation of L1 with the following code:
    2 KB (349 words) - 18:27, 24 February 2016
  • /* Uses the smallest of two pieces of source code */
    2 KB (202 words) - 17:11, 5 February 2016
  • ...verything positive from the bottom left corner you would use the following code.
    24 KB (4,238 words) - 00:37, 25 February 2016
  • Thus, the following code would find the probability of χ² between 0 and 1 on a χ² distribution w
    3 KB (407 words) - 18:33, 24 February 2016
  • ...ing in all of the different values into the npv( command, this is what our code looks like:
    4 KB (575 words) - 19:12, 24 February 2016
  • ...ould note that the [ON] key (the key in the bottom left corner) has no key code, so you cannot check for nor disable it.
    2 KB (257 words) - 18:21, 24 February 2016
  • The add code is as follows:
    1 KB (256 words) - 18:37, 24 February 2016
  • You want to write a loop that will continuously display the getkey code for the key you press, until you press enter.
    2 KB (304 words) - 20:59, 3 February 2016
  • Now for the Code:
    678 bytes (97 words) - 18:09, 24 February 2016
  • ...timization, or else the label will be ignored. For instance, the following code exits with [[TI-BASIC:Errors#label|ERR:LABEL]]:
    2 KB (269 words) - 18:27, 24 February 2016
  • ...lculators (an unsquished program can be edited, compiled or run as machine code on the calculator). Unsquished programs on the TI-8X still require regular
    877 bytes (138 words) - 17:13, 5 February 2016
  • ...so numbered starting from 0). This can be done using the following line of code:
    2 KB (356 words) - 22:23, 24 February 2016
  • For the TI-84+ and higher with a MathPrint or color OS, use this code instead:
    1 KB (211 words) - 19:40, 25 February 2016
  • ...hird to create a list of integers. To create a list of 20 dice rolls, the code would be like this:
    2 KB (390 words) - 00:55, 25 February 2016
  • The above code returns 1, because the 30<sup>th</sup> of December, 2007, is a Sunday.
    2 KB (239 words) - 22:24, 24 February 2016
  • ...value of a list is true will min( return true. For example, the following code will test if two lists are identical -- they have the same exact elements -
    3 KB (480 words) - 18:37, 24 February 2016
  • ...our CPU can only work with 8/16 at a time. And TI has also written all the code necessary for floating point arithmetic. All we need to do is plug in the i
    5 KB (720 words) - 21:00, 3 February 2016
  • This is where most of the helpful code is. Routines will help you accomplish some tasks that cannot normally be d
    2 KB (265 words) - 18:09, 24 February 2016
  • ...command does not need a line break or colon (which indicates a new line of code) following the variable name. This allows you to make chains of variables (
    4 KB (680 words) - 18:27, 24 February 2016
  • Forces an error in the source code. Follows the same general rules as .echo.
    318 bytes (40 words) - 17:29, 5 February 2016
  • The code for looping over each character (technically, each token) of a string invol
    1 KB (207 words) - 18:18, 24 February 2016
  • ...'[[TI-BASIC:Key_Code_Retriever|Key_Code_Retriever]]''' -- Displays the key code for any key that you press.
    6 KB (977 words) - 18:33, 24 February 2016
  • ...op. Create a new program, call it whatever you want, and use the following code (Substitute the program's name for A):
    733 bytes (126 words) - 18:03, 24 February 2016
  • = The Code =
    901 bytes (159 words) - 00:37, 25 February 2016
  • When the string is being concatenated to one that already exists, this code can be optimized by decrementing the For loop rather than incrementing, and
    3 KB (505 words) - 22:12, 24 February 2016
  • ...so has the jsTIfied calculator emulator built in so that you can test your code without leaving your browser.
    1 KB (211 words) - 03:07, 5 February 2016
  • ...dvantages of combining Prompt commands are that it makes scrolling through code faster, and it is more compact (i.e. smaller) and easier to write than usin
    8 KB (1,513 words) - 00:36, 25 February 2016
  • To use this, create a program, and enter the code above into it. Then run the program using [[TI-BASIC:Asm_Command|Asm(]]. Vo
    2 KB (343 words) - 18:29, 24 February 2016
  • The current top-level conditional is cleared, and the following code is assembled as normal.
    289 bytes (35 words) - 17:39, 5 February 2016
  • The output if you run the above code will look approximately like this:
    3 KB (522 words) - 18:18, 24 February 2016
  • ...dvantages of combining Prompt commands are that it makes scrolling through code faster, and it is more compact (i.e. smaller) and easier to write than usin
    3 KB (523 words) - 18:33, 24 February 2016
  • Append the following code to display the day of the week:
    3 KB (481 words) - 22:22, 24 February 2016
  • The part of the code that displayed X is no longer necessary, because the user will obviously kn
    6 KB (1,099 words) - 00:38, 25 February 2016
  • To remove a value, we have to use the same code as above to locate the end of the key-value segment of the string. We then
    3 KB (535 words) - 18:38, 24 February 2016
  • Here is the code:
    1 KB (236 words) - 06:35, 5 February 2016
  • ...tes to seconds in order to make the program work better. According to the code, the timer will stop when either a key is pressed or the amount of time tha
    2 KB (408 words) - 22:09, 24 February 2016
  • ...ram editor followed by up or down, you will scroll a whole page of program code?
    8 KB (1,373 words) - 23:54, 24 February 2016
  • Use to load numbers into operands. They can either be numbers used in the code (usually 8-bits), or labels (usually 16-bits).
    4 KB (533 words) - 08:25, 6 February 2016
  • The output if you run the above code will look approximately like this:
    3 KB (389 words) - 21:39, 24 February 2016
  • ...l string, store it to a different string variable in the first line of the code.
    2 KB (341 words) - 22:12, 24 February 2016
  • A good way to start is to put INPUT into the program code alone. A line with simply [[TI-BASIC:Input|Input]] will take you to the gra
    4 KB (602 words) - 00:36, 25 February 2016
  • ...ation for storing to an equation will not work. For example, the following code returns [[TI-BASIC:Errors#datatype|ERR:DATA TYPE]] because Ans is a string,
    3 KB (406 words) - 22:24, 24 February 2016
  • So, you designed a little image, labored over the code to draw it on the screen, and now you've finally got yourself a neat little
    3 KB (583 words) - 00:57, 25 February 2016
  • This code uses SMC, so it should be used in RAM. However, the SMC used can easily be
    11 KB (1,471 words) - 06:37, 5 February 2016
  • Just as the other formula, append the following code to display the day of the week:
    3 KB (542 words) - 22:10, 24 February 2016
  • ...le are always developing new routines. This page is where you can display code for things that you think could be better than currently accepted routines.
    1 KB (197 words) - 18:30, 24 February 2016
  • ...yte than [[Z80:Opcodes:JP|JP]], but is also slower. Weigh the needs of the code at the time before choosing one over the other (speed vs. size).
    1 KB (229 words) - 18:31, 19 March 2017
  • ...uld be followed by the random selection of the number, using the following code:
    3 KB (430 words) - 18:19, 24 February 2016
  • With only these 13 lines of code, you have created a very powerful program that can save you a lot of time.
    2 KB (267 words) - 18:36, 24 February 2016
  • ...ot work with assembly programs, however, since they are written in machine code and compiled.
    7 KB (1,224 words) - 00:55, 25 February 2016
  • ...place that character with the other case character. Otherwise, we skip the code to replace.
    1 KB (198 words) - 22:11, 24 February 2016
  • Lets indent this code, as well!
    462 bytes (57 words) - 19:25, 23 July 2016
  • It might be clearer to see some pseudo-code for the way the table is generated:
    2 KB (273 words) - 08:25, 5 February 2016
  • ...The information is presented in a sequential order, with the concepts and code getting increasingly more complex as you get further into it. You might als
    5 KB (744 words) - 18:12, 24 February 2016
  • [[File:Helloworld-code.png]] ...ogram menu). This item should be selected if you want to go to the line of code where program execution was halted.
    7 KB (1,204 words) - 00:57, 25 February 2016
  • TI's code always resets the keypad before scanning; sometimes, you may get incorrect
    3 KB (456 words) - 23:56, 5 February 2016
  • ...can remove closing parentheses, braces, and quotes at the end of a line of code. The one ''rare'' case you would keep an end parenthesis if if you are deal
    1 KB (260 words) - 18:19, 24 February 2016
  • ...f you try to use a decimal number. You could fix this problem by using the code below instead:
    2 KB (315 words) - 22:12, 24 February 2016
  • ...|XLIB]] or Celtic III commands. Else, you will need to create installation code that is only ran the first time you run your program that will copy all pic
    5 KB (784 words) - 18:06, 24 February 2016
  • This page is dedicated to showcase small snippets of code may be useful. These small routines are designed to accomplish tasks involv
    1 KB (192 words) - 18:23, 24 February 2016
  • ...o now we're going to show you how to use both commands. Check this example code out, to be explained afterwards.
    2 KB (371 words) - 17:19, 28 January 2017
  • Inserts a code section at the current location.
    370 bytes (40 words) - 16:40, 5 February 2016
  • |summary=Returns the numerical code of the last key pressed, or 0 if no key is pressed.
    4 KB (619 words) - 18:13, 24 February 2016
  • The following code awaits the user to input an angle to fire at, using a [[TI-BASIC:Line|Line]
    2 KB (382 words) - 00:53, 25 February 2016
  • ...the corresponding bit. Otherwise, it will continuously call the interrupt code once interrupts are re-enabled with [[Z80:Opcodes:EI|EI]].
    2 KB (375 words) - 23:56, 5 February 2016
  • ...n the functions on, they'll draw in the screen so you may want to use this code wisely.
    3 KB (423 words) - 00:56, 25 February 2016
  • ...tect the arrow keys. The readme explains in more detail and includes a key code chart. This was designed with games in mind so it is small, fast, and easy
    10 KB (1,607 words) - 18:36, 24 February 2016
  • If A is guaranteed to be positive, the following shorter code can be used, omitting B(A<0):
    2 KB (367 words) - 18:06, 24 February 2016
  • ...represent an existing run of the same element. We check for this with the code If L₁(I)=int(L₁(J)). If this turns out to be the case, we add .001 to i
    3 KB (520 words) - 22:11, 24 February 2016