Show Posts

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.

Messages - C0deH4cker

Pages: [1] 2 3 ... 18
Axe / Re: External variables in axe parser
« on: May 30, 2012, 03:41:19 pm »
If your "list" contains zeros, then you will need to make a counter variable that simply stores the length of the array. For example, L could be the length, and the array would be in L1. Then, whenever you want to append data to the array:
myNum->{L + L1}

To read the last element:

To remove an element, you can either write the last element as zero and then decrement the length counter, or simply decrement the length counter if you know that you won't be reading from after the array.

Computer Programming / Re: Ti-84 emulator for ipod
« on: May 25, 2012, 10:41:12 pm »
I'm on there right now.

Computer Programming / Re: Ti-84 emulator for ipod
« on: May 25, 2012, 07:24:00 am »
I can get on tonight at around 11:00 PM EST.

Edit: my 0xFFth post! lol

Computer Programming / Re: Ti-84 emulator for ipod
« on: May 24, 2012, 10:16:10 pm »
Go to #ininjas on freenode

Computer Programming / Re: Ti-84 emulator for ipod
« on: May 24, 2012, 06:27:46 pm »
Textastic is ipad only, is there another ipod editor?

(sorry fot double Posting)

Who do you think has the best till now?

An emulator is not a simple thing to code, especially for somebody who is relatively new to programming. I see that you've never used a low level compiled language besides some asm before. The closest there to c or c++ is php, but this is interpreted. I have no idea about the last 2 languages, as i have never heard of these. Im not trying to be mean, but there is no way that you will be able to make a ti83 emulator at this point. Maybe in a few years after learning c/c++ and using it so that you understand it you would be able to write this, but as for now, I dont see this being possible. Sorry, I'm just trying to save you the trouble. For starters, make a hello world app. Then work your way on up by printing out numbers from 1 to 100, every 3rd number in that range, prime numbers between 1 and 100, reading in a number/string and processing it in some way, then outputting a result, etc. After this, try doing something more advanced, such as writing a graphing calculator type program in the console, or even writing the classic Conway's Game of Life.

There is a lot of material to learn and absorb before you should try tackling a project of this size and complexity. Many people would be completely unable to do this.

The Axe Parser Project / Re: Tangent?
« on: May 22, 2012, 11:18:26 pm »
Alright, I get it now. Thanks for the explanation. I am not used to working with platforms that do not contain easy to use floating point variables, so fixed-point and other types of arithmetic inflation are new to me.

Computer Programming / Re: Ti-84 emulator for ipod
« on: May 22, 2012, 11:15:09 pm »
What youre talking about is known as reverse-engineering, and there is no app that will let you view the code of another one.

There are, however, ways to determine what a program does. First of all, you need to jailbreak. Then, you need to learn objective c, c, arm assembly, and basic *NIX commands. Then, you need to get Class Dump Z from this repo. After this, you need to get a terminal client. Then, get BigBoss Recommended Hacker Tools and the GNU Debugger from Cydia.

Once youve done all of this, you will need to learn how to use utilities such as gdb, otool, strings, class-dump-z, and nm, among others.

Other / Re: Android vs iOS
« on: May 21, 2012, 11:28:31 pm »
1. iOS has a lot more users, and therefore the demands for your apps will be much greater.
2. Apple is known for providing a user-friendly platform with a clean UI and smooth, fitting animations. The UIKit design elements allow you to utilize these interface tools so that your apps can look professional.
3. While Objective-C IS more verbose, this is a plus. Consider this:
painter.drawRect(10, 20, 30, 40); // This is the C/Java version. Notice how you have no idea what the parameters are for
[painter drawRectWithX1:10 y1:20 x2:30 y2:40]; // This is the Objective-C version. Notice how the parameters are obvious
4. If you do wish to make an app that is not supported by Apple, the jailbreak community is so large that this will not greatly diminish the market for your app. Using the Cydia Store, you can easily put your JB apps up for purchase.
5. Because Objective-C compiles down to machine code, it is faster than Java can ever be.

Computer Programming / Re: Ti-84 emulator for ipod
« on: May 21, 2012, 11:20:59 pm »
It was I who was advocating the development of wabbit for iOS in that topic. I have an iPod Touch and an iPad, and am a developer who has used both C and Objective-C before. I do all of my coding on-device (with Textastic as my editor, iSSH as my console client, and gcc/clang as my compilers (I am the one who ported clang FYI)), so I can code much more often. Both of my devices are jailbroken, and I know more about this platform than almost anybody else (besides jailbreak devs and some app developers).

In short, I am willing to help write it and test it, but I don't know how well you know coding, and whether we could accomplish this.

We could build this off of the source of wabbit on android or mac, which would help out immensely.

The Axe Parser Project / Re: Tangent?
« on: May 17, 2012, 03:58:23 pm »
But multiplying by 256 just changes it from something like $00A6 to $A600. It doesnt increase precision, but just changes the value. sin($A600) is completely different than sin($00A6).

The Axe Parser Project / Re: Tangent?
« on: May 16, 2012, 10:56:55 pm »
Why *256? tan(angle) is defined as y/x, and with sin(angle) and cos(angle) being y/r and x/r respectively, tan(angle) can also be defined as sin(angle)/cos(angle), so i dont see why you would multiply sin(angle) by 256 first.

Axe / Re: Axe Q&A
« on: May 16, 2012, 10:50:35 pm »
Yeah. I could easily write it without recursion (I wrote a fibonacci function in asm before), but recursion is just easier, and I think it is more fun due to the different method of thinking required for programming recursively.

Axe / Re: Axe Q&A
« on: May 15, 2012, 03:48:52 pm »
Lol thanks! And youre right, my way did work, but i was typing it on here from memory and also working it out in my head when i typed it, so i typed a correct version instead.

My Fibonacci program just causes a RAM Clear, probably due to a stack overflow. Z80 processors aren't very good with recursion, are they?

Axe / Re: Axe Q&A
« on: May 14, 2012, 11:28:07 pm »
For some reason, even a simple factorial program did not work correctly for me.

Code: [Select]
Lbl Fact
If r1 <= 1

Can somebody post a working sample?

TI Z80 / Re: Fullrene
« on: May 14, 2012, 07:30:20 pm »

Also, it looks like fullrene rewrites the program exit function to restore the stack pointer to the original location and disable flash writing.

EDIT: Meaning if you force quit (which restores the stack pointer to the value it was before the program was run and rets back to the old pc), unknown problems may arise.

Pages: [1] 2 3 ... 18