Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: runeazn on August 26, 2011, 06:13:02 pm

Title: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 26, 2011, 06:13:02 pm
After some IRC chat with DJ_O and Runer, I decided to ask the community for a better coded ti 84+ emulator.
So well Yeah IDea, I cant code myself so I will need to ask the community for it.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DJ Omnimaga on August 26, 2011, 06:14:15 pm
Yeah Calc84 had one, but he lost the entire source for it. I wish he had a backup because it ran pretty fast.

I also cannot find the related topic anymore in the projects section. X.x
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 26, 2011, 06:43:41 pm
yeah would be great if somebody could make one.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: AngelFish on August 26, 2011, 08:38:04 pm
It's also a pretty large undertaking. Hope you find someone who can do it :)
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: bsl on August 26, 2011, 10:26:01 pm
An Ndless enhanced TI84 mode is conceivable.

Ndless -> Modified OSLauncher [phoenix.raw --> patch it: install hooks --> hot swap keypad--> Launch it]--> Ndless Enhanced TI84 mode
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DrDnar on August 26, 2011, 10:29:40 pm
The Nspire is more than capable of running a Z80 emulator at full speed. You can do it in C, which is a lot easier than assembly. And you won't need a specially modified OS. TI was being just plain lazy with the whole separate OS thing.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DJ Omnimaga on August 26, 2011, 10:31:52 pm
I'm pretty sure we can get pretty high speed. After all, calc84maniac's emu ran like 10x faster sometimes. (I tried it)
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 10:00:07 am
You said it was in a unuseable state XD?
10x sounds good as it is a 10x faster processor, and maybe has a better architecture too.

So somebody minding picking this up as i have zero coding skills, I wanted to start learning but as it seems i need first to learn how to use my ti nspire fully, with ti 84+ instructions books
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: fb39ca4 on August 27, 2011, 02:42:00 pm
To start, you most likely want to find a Z80 emulator (preferably in C), and then write your own code to emulate the hardware (screen, link port, keys, flash memory, etc), which is a matter of the emulator monitoring what comes out of the various ports, and performing the corresponding actions and returning the right values into the ports. So you will actually want to be familiar with both C and z80 assembly.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 02:44:54 pm
I made this thread so that somebody actually could pick it up..
I have no knowledge and sure dont have any coding skills to make this true.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: the_mad_joob on August 27, 2011, 04:08:21 pm
I have no knowledge and sure dont have any coding skills to make this true.

There's a beginning for everything...
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 05:31:12 pm
Trust me I dont have the time to pickup a coding language if you see what I do on the computer,
I never had nothing to do.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: Ashbad on August 27, 2011, 05:37:15 pm
I have no knowledge and sure dont have any coding skills to make this true.

There's a beginning for everything...

Indeed, this might be a good beginning

Trust me I dont have the time to pickup a coding language if you see what I do on the computer,
I never had nothing to do.

With that attitude you wont ever learn one.  Maybe wait until you have time, but once you start going into learning, you're hooked.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: willrandship on August 27, 2011, 06:20:19 pm
By the way, Arm is definitely a better architecture than z80 (x86 is basically the evolved form of it, although not company-linked. z80 was a knock-off of the 8080 IIRC)

I'd love to do it, I'd have to learn a lot about emulators, and get a much better knowledge of C, but that's the fun part, right? :P

I'm a little confused about what the "Idea" is here though, basically you're just asking for someone to code something for you.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: fb39ca4 on August 27, 2011, 07:03:37 pm
I have no knowledge and sure dont have any coding skills to make this true.

There's a beginning for everything...

Indeed, this might be a good beginning
Though a harsh one, kinda like how birds learn to fly by getting pushed out of the nest.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: calc84maniac on August 27, 2011, 07:04:56 pm
Using C isn't a good choice for an emulator, or at least the CPU part of it (unless your processor is a couple orders of magnitude faster than what you're trying to emulate). If you want a fairly fast, customizable Z80 emulator for ARM, try looking into DrZ80. It interfaces with C pretty well, I think.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 07:35:55 pm
May i ask how did you lose your source code >_>?
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: calc84maniac on August 27, 2011, 07:36:48 pm
May i ask how did you lose your source code >_>?
My hard drive died last year and I lost all of my TI-Nspire projects
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 07:39:31 pm
OMG :(
my dream might never get fulfilled XD./
i totally cant code meh..
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: LincolnB on August 27, 2011, 07:46:17 pm
May i ask how did you lose your source code >_>?
My hard drive died last year and I lost all of my TI-Nspire projects

Ouch. That bytes. No backups?
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: calc84maniac on August 27, 2011, 07:58:27 pm
May i ask how did you lose your source code >_>?
My hard drive died last year and I lost all of my TI-Nspire projects

Ouch. That bytes. No backups?
Nope, but I've gotten over it now :P

Plus if I'm forced to rewrite a project from scratch, it almost always ends up better-designed (to avoid flaws I encountered in the previous code)
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DrDnar on August 27, 2011, 07:59:36 pm
Common wisdom in the open source community says that any major projects gets rewritten at least once.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 08:00:01 pm
which projects from your old projects are revived?
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: calc84maniac on August 27, 2011, 08:02:32 pm
which projects from your old projects are revived?
None officially, I'm currently focused on TI-Boy SE. A while back I did start coding z80 emulation again, but it hasn't gotten far.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on August 27, 2011, 08:03:16 pm
wohoo, if you have a testable z80 emulation pm me ;)
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: fb39ca4 on August 29, 2011, 12:57:25 pm
Would porting wabbitemu to the Nspire be a possiblilty?
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: calc84maniac on August 29, 2011, 01:00:05 pm
Would porting wabbitemu to the Nspire be a possiblilty?
I doubt it. It's not really designed to run on a slow processor, so it's not super-optimized. Plus, there are a lot of external dependencies that don't run on the Nspire. It might be possible to port WabbitDS though.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: fb39ca4 on August 29, 2011, 01:45:52 pm
Ah, ok. How fast does WabbitDS run? I'm pretty sure it has a slower processor than the nspire's.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: willrandship on September 01, 2011, 01:30:15 am
But if it uses both CPUs with multithreading the code will be quite different.

