• TI-Nspire emulator 5 1
Currently:  

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

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TI-Nspire emulator
« Reply #120 on: January 24, 2012, 04:10:04 pm »
I have the same problem when trying to compile nspire_emu on Linux, not cross compiling but using the windows.h of wine.
Replace the @'s in asmcode.S with _'s works, but this will cause it to error in a later process.

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Re: TI-Nspire emulator
« Reply #121 on: January 24, 2012, 04:27:17 pm »
There is an issue with documents not always sending although the user pressed "Connect". Although it's a bit of a surface fix, at least now every document should be sent once it's connected. (file attached)
It seems to have actually caused more of exactly what it was supposed to fix, at least on my side. Removed the attachment.
« Last Edit: January 31, 2012, 03:28:34 pm by hoffa »

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: TI-Nspire emulator
« Reply #122 on: February 20, 2012, 12:31:00 am »
EDITNOTE: I take some of what I said back.

As of nspire_emu_060, I think I need some explanation/help.
I decided to experiment more with this version since it is a major release, and start from scratch extracting boot2,files etc.
However when it came to creating a rom, it didn't work the same way it did in v053.
Some commands have changed since 053 and 060 (see screenshot)
Digging into Levak's batch file (from 2+ years ago, and I have edited for my own purposes), I found the /N command was used to create the rom image and it is different now as /N stands for Nand Flash (also was confused about what that meant until I read the v060 post today).
So as of v060, is there any way to create the rom using the command line nspire_emu.exe?

I could just run with boot 2 and install the OS and Save the flash within the emulator window, but since the /N does not mean create a new image anymore, is there any other way?
EDIT: I think /PB and /PO do the job, tho I'm not exactly sure what they do.

I may write a tutorial myself and put it in the Omnimaga Tutorials section for convenience.

Though, this is a great guide: http://hackspire.unsads.com/wiki/index.php/Emulators#Setup


Thanks everyone,
Jonius7
« Last Edit: February 21, 2012, 06:13:26 am by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: TI-Nspire emulator
« Reply #123 on: February 25, 2012, 05:49:23 am »
Never mind I created a rom image using the way I said above, install OS and save Flash in the File-> menu. But it's a shame I can't create it directly commandline anymore. At least I think I can't
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: TI-Nspire emulator
« Reply #124 on: February 25, 2012, 07:03:37 pm »
To put it directly, as of nspire_emu_060, there is no way to create and save a flash image in the Windows directory directly from the command line (nspire_emu.exe) anymore? You have to press file, Save Flash as from the emulator window?

Never mind, I found it somewhere in this thread. Perhaps all of this could be put on the first post?
« Last Edit: February 25, 2012, 07:23:35 pm by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TI-Nspire emulator
« Reply #125 on: March 02, 2012, 05:24:31 pm »
Question: I have some code programmed with the notes application on the Nspire CX. I sent it through TiLP to my computer. Then I opened it with nspire_emu. Is there any way I can get the code out? Copying and pasting like with student software doesn't work...

Thank you!

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TI-Nspire emulator
« Reply #126 on: March 02, 2012, 05:57:43 pm »
It's hard, but possible. It involves setting a breakpoint in nspire_emu and dumping the xml in a file.
You can find the exact details on Ndlessy (can't link now since I'm on my phone).

If you don't get it working, send me the file and I'll extract the code out of it tomorrow :)
« Last Edit: March 02, 2012, 05:57:56 pm by jimbauwens »

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TI-Nspire emulator
« Reply #127 on: March 02, 2012, 09:34:12 pm »
Would it be possible to use this notepad program http://ourl.ca/8679 to create a .txt, then somehow save or "send" the document back onto the computer in a compatible format (for editing with Notepad++ per se)?

I didn't find the breakpoint and xml thingy...

I'll PM you the document, good luck and Thank you!

Edit: I guess you can't PM attachments, so um, I guess I'll just post it.
« Last Edit: March 02, 2012, 09:52:41 pm by cyanophycean314 »

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: TI-Nspire emulator
« Reply #128 on: March 02, 2012, 11:46:48 pm »
that would be mighty useful, to extract what you had typed in a Notes app into a .txt file onto your computer. And vice versa.
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TI-Nspire emulator
« Reply #129 on: March 03, 2012, 01:37:16 am »
Another way to get files off nspire_emu/Ncubate is to make a program that outputs the file to the RS232 port.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #130 on: March 03, 2012, 02:26:35 am »
Another way is to open and load any file into a high memory location and use the debugger dump utility
The attached program does that, and breaks into the debugger for you.
You will have to concatenate the files made.






Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TI-Nspire emulator
« Reply #131 on: March 03, 2012, 06:11:10 am »
Ok, the code is attached.
Since I run an OS in nspire_emu that doesn't support ndless, I sadly can't use bsl's or Lionel's way.
What I do is copy the content I need to the clipboard (of the nspire) and then dump the memory of nspire_emu using gcore :P
Sounds strange, but works good for me :P
Then I just use a hex editor to find the offset of the data and use dd to get it :)

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #132 on: March 03, 2012, 10:50:36 am »
easier yet:
debug> w nspirememory.bin 10000000 2000000

Then you dont have to look at the rest of the emulator code only what you are interested in.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TI-Nspire emulator
« Reply #133 on: March 03, 2012, 10:53:20 am »
"w" never worked for me when using wine. It always creates and empty document, whatever I do :(

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: TI-Nspire emulator
« Reply #134 on: March 03, 2012, 10:20:54 pm »
Thanks for the source, jimbauwens! I'm not using Ubuntu right now, so I don't think I can use gcore...

easier yet:
debug> w nspirememory.bin 10000000 2000000

Then you dont have to look at the rest of the emulator code only what you are interested in.
When I looked at nspirememory.bin through notepad, I got random symbols.

Another way to get files off nspire_emu/Ncubate is to make a program that outputs the file to the RS232 port.
I wouldn't know how to program something that would output through RS232. Not entirely sure what it is...  :P

Isn't there just a way to save a document outside of nspire_emu?