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

0 Members and 2 Guests are viewing this topic.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: TI-Nspire emulator
« Reply #240 on: December 16, 2013, 04:22:52 am »
I'm not sure who created the google project mirror and if it's still active.

The up-to-date source code can be found here: https://www.unsads.com/scm/svn/nsptools/Ndless/trunk/Ndless-SDK/nspire_emu/ (guest/guest).
Ndless.me with the finest TI-Nspire programs

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #241 on: December 16, 2013, 04:58:04 am »
Thank you very much.

I will be looking at it.

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #242 on: December 25, 2013, 03:21:39 pm »
Is there any chance of moving nspire_emu to a new location for itself? It is quite dificult to mirror it this way :(. I believe it is a project on its own.

Merry XMas

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #243 on: June 10, 2014, 03:28:09 pm »
I've mirrored the project in Github https://github.com/antoniovazquezblanco/nspire_emu.

I've been trying to work on the sorce code for fixing warnings and for beeing able to compile it under both windows and linux.

After some work I realised that it no longer runs correctly under Windows and I don't know where I screwed up things so it would be very nice if any of you helped me find the mistake.

Here's a sample output:
Code: [Select]
./nspire_emu -1=Boot1cx.img -F=Flash.bin
Error at PC=00003B74: Invalid new processor mode

        Backtrace:
Frame     PrvFrame Self     Return   Start
00000000: invalid address
debug> d 3b74
00003B70              00 00 0F E1-1F 00 C0 E3 13 00 80 E3       ...ß..└π..Çπ
00003B80  C0 00 80 E3 00 F0 2F E1-AC D0 1F E5 00 00 A0 E3   └.Çπ.≡/ß¼╨.σ..áπ
00003B90  74 1D 9F E5 00 00 81 E5-70 1D 9F E5 00 00 81 E5   t.ƒσ..üσp.ƒσ..üσ
00003BA0  6C 0D 9F E5 6C 1D 9F E5-00 00 81 E5 08 03 00 EB   l.ƒσl.ƒσ..üσ...δ
00003BB0  6C 10 1F E5 00 10 91 E5-5C 0D 9F E5 00 00 11 E1   l..σ..æσ\.ƒσ...ß
00003BC0  08 00 00 0A 54 0D 9F E5-00 10 90 E5 02 10 81 E3   ....T.ƒσ..Éσ..üπ
00003BD0  00 10 80 E5 48 0D 9F E5-FD 10 A0 E3 00 10 80 E5   ..ÇσH.ƒσ².áπ..Çσ
00003BE0  B0 01 00 EB 00 00 00 EA-26 01 00 EB E8 00 00 EB   ░..δ...Ω&..δΦ..δ
00003BF0  F7 02 00 EB                                       ≈..δ
debug>

Any hint on this.

Thanks in advance.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: TI-Nspire emulator
« Reply #244 on: June 10, 2014, 03:40:00 pm »
nspire_emu's source moved to https://github.com/OlivierA/Ndless/tree/master/Ndless-SDK/nspire_emu, so consider forking the whole ndless repo for now.

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #245 on: June 10, 2014, 04:00:09 pm »
Ouch! This is very frustrating... Although it wasn't a great job I spent quite some hours working on this... I find ndless repo very messy and I see different projets inside the same repo which in my opinion difficult to maintain...

If you accept sugestions git submodules and different repos will be easier to work with...

I don't know what I will be doing. I just feel I wasted a lot of time in this project for nothing. I will probably abandon it in its poor state because I see I'm too out of the development discussion...

Thanks

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: TI-Nspire emulator
« Reply #246 on: June 10, 2014, 04:05:30 pm »
Just do a quick diff of the two source folders, there are no huge changes, really.
I totally agree with you, the ndless repo is indeed a big mess. I tried to clean up some parts on my fork, but can't do anything as I can't really get nspire_emu to build under linux.. You might be able to fix this with your patches!

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #247 on: June 10, 2014, 04:11:53 pm »
For being able to compile under linux you need to separate os dependent source files (gui and os) (done in my repo) and implement every function there for linux (not done). After that you should force 32bits compilation because of assembler (done) and you should add references for every symbol used both in c and asm to not include an underscore before them (done) so you will be able to compile in both platforms.

It is not very difficult to get done but it is sometimes tedious and ugly...

If I decide to continue on this I will probably try to clean up ndless repo first.

My patches are not difficult but they break the emulator in windows. If we are able to fix this issue it would be reasonable to merge my patches but not until then.
Do you feel in the mood for trying?

Thanks

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #248 on: June 10, 2014, 04:15:08 pm »
I agree that it's very messy. IMO the Ndless installer/resources, Ndless SDK, Ndless editor, Luna, and nspire_emu should all be in different repos. Vogtinator has done some things to clean it up though, you should check out his repo at https://github.com/Vogtinator/Ndless.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: TI-Nspire emulator
« Reply #249 on: June 10, 2014, 04:16:56 pm »
Getting the nspire_emu kernel to run on anything else than win32 is a PITA. Just so overly many calls to windows-specific functions for which there isn't a simple equivalent in linux. I tried it once to remove the GUI stuff and get it to compile, but it stopped at an undefined reference in assembler to a win32 call. That was too much for me at that time and now I think it's easier to just use mingw and wine on linux..

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #250 on: June 10, 2014, 04:27:39 pm »
Congrats Vogtinator for your work. Your repo looks quite good.

I've implemented some of the missing functions although there's a lot of missing work there but I meant to fix the emulator in win32 with mingw. It compiles but I'm stuck because it doesn't emulate as it is expected. If that worked I could be able to send the patches either to the main repo or to your fork.
 

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: TI-Nspire emulator
« Reply #251 on: June 10, 2014, 05:41:29 pm »
Quote
Congrats Vogtinator for your work. Your repo looks quite good.
It looks good, but apart from the SDK part nothing works :)
Just try to execute the generated ndless installer or resources, instant crash..

I just created a nspire_emu repo and made an initial commit.
Also, with the latest mingw32-w64 version it seems to compile on linux, and boot1 executes successfully!
« Last Edit: June 10, 2014, 05:46:44 pm by Vogtinator »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: TI-Nspire emulator
« Reply #252 on: June 12, 2014, 07:20:36 pm »
Bad news: With newer MinGW versions it compiles and runs sucessfully, but the 3.6 ndless_installer.tns segfaults the emulator.
Any ideas?

Offline antoniovazquezblanco

  • LV3 Member (Next: 100)
  • ***
  • Posts: 46
  • Rating: +0/-0
    • View Profile
Re: TI-Nspire emulator
« Reply #253 on: June 22, 2014, 03:37:17 pm »
My version of the emulator works now on Windows. I fixed that anoying mistake I made. It compiles under linux with gcc but it is far from being usable as there are a lot of uninplemented functions.

I will have a look to your repo Vogtinator to see your changes but I want to make sure we will be all working toguether so I think we should talk about how things are going to be organised to avoid wasted hours.

Thanks for your time.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: TI-Nspire emulator
« Reply #254 on: June 22, 2014, 04:39:50 pm »
Can you install ndless 3.6 successfully on your build of nspire_emu?