Omnimaga

Omnimaga => News => Topic started by: DJ Omnimaga on March 24, 2013, 06:06:47 pm

Title: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 24, 2013, 06:06:47 pm
Back in 2010, Calc84maniac started working on a Z80 emulator for the TI-Nspire that reached functional status, aside from the speed which was much faster than the real calculator, the inability to Garbage Collect and to turn the calculator OFF. In addition to that, it required the TI-84 Plus keypad (constantly swapping keypads had risks of wearing down the connectors). It was nonetheless very promising, but unfortunately the entire project was lost in a laptop hard drive failure then canceled.

Then in 2011 came the TI-Nspire CX, which removes TI-84 Plus emulation entirely, leaving Nspire CX users with no alternative.

Today in 2013, Jacobly arrives with a new Z80 emulator project called Calcemu, this time compatible with the TI-Nspire CX!




Although it is still in early stages and that there is barely any documentation available on how to run it yet, the video above by "weqze" shows it in action on a TI-Nspire CX and it is said to run at a speed similar to the real calculator. There are also downloads available in the discussion topic (http://ourl.ca/18513/342641;topicseen#new), as well as more recent ones leaked from time to time on IRC at #omnimaga on EFnet (although most are hosted on Heliohost, meaning that the links usually do not work).
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Deep Toaster on March 24, 2013, 06:15:42 pm
I've been waiting for something like this for a long time :D Amazing stuff by jacobly again.

And on the side, I didn't realize the reflection of your camera in your video was from the gloss of the CX screen at first and thought you had some sort of animated background O.O
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Dapianokid on March 24, 2013, 06:45:39 pm
Keep all the links and downloads maintained! I"M SO GETTING THIS when I get my beautiful CX :)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 24, 2013, 06:59:20 pm
I've been waiting for something like this for a long time :D Amazing stuff by jacobly again.

And on the side, I didn't realize the reflection of your camera in your video was from the gloss of the CX screen at first and thought you had some sort of animated background O.O
Actually it isn't my video :P (weqze made it)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: AzNg0d1030 on March 24, 2013, 08:21:59 pm
I'm sorry, but I don't think that the phrase "mindblown" is adequate enough for this insane piece of work I see before me.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Stefan Bauwens on March 25, 2013, 04:28:21 am
Pure awesomeness.
Hope TI won't block Ndless soon though. D:
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Adriweb on March 25, 2013, 04:51:00 am
Pure awesomeness.
Hope TI won't block Ndless soon though. D:
You mean you hope TI won't further block downgrading to an ndlessable OS ;)

It would be nice, but I don't really think they will keep this ability, since the next "big" version (not a bugfix update or something) is, well, a major one, and blocking downgrade will also block Ndless.... Anyway, maybe they will if they ever think it needs to be done to prevent a bigger issue with bricked calcs, for example, like we have seen before, or for people wanting to go back to 3.2 because they dont like the new one ...
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Freyaday on March 25, 2013, 08:08:24 am
Whoo! I might actually have a reason to get a CX now
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Stefan Bauwens on March 25, 2013, 09:08:07 am
Adriweb, you're right. I'm really not up to date with all this Nspire stuff. :P
Let's hope they don't block downgrading then. ;)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Lionel Debroux on March 25, 2013, 09:18:33 am
We all know that TI is extremely unlikely not to block downgrading to OS 3.1, though. Ndless 3.1 being usable after the next OS version is installed on a calculator is certainly a pipe dream.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 25, 2013, 12:49:36 pm
Yeah right now we can still downgrade to 3.1 from 3.2, but who knows what will happen with 3.4 (I recall 3.3 being 3.2 but with arabic language and layout support, right?)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Dapianokid on March 25, 2013, 12:49:39 pm
Well lets all just point and laugh at me when I buy my Nspire with it's shiny new antihack protection and OS 3.3 :P (hypothetical, but things like this happen to me constantly. I'm always late.) :P

I don't think downgrade protection will be enacted, but somebody should write their own Nspire computer linking program in case TI decides that any Nspire caught linking to a computer needs to be immediately upgraded to an undowngradable OS or bricked. Is downgrading, then upgrading, a good idea?
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Deep Toaster on March 25, 2013, 12:55:05 pm
I don't think downgrade protection will be enacted, but somebody should write their own Nspire computer linking program in case TI decides that any Nspire caught linking to a computer needs to be immediately upgraded to an undowngradable OS or bricked. Is downgrading, then upgrading, a good idea?
/me points to TiLP
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Augs on March 25, 2013, 01:10:52 pm
Any of you guys know how to write the " symbol with the emulator?
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Dapianokid on March 25, 2013, 01:13:47 pm
In the next release, there should be lots of documentation.
I had a dream that you could shrink the screen down to a 1:1 pixel ratio and use the rest of the screen as a debugger and memory viewer.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Deep Toaster on March 25, 2013, 01:15:26 pm
I had a dream that you could shrink the screen down to a 1:1 pixel ratio and use the rest of the screen as a debugger and memory viewer.
That would be amazing. Graphics would be tiny though...
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 25, 2013, 01:45:55 pm
At first it was 2x2 but it was already too tiny.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Dapianokid on March 25, 2013, 01:51:32 pm
Well I mean it would be okayif it were too tiny, honestly. You're not going to be 100% concerned with whats on the screen. 2x2 is normal to me, because I'm not super picky about actual size... 1x1 would work for a debugger. I think there should be three focuses:
1: Get as close to authentic emulation as possible.
2: Make a feature that overdrives the 8x calc you are using so people have more flexibility in case they want a SUPER 84+ or 83+. for example, an 83+ with TONs of memory and storage, or an 84+ at 500% speed. lol just a thought.
3: Somewhat pander the emulator towards developers, not just classroom users. Developers are probably the only people who want to use it anyways, as a student I'd ask "Why use an 84+ when I have an NSPIRE RIGHT HERE!"

