1651
ASM / Re: Ok, I'm a noob
« on: August 29, 2012, 12:44:28 pm »
Sorry, I haven't had much time at all to work on this stuff
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. 1651
ASM / Re: Ok, I'm a noob« on: August 29, 2012, 12:44:28 pm »
Sorry, I haven't had much time at all to work on this stuff
1652
TI 68K / Re: Pokemon TI-89« on: August 29, 2012, 11:34:50 am »
Wow, I have to download this I downloaded an older version a while ago, so I am glad to see the progress!
1653
I have some really neat ideas planned, so I hope the person who requested the program can give an "okay" for me to release stuff. For example, I plan to have the file system support arrays with arbitrary types of data. For example, arrays where some elements are arrays themselves, some elements could be strings, et cetera Regardless, I plan to have this supported in a future release of Grammer, if I get around to finishing it.
EDIT: I have been given an okay I will edit the first post with the download for those that want to try a release. 1654
A few years ago, I was approached with a program idea. The programmer wanted a few special functions that seemed best fit for an assembly program. I finally got the motivation to really work hard at it and in the past week I totally rewrote it implementing some really cool features.
I am not going to release this program until I have been given the go ahead by the person who made the request, but one important thing that I do want to leave with you all is this: I have put the Grammer project on hold for a bit. I wanted to try out other projects and ideas before I try to go further. I plan to use much of the code from this program in the next Grammer version. I have a file system, data retrieval, and data storage that works fully with all the available RAM. I plan for the final Grammer OS to give programmers access to everything on their calculators, including their RAM, whether it is 32KB, 48KB, or 128KB. Also, here is a screenie As a note, the variables STRING0 and STRING1 are stored as strings because of the .1, not because of their names. I could name a string "GUYScheckTh1sOwt.It's a string!" When it returns 1, it means it was stored successfully, when it returns 5, it means the variable already exists. EDIT: I was given the okay to release. For those that want to just give it a try, I will upload some info and the program. Since it is still being developed, nothing has been finalised, so syntax will likely change. In other words, don't make any super awesome programs that rely on this version! Playing with it should be enough. 1655
BatLib / Re: BatLib News« on: August 14, 2012, 01:31:36 pm »
I believe so, judging by the signature.
1656
Math and Science / Re: Sums, Pascal, and Equations for Sets« on: August 05, 2012, 05:02:48 pm »
necro update >.>
Here is an interpolation program that allows you to supply your own x list and y list. Unfortunately, this requires BatLib to be installed as it uses the number to string function (it makes the program much faster, smaller, and I don't need to use other variables). Now for some more stuff.. I have been working on some pretty cool math that has lead me to figuring out how to make different interpolation models. For example, I could before model data with a polynomial equation, but now I have an algorithm to do exponential data. Here is an example: I want: f(0)=a f(1)=b f(2)=c The formula is scary, but really cool: f(x)=cx(x-1)/2bx(2-x)a(x-2)(x-1)/2 Try it, it works It was a simple process, too. All I did was say: eu(0)=a eu(1)=b eu(2)=c Then: u(0)=ln(a) u(1)=ln(b) u(2)=ln(c) Using the first algorithm that I established: ln(a) | | ln(b) |ln(b)-ln(a) | ln(c) |ln(c)-ln(b) |ln(c)-2ln(b)+ln(a) ;======= ln(a) |3ln(b)-2ln(a)-ln(c) |ln(c)-2ln(b)+ln(a) ln(b) |ln(b)-ln(a) |ln(c)-2ln(b)+ln(a) ln(c) |ln(c)-ln(b) |ln(c)-2ln(b)+ln(a) Then u(x)=ln(a)+x(3ln(b)-2ln(a)-ln(c))+x(x+1)/2(ln(c)-2ln(b)+ln(a)). Now we use some logarithm rules to simplify: u(x)=ln(a)+ln(b3x)-ln(a2x)-ln(cx)+ln(cx(x+1)/2)-ln(bx(x+1))+ln(ax(x+1)/2). Now substitute in the u(x): f(x)=eln(a)+ln(b3x)-ln(a2x)-ln(cx)+ln(cx(x+1)/2)-ln(bx(x+1))+ln(ax(x+1)/2) Now we reorganise this to make it easier to apply more rules: f(x)=eln(a)+ln(b3x)+ln(cx(x+1)/2)+ln(ax(x+1)/2)-ln(a2x)-ln(cx)-ln(bx(x+1)) f(x)=eln(a)+ln(b3x)+ln(cx(x+1)/2)+ln(ax(x+1)/2)-(ln(a2x)+ln(cx)+ln(bx(x+1))) f(x)=eln(a)+ln(b3x)+ln(cx(x+1)/2)+ln(ax(x+1)/2)/e(ln(a2x)+ln(cx)+ln(bx(x+1))) Now we use more simplification with logs and exponents of the same base: f(x)=(ab3xcx(x+1)/2ax(x+1)/2/(a2xcxbx(x+1)) f(x)=(b3xcx(x+1)/2ax(x+1)/2+1/(a2xcxbx(x+1)) f(x)=(b3x-x(x+1)cx(x+1)/2-xax(x+1)/2+1-2x f(x)=(b-x(x-2)cx(x-1)/2a(x-1)(x-2)/2 f(x)=(bx(2-x)cx(x-1)/2a(x-1)(x-2)/2 I also went through a similar process for using sine and cosine, but it had some sign issues (because of how arcsine and arccosine are defined to work as a function). It actually worked for the values I used, but I am pretty sure I put together a data set that failed. In any event, it might be useful to make a small interpolation suite. It would probably be nice to have a version in BASIC so that folks can study it, but another version in assembly to make a faster and more efficient process. 1657
Grammer / Re: Grammer 2-The APP« on: August 05, 2012, 04:50:00 pm »
Hehe, yes, it does help I have been using it in Samocal.
Also, in reference to your current avatar, Advanced Wars has inspired some of my random programming. (Like when making a tilemap that also checks surrounding tiles to see if it needs to be modified. Think of how high mountains are depending on what is behind it.) 1658
Grammer / Re: Grammer 2-The APP« on: July 27, 2012, 03:16:16 pm »
I have an incomplete update here. I forgot to add in the header for GroupHook and I cannot fix this from this computer Anyways, I added two more solve( options to back up and restore all pointer vars. I also added in a useful Menu( function It is similar to a popup style menu in that it returns the item number selected and lets you place the menu on the screen at a given location. For example:
Code: [Select] .0: As a note, the 48 is there to specify the width of the menu. If you guys have any suggestions on how to modify this command, feel free to suggest If I can, I think a scrolling menu would be cool 1659
TI Z80 / Re: GamePack« on: July 23, 2012, 04:13:59 pm »
Yes,and imagine what it will be like with sound effects
Also, this computer is about to die 1660
I don't think I will get to really work on this much, but I figured I could give people ideas and a concept :)
What I want it to be if I finish it: -A game pack featuring some mini games, such as solitaire, minesweeer, tic-tac-toe, Invasion and tunnel. -Featuring background music, sound effects Currently, all I have finished is setting up the board in tic-tac-toe, generating a tunnel, shuffling decks for solitaire and black jack, and displaying cards. Oh, and also the background music :) Here is what the Readme says so far: Quote
If you want to test it out, here it is. It is an app, by the way EDIT: Screenie added 1661
BatLib / Re: BatLib« on: July 20, 2012, 10:17:49 am »
Awesome, thanks I might decide to keep this normal name as a way to differentiate it from the old version. I'm still thinking about it...
1662
ASM / Re: ASM Optimized routines« on: July 20, 2012, 10:13:55 am »
Here is a routine that I started a long time ago (back when I coded only in hex). I have been too lazy to replace the hex code with mnemonics, but it can draw all sorts of rectangle types I am sure it can be optimised, but it works:
(note, RectData needs to be 24 bytes of free ram. I typically use data in the op registers or cmdshadow, or something like that.) Code: [Select] DrawRectToGraph:
1663
BatLib / Re: BatLib« on: July 09, 2012, 08:21:25 am »
For GroupHook, I tried a technique suggested by Runer that has worked excellently. I am still working on adding better features, but currently, you can:
Using command 126: dim(126,#) will return the name of the nth app in the grouphook. (Returns ".DNE" if the number is out of range) dim(126.1) will disable all grouphooks dim(126.2) will enable all grouphooks dim(126.4,#) will disable the nth app in the grouphook Nevermind, I forgot to put the updated one on my flash drive, so 126.3 and 126.4 aren't available. Anyways, GroupHook is now slightly faster and it now uses a GDB var (a hacked one) to store data. This is not an official update because it is still not finished. However, feel free to take a look 1664
ASM / Re: ASM Optimized routines« on: July 09, 2012, 08:08:46 am »
Yes, you can use SMC to save at least 6 cycles for RAM programs My next mini project is an app with some small games (including card games). I don't have my computer with me, but I will post a working sound routine next time I get a chance.
The way it works is that we are using mod 216, so I selected two numbers relatively prime to 65536 (so any odd number, in this case). There are a few other conditions dealing with the Euler phi function, I believe, but I got lucky with the numbers I chose, so I didn't need to look it up. If you check, I chose prime numbers, specifically, because I figured those would give me the best shot. If you choose the wrong values, you will get cycles of 2n. I am not sure how familiar you are with group theory, but essentially, you will be creating sub groups and the order (size) of a subgroup will always divide the order of the main group. So some values will make cycles of 32768, 16384, and other smaller powers of 2. (gah, there is so much cool theory behind this, but I don't have much time). EDIT: ooh, here is a useful routine Code: [Select] FindNumPages: I made that to be a faster alternative to using a bcall
1665
BatLib / Re: BatLib« on: July 03, 2012, 03:56:28 pm »
I probably will not, but if I can, I will try
|
|