676
Other Calc-Related Projects and Ideas / Re: Open Sprite Library
« on: November 15, 2013, 12:04:51 pm »
I am still getting the error, on each page. The rest says, "Your browser sent a request that this server could not understand."
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 676
Other Calc-Related Projects and Ideas / Re: Open Sprite Library« on: November 15, 2013, 12:04:51 pm »
I am still getting the error, on each page. The rest says, "Your browser sent a request that this server could not understand."
677
Other Calc-Related Projects and Ideas / Re: Open Sprite Library« on: November 15, 2013, 11:32:46 am »
I keep getting "400 Bad Request"
678
ASM / Re: ASM Optimized routines« on: November 14, 2013, 11:50:30 pm »
If you are willing to use a 256-byte LUT, then lg() can be computed in an average of 340 t-states, and for an additional 325 (at most), ln() can be computed from that:
(these are fixed point 8.8 routines) Code: [Select] ln_88:
679
ASM / Re: ASM Optimized routines« on: November 14, 2013, 08:17:22 pm »
This version works on (0,128) and averages less than 1250 t-states:
Code: [Select] lognat: The worst error is 2/256, which is much better than I thought it would be On [1,2] it is at worst 1/256 and the average case is <1/683 which is smaller than 1/256 (the smallest positive 8.8 number).
680
ASM / Re: ASM Optimized routines« on: November 13, 2013, 03:09:47 pm »
I made this rather fast 8.8 fixed point natural log (ln, loge) routine today based on some math I have been working on. It currently averages 677 t-states, but only works on [1,2] I plan to extend this to the whole range of numbers by using a 5 element LUT and a single division making the average somewhere around 1100 t-states:
Code: [Select] lognat: I had fun twisting some of the logic, but there is a division and multiplication in there. It might seem backwards, but it was optimal
681
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)« on: November 11, 2013, 01:15:16 pm »That memory 'bug' isn't a bug, actually, it is just misuse of Goto and Lbl inside While, Repeat, and For loops.I like labels in BASIC because they can often be an excellent solution and often the best solutionWhen's that They also have that memory bug Examples are when you use the Menu() command, the options need to jump to labels, then if you want to jump back to the menu, you either need to use a non-optimal Repeat loop, or the more optimal Goto. For example: Code: [Select] Lbl 0 In reality, While loops and Repeat loops use memory (so large nestings of these can consume lots of RAM) whereas Lbl and Goto use no memory. In RPGs, using labels is usually the best option, and for games where you want to use subroutines without using subprograms, you can take advantage of mixing labels and while loops. I made heavy use of this in an RPG a while ago. To be more technical, the OS needs to push information onto an operator stack whenever it executes a loop. When it reaches an End, it uses that information and it doesn't remove it until the loop is finished. If you had 9 nested while loops, then , it pushes the data for each loop onto this stack, and when it reaches an End, the information is popped off in reverse order. If you use a Goto to jump out of a loop, the data never gets popped off the stack unless you place an unused end somewhere (but then only one item is popped off). 682
TI Z80 / Re: Shutdown (a clone of Lights Out Deluxe)« on: November 11, 2013, 12:56:18 pm »
I like labels in BASIC because they can often be an excellent solution and often the best solution
Anyways, to answer harold, there are no unsolvable starting conditions. (Think of it like a scrambled Rubiks cube, or a scrambled knot in a string whose ends are tied together). When I made one, I wasn't sure if there were unsolvable solutions, so I just simulated n steps and presented the board. EDIT: Oops, it seems there are some unsolvable boards for some sizes. 683
News / Re: Catching up on notable TI/Casio game releases & little surprise below« on: November 10, 2013, 09:46:41 am »
Wow, these are fantastic o.o I definitely missed a lot of these.
684
HP Calculators / Re: 16 FPS 3D graphics on HP Prime! (sort-of)« on: November 10, 2013, 09:06:46 am »
That is fantastic Wow.
685
TI Z80 / Re: [contest '13][asm] Digger« on: November 10, 2013, 08:16:22 am »
For path finding, I have only successfully done it on a tiled maze. Essentially, I had the human player and the non human player 'chasing.' Chasing is done by moving in the optimal direction to be closer to the human player. The trick is when the chaser gets stuck, I would draw on some other buffer marking the position and the chaser would not be able to stay on that tile, so they would move backwards or left/right and each tile visited for the next 8 or 16 turns would be marked as well and they would remain marked for 8 or 16 turns (think of a snake from a snake game being placed on the other buffer growing for 8 or 16 turns, then shrinking).
This allows the chaser a little more intelligence to get unstuck, and when you have multiple chasers, the others can avoid getting stuck, too, while potentially taking other routes. I actually got the idea from a cellular automata experiment where I had a few hundred cells navigating a maze and the majority of them were able to find the exit. That, however, is too taxing on the CPU for use in a game on these calculators. I wish I still had a working example 686
Math and Science / Re: Estimating Functions« on: November 10, 2013, 08:03:47 am »
Applying the same method to ln(1+x), there is a similar formula to that of atan that is also simple and requires one less multiplication and one less shift for 9 bits of accuracy on [1,2]
EDIT: See the first post for the function. 687
TI Z80 / Re: Projects Update, Zeda« on: November 08, 2013, 02:51:50 pm »
I do not have an 8XU to test it, it is just a bunch of code. I want to write a simple command line interface first, as an App that clears RAM and uses nothing from the OS. Then if I can successfully use it as a calculator and make a simple program, I will try to turn it into an 8xu.
688
TI Z80 / Re: Projects Update, Zeda« on: November 08, 2013, 12:22:03 pm »
@Matrefeytontias: GrammerOS has been planned since Grammer first started I have been working on parts of its code every so often and rewriting it for better ideas.
@DJ_Omnimaga: Yes, those types of loops get optimised to something much faster before execution. There is a command called 'Goto [lbl]If [condition]'. 'While ' is replaced by the GotoIf and the EndWhile is replaced by a Goto that jumps back to the GotoIf (making it faster and labels are all precomputed, meaning no stack overflow issues). Repeat is like While, except the End gets replaced by a GotoIf, jumping back to the beginning of the block. 'If' gets replaced by a GotoIf not(condition) and jumps to the End (or the Else condition), et cetera. For() gets replaced by an initialising condition, then the EndFor gets replaced by an increment code and a GotoIf. FOr example: Code: [Select] For(A,1,10,.1) get replaced by:Code: [Select] 1→A Since labels are all precomputed offsets, all of these Goto commands are really fast.
689
TI Z80 / Re: Projects Update, Zeda« on: November 08, 2013, 08:38:58 am »
Oh, I should clarify. To use the same kind of math abilities, this should be about as fast as BASIC. Graphics and such should still be faster, and if the programmer uses integers or even 24-bit floats instead of full 80-bit floats, the program should run much faster than TI-BASIC.
690
Miscellaneous / Re: What is your avatar?« on: November 07, 2013, 07:36:13 pm »
I am trying to use one of my fractals, but the server seems to be having difficulty. I'll try to post the image here and use the link for that
EDIT: 4000th post and fixed a typo. |
|