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 72379 times)

0 Members and 2 Guests are viewing this topic.

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: 18969
  • 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 #210 on: April 13, 2016, 01:17:18 am »
Thanks for the clarification. It's a shame that SDL 1.2 support was dropped before C64 emulation got added. As for Dizzy I'll probably try them anyway at some point, but are they as bad as LJN games, Big Rigs, Hong Kong 97 and CrazyBus? Or are they just bad because they're unforgivingly hard/impossible to beat without the guide?
  • 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 #211 on: April 17, 2016, 04:57:11 am »
As for Dizzy I'll probably try them anyway at some point, but are they as bad as LJN games, Big Rigs, Hong Kong 97 and CrazyBus? Or are they just bad because they're unforgivingly hard/impossible to beat without the guide?
They are not that bad but they are very unforgiving and they don't give you any clue to where you need to go, i hate this kind of game.

So guess what guys ?
I tried to port a Microbee and a Thomson TO9 emulator and they both give me a black screen on Ti nspire CX...
That puzzles me... Why ?
I will upload the source code for both emulators on github but fortunely, i was able to port another emulator.


Yeah, that's an Apple I emulator.
I must say that the Apple I was a very primitive computer compared to even its sucessor.

Porting it to TI nspire was not easy and it took me a while to get things working.
Unfortunely, you won't be able to load/save memory on this version due to technical difficulties but other than that,
you have access to everything else, including the 8k RAM expension.

EDIT: Fixed the key mapping, might work faster on CR4 revisions.
EDIT2: Now working properly on CR4 revisions.
« Last Edit: April 17, 2016, 08:04:12 pm by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

Offline critor

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 203
  • Post Rating Ratio: +6/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #212 on: April 17, 2016, 09:59:11 am »
Nice :D


Can we load other ROM files than Basic ?

I've noticed I don't need to tell the emu about the "basic.rom" file and just have to type "E000R" tun run Basic, so I wonder.

I've also noticed the Basic is a 4K ROM file, when all ROMs sites I could find up to now are providing much bigger WAV files.
« Last Edit: April 17, 2016, 10:10:14 am by critor »

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 #213 on: April 17, 2016, 11:33:23 am »
Can we load other ROM files than Basic ?

I've noticed I don't need to tell the emu about the "basic.rom" file and just have to type "E000R" tun run Basic, so I wonder.

I've also noticed the Basic is a 4K ROM file, when all ROMs sites I could find up to now are providing much bigger WAV files.
I honestly don't know but it doesn't seem to designed to load other roms.
I have a libSDL version that is designed to load memory files but that version is insanely slow
and input doesn't work properly anyway...
  • Calculators owned: TI Nspire CX, TI-89

Offline critor

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 203
  • Post Rating Ratio: +6/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #214 on: April 17, 2016, 12:03:45 pm »
Thank you for your reply.

Unfortunately, the keymap doesn't seem perfect.

I've been able to get the following special characters :
#!",?+-*/

But I couldn't get the following characters, which are still required for some decent Basic programming :
()=;<>:

I've even tried the ctrl+shift key modifiers but they don't seem to change anything at all.
« Last Edit: April 17, 2016, 12:05:45 pm by critor »

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 #215 on: April 17, 2016, 01:19:39 pm »
As for Dizzy I'll probably try them anyway at some point, but are they as bad as LJN games, Big Rigs, Hong Kong 97 and CrazyBus? Or are they just bad because they're unforgivingly hard/impossible to beat without the guide?
They are not that bad but they are very unforgiving and they don't give you any clue to where you need to go, i hate this kind of game.

So guess what guys ?
I tried to port a Microbee and a Thomson TO9 emulator and they both give me a black screen on Ti nspire CX...
That puzzles me... Why ?
I will upload the source code for both emulators on github but fortunely, i was able to port another emulator.


Yeah, that's an Apple I emulator.
I must say that the Apple I was a very primitive computer compared to even its sucessor.