By the way, there was also a GBA 83+ emu.....

Edit: Scratch that, it was reg. 83, not +
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on September 01, 2011, 05:45:43 pm
somebody mind taking this project up >.<?
im sounding a bastard, but its just a rquest
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DJ Omnimaga on September 01, 2011, 05:46:35 pm
/me hopes calc84maniac eventually revives this
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on September 01, 2011, 05:46:57 pm
^so does runeazn
XD
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DJ Omnimaga on September 01, 2011, 05:48:17 pm
We will have to be patient, though. After all people here contribute for the community on their own will during their precious free time.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on September 03, 2011, 04:09:48 pm
sure is,,
im forced to work so i dont have much time :(
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: steelfirez on September 13, 2011, 12:32:29 am
hm, would it be possible to somehow make a ti-84+ emulator for the TI-NSpire without using a switchable keyboard?
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: ralphdspam on September 13, 2011, 01:01:59 am
hm, would it be possible to somehow make a ti-84+ emulator for the TI-NSpire without using a switchable keyboard?
Sure!  All the programmer has to do is map different Nspire keys to the virtual ti-84 plus keypad. 
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: z80man on September 13, 2011, 02:22:49 am
Well it just so happens I've been making minor progress on a 83+ emulator for the prizm. My idea now has been to code it entirely in C for the purpose of a fast release and easier debugging. Then once released I will over time convert it into full superH asm code. A possible idea is that someone could modify my C code to work for the nspire which I don't believe will be all that difficult due to the similar architectures and the fact that emulators rely on virtually no syscalls. The adjustments would only have to be in the file system (which would be very easy), screen (my routines would be better suited for the CX because the prizm also has a 16 bit color screen but it doesn't have C yet :P), keyboard, timer, remove serial port routines (sorry but the nspire doesn't have one :( ) , and usb which I have no idea on how to use yet. How does that sound to everyone?
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: Jim Bauwens on September 13, 2011, 04:02:25 am
@z80man, the nspire has a serial port, in the dock connector ;)
And the emulator itself sounds great :D
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on September 13, 2011, 08:27:54 am
Uhh I am talking about the regular nspire not cx as i am aware of the lack of nldess
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: JosJuice on September 13, 2011, 10:30:49 am
(my routines would be better suited for the CX because the prizm also has a 16 bit color screen but it doesn't have C yet :P)
wait what
remove serial port routines (sorry but the nspire doesn't have one :( )
It does have one in the 84+ keypad. I think the Prizm serial port would be harder to use, actually.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: LincolnB on September 13, 2011, 10:34:08 am
TI-83+ emulation on the Prizm sounds great - however I don't own a Prizm and therefore won't be able to use it :P
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: willrandship on September 14, 2011, 02:26:43 am
The nspire keypad connector in general is very simple. It's a huge lump of GPIO pins with a VCC and a Ground pin. These pins can be used for whatever you want, and the 84+ pad just so happens to have 4-5 of them free. The pads use them to address the keys matrix style, in a somewhat complicated software implementation we don't have to mess with, thankfully. The Dock connector on the 84+ is actually directly connected to 2 of these pins, making it an ideal access point for these gpio pins, but I'm willing to bet the dock connector has at least a few of its own. The RS232 may be, but I'm not too sure, I haven't investigated that much.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on September 14, 2011, 07:12:26 pm
meh i realized how slow a game ran on my nspire and how fast it ran on a ti 84+
I really need a emu to let the games run atleast on normal speed..

The processors is 10x as fast why cant it even achieve a 1/10th of the speed :(
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: willrandship on September 15, 2011, 11:03:18 pm
Because TI didn't write it good. They really sucked it up writing the official nspire OS too.

By the way, any game that says it runs in 15mhz mode will run on the nspire, but it will run as if it was running at 5-6 mhz, because TI implemented it enough not to error, but not enough to actually function correctly.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: runeazn on September 16, 2011, 11:12:04 am
Yeah I noticed when I played the same game on my friends 84
Once again I request somebody to write a ti 84 emit for the community :) that is atleast normal speed. Calcmaniac achieved very fast speeds only his hdd Fried
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: DJ Omnimaga on December 25, 2011, 11:41:25 pm
The bad part is that some games won't even run at all on it (no support for undocumented instructions). Also z80man I hope you eventually resume your z80 emu for the Prizm too, as it would probably attract more Prizm buyers.
Title: Re: More optimized,faster Ti 84+ emulation on Ti nspire(Idea)
Post by: Aes_Sedia5 on December 26, 2011, 06:28:38 pm
I would love a better emulator on the Nspire. I have been wanting one for quite a while. I use an Nspire for most of my coding, but ASM does not work very well.