Also, allow for overclocking or underclocking. Maybe do a check and ask "Do you want to run it at this speed?" or add a utility in the options bar to over/underclock the calc during emulation as you see fit. :) I have ideas, lots of 'em lol

Mostly because I was going to write a similar project, for the Prizm.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: jacobly on March 25, 2013, 01:57:00 pm
Just so you know, there is absolutely no speed throttling yet, so the current speed is about as fast as it gets.  I also had to remove address-specific breakpoint features in order to reach a reasonable speed, so debugging would be quite slow.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Dapianokid on March 25, 2013, 01:58:29 pm
Then pause on debug would be the way to go, as Wabbit does?
Well I'm sure optimizations are in store for us :)
jacobly, I eagerly await a newer updated release with new features :)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Adriweb on March 25, 2013, 03:03:36 pm
Yeah right now we can still downgrade to 3.1 from 3.2, but who knows what will happen with 3.4 (I recall 3.3 being 3.2 but with arabic language and layout support, right?)
As far as I know, 3.2 == current at this time, 3.3 == arabic, 3.4 == iPad Tablets, 3.5 == Android Tablets (still has to be released, but we know they are working on it...), 3.6 == probably the next major (codename "Luna" (http://tiplanet.org/forum/viewtopic.php?p=136522#p136522))
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Deep Toaster on March 25, 2013, 03:29:39 pm
(codename "Luna" (http://tiplanet.org/forum/viewtopic.php?p=136522#p136522))
Must say, that's a bit ironic :)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Adriweb on March 25, 2013, 03:48:35 pm
(codename "Luna" (http://tiplanet.org/forum/viewtopic.php?p=136522#p136522))
Must say, that's a bit ironic :)
Well, it was one of the "logic" follow-ups to their list, since it's alphabetical and often deals with space things :P
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 25, 2013, 07:06:12 pm
Yeah right now we can still downgrade to 3.1 from 3.2, but who knows what will happen with 3.4 (I recall 3.3 being 3.2 but with arabic language and layout support, right?)
As far as I know, 3.2 == current at this time, 3.3 == arabic, 3.4 == iPad Tablets, 3.5 == Android Tablets (still has to be released, but we know they are working on it...), 3.6 == probably the next major (codename "Luna" (http://tiplanet.org/forum/viewtopic.php?p=136522#p136522))
Ah this looks like they're following a similar pattern as the modified 84+ OS on Nspires. For example, OS 2.53-55 MP on the real calc, OS 2.54-56 MP on the Nspire Touch/Clickpad. Just with larger number increases. I guess afterward we will have 3.6, 3.10, 3.14, etc :P (or maybe 4.0 but then it might be confused with the 84+CSE OS)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Ranman on March 26, 2013, 08:55:00 am
This is awesome! Nice job!

Hope to see a 68K emu soon.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: CompSystems on March 26, 2013, 11:07:39 am
I also hope the Motorola 68,000 CPU emulation on TI-nspire family calculators

The more complete calculator developed by TI was the serie TI89(titanium)/TI92(+,v200)

APP Graph89: (Motorola 68,000) CPU + TI calculators serie TI89(titanium)/TI92(+,v200) emulation on Android-OS
https://play.google.com/store/apps/details?id=com.Bisha.TI89EmuDonation&hl
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Augs on March 26, 2013, 12:45:33 pm
Any documentation coming soon?

Such as key mapping

How to use it

Such and such...
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Hayleia on March 26, 2013, 02:08:28 pm
What could be done too is a key that would pause emulation and display a keymap, if people suddenly forget what the key was for that special key ;)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 26, 2013, 02:29:23 pm
Any documentation coming soon?

Such as key mapping

How to use it

Such and such...
Nope. He wants you to figure out by yourself. :P

But seriously from what I heard the key mapping might change often until the final version, which is why he didn't write any instruction yet. It might be nice to include some extra info in his posts, though, such as how deleting save.tns can fix issues.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Augs on March 26, 2013, 02:35:10 pm
Also, how do I install things(e.g. portal, as seen in the video)?
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: floris497 on March 26, 2013, 02:35:45 pm
prepare a rom in wabbit emu export it and use it as rom.tns
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 26, 2013, 02:39:03 pm
Actually make sure that everything in WabbitEmu is archived, then when saving, make sure you choose ROM instead of savestate. When loading the ROM in VirtualTI 3.0 Alpha or Nspire Calcemu, you will have all the archived programs built in the ROM. You can then unarchive (but not archive) what you want. RAM files are not included and most BASIC games will not work (since For loops are buggy)
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: Augs on March 26, 2013, 02:56:31 pm
So I have to import the program to wabbitemu then export the rom file?
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: DJ Omnimaga on March 26, 2013, 02:57:28 pm
Indeed. You just have to make sure that in WabbitEmu, the program is archived.
Title: Re: Z80 emulation arrives on the TI-Nspire CX
Post by: floris497 on March 26, 2013, 02:57:47 pm
yes, for me wabbit emu 1.6 worked 1.7 didn't