Porting it to TI nspire was not easy and it took me a while to get things working.
Unfortunely, you won't be able to load/save memory on this version due to technical difficulties but other than that,
you have access to everything else, including the 8k RAM expension.
Wow, this looks great! Would an Apple ][ emulator be possible, or is it too "advanced" for the Nspire?
  • 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 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 #216 on: April 17, 2016, 01:35:32 pm »
Thank you for your reply.
Unfortunately, the keymap doesn't seem perfect.
I've been able to get the following special characters :
#!",?+-*/
But I couldn't get the following characters, which are still required for some decent Basic programming :
()=;<>:
I've even tried the ctrl+shift key modifiers but they don't seem to change anything at all.
Yes, it's not perfect because i had to manually program it one by one...
Could please tell me what the "()=;<>:" keys are mapped to in ndless ?
Because i have no idea...

Quote
Wow, this looks great! Would an Apple ][ emulator be possible, or is it too "advanced" for the Nspire?
It should be entirely possible, thanks to the TI nspire keys.
I simply need to find an adequate emulator for that...
  • Calculators owned: TI Nspire CX, TI-89

Offline critor

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 203
  • Post Rating Ratio: +6/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #217 on: April 17, 2016, 03:56:17 pm »
Thank you for your reply.
Unfortunately, the keymap doesn't seem perfect.
I've been able to get the following special characters :
#!",?+-*/
But I couldn't get the following characters, which are still required for some decent Basic programming :
()=;<>:
I've even tried the ctrl+shift key modifiers but they don't seem to change anything at all.
Yes, it's not perfect because i had to manually program it one by one...
Could please tell me what the "()=;<>:" keys are mapped to in ndless ?
Because i have no idea...
Some symbols should be directly accessible from the keypad :
- KEY_NSPIRE_LP : (
- KEY_NSPIRE_RP : )
- KEY_NSPIRE_EQU : =

You may map : to KEY_NSPIRE_FRAC .

Other symbols would still be problem :
<>;

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: 18969
  • 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 #218 on: April 17, 2016, 04:12:11 pm »
Nice to see an Apple 1 emulator on the CX. :) But that screenshot... It says "DJ LOVES HEN@" 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 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 #219 on: April 17, 2016, 05:22:42 pm »
Some symbols should be directly accessible from the keypad :
- KEY_NSPIRE_LP : (
- KEY_NSPIRE_RP : )
- KEY_NSPIRE_EQU : =

You may map : to KEY_NSPIRE_FRAC .

Other symbols would still be problem :
<>;
Okay thanks, i have updated Pom1 to reflect that. (a few posts above)
To type either "<" or ">", hold Ctrl or Shift and then press the "()" buttons.

Also critor, can you please test it on a TI nspire CR4 revision ?
I might have fixed the speed issues...

Quote
It says "DJ LOVES HEN@" O.O

« Last Edit: April 17, 2016, 05:30:05 pm by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

Offline critor

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 203
  • Post Rating Ratio: +6/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #220 on: April 17, 2016, 05:39:52 pm »
Yes, it's faster on CR4.
It doesn't trigger the compatibility mode anymore, but the display is wrong though.

^ I've just opened pom and typed 0123456789.
« Last Edit: April 17, 2016, 05:41:40 pm by critor »

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 #221 on: April 17, 2016, 06:04:09 pm »
Yes, it's faster on CR4.
It doesn't trigger the compatibility mode anymore, but the display is wrong though.

That's what i thought...
I might revert back to compatibility mode, because i still don't understand it doesn't work on CR4...
(It works on my nspire, it doesn't help i don't own a CR4 one...)
  • Calculators owned: TI Nspire CX, TI-89

Offline critor

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 203
  • Post Rating Ratio: +6/-0
Re: SDL/n2DLib ports for TI Nspire
« Reply #222 on: April 17, 2016, 06:06:06 pm »
Just test on Firebird ?

Offline Adriweb

  • Full User
  • CodeWalrus Supporter
  • *
  • Join Date: Jan 2015
  • Location: France & Canada
  • Posts: 432
  • Post Rating Ratio: +7/-1
    • Adriweb
    • @Adriweb
    • Adriweb
    • @UC-UIrbk5SuaUCvnV6SQvt-Q
    • /u/Adriweb
    • Adriweb
    • TI-Planet.org
  • Gender: Male
Re: SDL/n2DLib ports for TI Nspire
« Reply #223 on: April 17, 2016, 06:10:02 pm »
(On recent Firebird builds (http://pimathbrainiac.me/firebird/ for some nightly binaries), you can indeed choose to emulate a CR4 hardware)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

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 #224 on: April 17, 2016, 07:02:44 pm »
(On recent Firebird builds (http://pimathbrainiac.me/firebird/ for some nightly binaries), you can indeed choose to emulate a CR4 hardware)
Ha, didn't know that, thanks.
Unfortunely, i have to reinstall everything, even the OS. Nooooo

EDIT: Anyway, it's fixed now, thanks to firebird.
« Last Edit: April 17, 2016, 08:04:42 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