Author Topic: TI-Nspire emulator  (Read 332956 times)

0 Members and 1 Guest are viewing this topic.

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
TI-Nspire emulator
« on: February 25, 2011, 01:20:07 am »
This topic is the new home for nspire_emu, the TI-Nspire emulator with the highly uncreative name.

Current version: v0.70 (post, download)
« Last Edit: December 22, 2012, 02:09:15 pm by Goplat »
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: TI-Nspire emulator
« Reply #1 on: February 25, 2011, 01:21:37 am »
So is there a download here? (and yeah, that can be a little troublesome)

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: TI-Nspire emulator
« Reply #2 on: February 25, 2011, 01:21:40 am »
Are there any plans to support color from the CX?
ld a, 0
ld a, a

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: TI-Nspire emulator
« Reply #3 on: February 25, 2011, 01:21:44 am »
Yay for that. Will there be another linux-compatible release? :)

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #4 on: February 25, 2011, 01:28:57 am »
So is there a download here? (and yeah, that can be a little troublesome)
See below.

Are there any plans to support color from the CX?
Perhaps. The CX isn't just a normal Nspire with a color screen. We know it has extra RAM and flash - what else in the hardware might have changed? We'll just have to wait and see.

Yay for that. Will there be another linux-compatible release? :)
Someone else made that, not me. I'm not familiar with Linux GUI libraries.

Anyway, here's the new version, 0.50:
  • Implement enough USB emulation to get file sending to work. This is a big milestone: No more OS-version-dependent code! :D Yes, that's right, you can now send documents to any OS version, past, present, and (hopefully) future.
  • After an error, debugger command "c" now resets rather than quitting.
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Nspire emulator
« Reply #5 on: February 25, 2011, 02:44:53 am »
I should probably update. I still run 0.20. X.x

Btw glad it's not available for download for more people and I'm glad this is still in the works. Are you still planning to post updates on UTI as well too? You could probably just link to the Omnimaga attachments since they aren't that big.

Will this version run at accurate speed?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TI-Nspire emulator
« Reply #6 on: February 25, 2011, 02:48:48 am »
nspire_emu works well on Wine, which lessens the urgency of having a native *nix version.

Great changes, as usual ;)
« Last Edit: February 25, 2011, 02:49:08 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Nspire emulator
« Reply #7 on: February 25, 2011, 02:55:34 am »
This is good to hear. Most programs work in Wine, but there are exceptions, such as Starcraft Battle.net and RPG Maker VX database editing section.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: TI-Nspire emulator
« Reply #8 on: February 25, 2011, 07:43:46 am »
Excellent Goplat, as usual!
Does this mean that we now have enough information on the USB controller to implement on-calc drivers?
Ndless.me with the finest TI-Nspire programs

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #9 on: February 25, 2011, 12:04:31 pm »
Will this version run at accurate speed?
Timing is the same as it always was (1 instruction per cycle). I may make it more accurate at some point, but various features of the CPU make exact cycle timing impractical.

Does this mean that we now have enough information on the USB controller to implement on-calc drivers?
I think we already did: we know that it's Freescale's USB OTG module, revision 0x42; you can find documentation of it in the MCF54455 reference manual (the MCF54455 is not related to the TI-Nspire but just happens to use the same revision of this module). The host interface is based on EHCI 1.0.
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: TI-Nspire emulator
« Reply #10 on: February 25, 2011, 01:06:20 pm »
I'm wondering how quickly support for OS 3.0 will be added.
Ndless.me with the finest TI-Nspire programs

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: TI-Nspire emulator
« Reply #11 on: February 26, 2011, 01:11:31 pm »
I have just experienced a bug, after idling around in the nspire home screen for some minutes, the console starts spamming usb resets and I can't send any files... I have used 0.41 before and haven't had this error.

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #12 on: February 26, 2011, 01:21:51 pm »
I have just experienced a bug, after idling around in the nspire home screen for some minutes, the console starts spamming usb resets and I can't send any files... I have used 0.41 before and haven't had this error.

This is actually not new, there have always been problems when the OS tries to go into standby (after 3 minutes of idleness). In previous versions, you would see an infinite loop of unsupported USB port accesses:
Quote
Warning at PC=10374D2C: Bad read_word: b00001bc
debug> c
Warning at PC=10374D50: Bad write_word: b00001bc 00000000
debug> c
Warning at PC=10374D2C: Bad read_word: b00001ac
debug> c
Warning at PC=10374D2C: Bad read_word: b00001bc
debug>
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: TI-Nspire emulator
« Reply #13 on: February 26, 2011, 01:26:27 pm »
That's not what I mean, I have set the standby time to 30 minutes  ;)

My output looks more like
Code: [Select]
usb reset
usb reset
usb reset
...

And the calculator doesn't crash.

EDIT: usb reset, not cpu reset..
« Last Edit: February 26, 2011, 01:27:09 pm by compu »

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #14 on: February 26, 2011, 01:35:55 pm »
That's not what I mean, I have set the standby time to 30 minutes  ;)

My output looks more like
Code: [Select]
usb reset
usb reset
usb reset
...

And the calculator doesn't crash.
Yes. With the new modifications to the USB code, the symptoms have changed, but it's still the same bug. And I still don't see it any sooner than whatever the standby time is set to (unless emulation is sped up by pressing "`" or something)
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo