Search results

From Learn @ Cemetech
Jump to navigationJump to search
  • 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
  • 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
  • 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
  • '''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
  • ...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
  • ...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
  • 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
  • ...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

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