Dear visitors and members, with the staff having moved on to other life interests and as a result of changes in people's internet usage habits, the CodeWalrus community have migrated almost entirely to Discord, IRC and WalrusIRC and is now essentially a place where to hang out, chat about gaming, programming, music, anime, and chill. As a result, even though the CW forums will remain open for posting, for faster TI, Casio or HP calculator help and news we recommend using the bilingual TI-Planet forums instead.

We encourage everyone to join our Discord server now.

* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: SDL/n2DLib ports for TI Nspire  (Read 73564 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivoah

  • Super User
  • Join Date: Dec 2014
  • Location:
  • Posts: 523
  • Post Rating Ratio: +6/-0
    • @NoahRosamilia
    • Ivoah
    • @UCmgDyh_AeaHALohvR7PKXIw
    • /u/Ivoah
    • Ivoah
    • 114/11421
    • Codinghobbit
  • Gender: Male
  • WalriiPoints: 100
Re: SDL/n2DLib ports for TI Nspire
« Reply #165 on: November 05, 2015, 08:05:14 pm »
I assume it would be nice to have that emulator ported if it can run more games than gpSP too, but I don't know which one has the highest compatibility.

What games don't run on gpSP?
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Offline Streetwalrus

  • Super User
  • Original 5
  • Join Date: Nov 2014
  • Location:
  • Posts: 2903
  • Post Rating Ratio: +20/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #166 on: November 05, 2015, 08:20:54 pm »
Not sure, but gpsp should run most games. Of course there are exceptions, performance-oriented emulators can't possibly have perfect accuracy.

Offline Hayleia

  • Full User
  • Join Date: Nov 2014
  • Location:
  • Posts: 324
  • Post Rating Ratio: +12/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #167 on: November 05, 2015, 08:44:05 pm »
Mario Tennis Power Tour doesn't run on it. At least not on the version used on the Nspire and I remember checking "official" compatibility lists and seeing it in "does not run".
Of course, probably other games don't run but that one was the only one I care about :P

Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18973
  • Post Rating Ratio: +100/-5
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #168 on: November 05, 2015, 09:13:45 pm »
I assume it would be nice to have that emulator ported if it can run more games than gpSP too, but I don't know which one has the highest compatibility.

What games don't run on gpSP?
I don't know, but I am sure some don't, because SNES emus sometimes had issues running Star Ocean even after 15 years, same with N64 emus with Mystical Ninja. And the GBA is much more recent. :P
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 749
  • Post Rating Ratio: +15/-7
  • TI-nspire porter
Re: SDL/n2DLib ports for TI Nspire
« Reply #169 on: November 06, 2015, 06:40:04 am »
I took a look at the dependencies, it seems more than feasible to port it. All of the external deps are actually there for extra features that we don't need or can't implement on the nspire due to platform restrictions (debugger, video and audio capture, screenshots, compressed roms). The latter two features are actually possible on the nspire though so we can look into it. These require zlib (included with ndless), libpng (compiles directly) and libzip (never tried but should be trivial).
mGBA can't be ported yet because it requires threads, (in other words, pthread) which Ndless does not support.
In addition, mGBA is using cmake so we'll have to write our own makefile.

gPSP is difficult to port because it has no C core in its latest version...
Temper, a NEC PC-Engine emulator, was recently open-sourced and even has a armv5 dynarec but it has again no C core
and currently, it is crashing on Ti Nspire CX : it's very hard to debug it.
  • Calculators owned: TI Nspire CX, TI-89

Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18973
  • Post Rating Ratio: +100/-5
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #170 on: November 06, 2015, 06:42:07 am »
Actually you don't need to port gPSP because it has already been done by calc84maniac :P http://www.ticalc.org/archives/files/fileinfo/449/44971.html (unless you mean something else than the GBA emu?)
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Streetwalrus

  • Super User
  • Original 5
  • Join Date: Nov 2014
  • Location:
  • Posts: 2903
  • Post Rating Ratio: +20/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #171 on: November 06, 2015, 10:05:27 am »
mGBA can't be ported yet because it requires threads, (in other words, pthread) which Ndless does not support.
In addition, mGBA is using cmake so we'll have to write our own makefile.
Ah yeah, threads. :/ Cmake is a non-issue though, writing a Makefile is trivial and I don't see why we couldn't just use Cmake to build Nspire programs. Bare-metal developers use it.

Offline Ivoah

  • Super User
  • Join Date: Dec 2014
  • Location:
  • Posts: 523
  • Post Rating Ratio: +6/-0
    • @NoahRosamilia
    • Ivoah
    • @UCmgDyh_AeaHALohvR7PKXIw
    • /u/Ivoah
    • Ivoah
    • 114/11421
    • Codinghobbit
  • Gender: Male
  • WalriiPoints: 100
Re: SDL/n2DLib ports for TI Nspire
« Reply #172 on: November 06, 2015, 02:22:22 pm »
I took a look at the dependencies, it seems more than feasible to port it. All of the external deps are actually there for extra features that we don't need or can't implement on the nspire due to platform restrictions (debugger, video and audio capture, screenshots, compressed roms). The latter two features are actually possible on the nspire though so we can look into it. These require zlib (included with ndless), libpng (compiles directly) and libzip (never tried but should be trivial).
mGBA can't be ported yet because it requires threads, (in other words, pthread) which Ndless does not support.
In addition, mGBA is using cmake so we'll have to write our own makefile.

gPSP is difficult to port because it has no C core in its latest version...
Temper, a NEC PC-Engine emulator, was recently open-sourced and even has a armv5 dynarec but it has again no C core
and currently, it is crashing on Ti Nspire CX : it's very hard to debug it.

You say "yet", does this mean that it might be possible in the future?
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Offline Streetwalrus

  • Super User
  • Original 5
  • Join Date: Nov 2014
  • Location:
  • Posts: 2903
  • Post Rating Ratio: +20/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #173 on: November 06, 2015, 04:18:55 pm »
Yes, once they add threading support to Ndless. Another option is to use the experimental threading implementation that tangrs wrote. Or try it out on linux if it can run in the framebuffer console, though you'd lose the benefits of low level hardware access.

Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18973
  • Post Rating Ratio: +100/-5
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #174 on: November 07, 2015, 04:44:49 am »
What if they ever decide to never add threading support to Ndless? O.O
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Ivoah

  • Super User
  • Join Date: Dec 2014
  • Location:
  • Posts: 523
  • Post Rating Ratio: +6/-0
    • @NoahRosamilia
    • Ivoah
    • @UCmgDyh_AeaHALohvR7PKXIw
    • /u/Ivoah
    • Ivoah
    • 114/11421
    • Codinghobbit
  • Gender: Male
  • WalriiPoints: 100
Re: SDL/n2DLib ports for TI Nspire
« Reply #175 on: November 07, 2015, 04:46:31 am »
Yes, once they add threading support to Ndless. Another option is to use the experimental threading implementation that tangrs wrote. Or try it out on linux if it can run in the framebuffer console, though you'd lose the benefits of low level hardware access.

Yeah, that's what I'm going to try. I'm positive it won't run nearly as fast as gpSP though, linux on the Nspire is so slow.
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18973
  • Post Rating Ratio: +100/-5
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #176 on: December 05, 2015, 01:48:15 am »
So @gameblabla I was playing your TX666 game a few seconds ago and for some reasons, even though enemies appear rarely, it was still quite hard. I was wondering if you planned to maybe add more levels in the future, such as enemies appearing randomly, other levels where they jump faster, and others where they appear more often, for example? (That's assuming of course that you didn't quit the Nspire scene)
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 749
  • Post Rating Ratio: +15/-7
  • TI-nspire porter
Re: SDL/n2DLib ports for TI Nspire
« Reply #177 on: January 10, 2016, 05:28:47 pm »
Yo, so i'm back with another port for TI Nspire.
Arthur Rojek has recently released another game called "Shisen-Seki" for GCW0.
It's similar to mahjong, you have to match stones with the same face.



The port itself is pretty smooth, i have not encountered any major issues.
You can download it right below.

So @gameblabla I was playing your TX666 game a few seconds ago and for some reasons, even though enemies appear rarely, it was still quite hard. I was wondering if you planned to maybe add more levels in the future, such as enemies appearing randomly, other levels where they jump faster, and others where they appear more often, for example? (That's assuming of course that you didn't quit the Nspire scene)
So i like i told you a month ago, i do not intend to improve it and i would rather work on another game, which is what i'm currently doing.
Unfortunely, i don't know if i will be able to meet the deadline but i'll see what i'll come up with.
  • Calculators owned: TI Nspire CX, TI-89

Offline xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18973
  • Post Rating Ratio: +100/-5
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #178 on: January 10, 2016, 05:30:07 pm »
Welcome back :3= . Also nice job. I always liked Shangai/Mahjong
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 749
  • Post Rating Ratio: +15/-7
  • TI-nspire porter
Re: SDL/n2DLib ports for TI Nspire
« Reply #179 on: March 20, 2016, 10:58:14 pm »
i am bach (sorry pi for stoling your line)


Yup, this was the Master System emulator i was talking about earlier.
Some progress was done to Ndless, GCC and Newlib and now, i'm happy to say that things got more stable on Nspire.

It can emulate most Master System/Game Gear roms properly. (except some koreans games with special mappers)

Anyway, if you want to give it a shot, it's right in the attachments below.

I have also updated Gameblabla's Oswan.
So far, this build crashes much less so it's all good.

EDIT: I forgot to mention that it runs almost fullspeed without frameskip with no overclocking.
So it is entirely playable.
« Last Edit: March 25, 2016, 10:24:03 pm by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games