* 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: Ndless 4.2 is out!  (Read 2830 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • CodeWalrus Staff
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 2963
  • Post Rating Ratio: +27/-2
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Ndless 4.2 is out!
« on: February 19, 2016, 09:26:40 pm »

It's working! <insert mad scientist laugh here>

Remember the big red warning in my last news about Nspire OS 4.2? Well, I guess it lasted only a good 3 days. That was fast.

Indeed, Ndless 4.2, working on the OS 4.2 that has been released 3 days ago, which is an answer to Ndless 4.0 released about a month and a half ago, has been released. The cat and mouse game is going strong these days, it seems.

Installation is the same as 4.0, you can even refer word-by-word to the Ndless 4.0.3 news and replace the version number with 4.2.

Download it here!
Official website
Tutorial by TI-Planet
Source code
« Last Edit: February 19, 2016, 09:29:56 pm by Juju »


  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron


if you wanna throw money at me and/or CodeWalrus monthly it's here

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18522
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Ndless 4.2 is out!
« Reply #1 on: February 20, 2016, 06:11:36 am »
That was definitively fast and I'm glad the install process is identical to 4.0.3 rather than 3.9. 3.9 was so annoying to install, thanks to TI's actions. Hopefully OS 4.3 doesn't come out tomorrow (maybe Ndless 4.2 record speed release will make TI also break their OS release speed record? <_<
  • 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 rwill

  • New User
  • Join Date: Aug 2015
  • Location:
  • Posts: 17
  • Post Rating Ratio: +0/-0
Re: Ndless 4.2 is out!
« Reply #2 on: April 30, 2016, 09:57:44 am »
So I tried running nQuake with a new ndless and it appears that
the usable stack size shrunk to around 53kb. This makes nQuake
crash. As 53kb is somewhat low for any program I wondered if it
would be possible for ndless to increase the amount of stack
available to programs, most likely by pointing the stack to
an ndless allocated region and then restoring the real stack
when entering syscalls.

I can wrap the syscalls myself for nQuake but nQuake can hardly
be the only application where such a small stack size is
a problem..

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18522
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Ndless 4.2 is out!
« Reply #3 on: April 30, 2016, 04:01:10 pm »
What's the minimum stack size required by nQuake?
  • 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 rwill

  • New User
  • Join Date: Aug 2015
  • Location:
  • Posts: 17
  • Post Rating Ratio: +0/-0
Re: Ndless 4.2 is out!
« Reply #4 on: April 30, 2016, 05:15:26 pm »
What's the minimum stack size required by nQuake?

Well I can only guess but it worked with around 56k. Unmodified WinQuake was around 600k...

Offline Vogtinator

  • Full User
  • Join Date: Dec 2014
  • Location: Germany
  • Posts: 109
  • Post Rating Ratio: +4/-0
  • Instruction counter
    • @UCii1mkxAsrIGvjFwS80YSmg
    • /u/Vogtinator
    • Vogtinator
    • ../../../cgi-bin/acct-view.cgi?userid=87663#
Re: Ndless 4.2 is out!
« Reply #5 on: May 01, 2016, 03:09:41 pm »
So I tried running nQuake with a new ndless and it appears that
the usable stack size shrunk to around 53kb. This makes nQuake
crash. As 53kb is somewhat low for any program I wondered if it
would be possible for ndless to increase the amount of stack
available to programs, most likely by pointing the stack to
an ndless allocated region and then restoring the real stack
when entering syscalls.

I can wrap the syscalls myself for nQuake but nQuake can hardly
be the only application where such a small stack size is
a problem..


I can confirm the issue. SP is at 0x1800d488 on 4.2 CX CAS, so there are 0xd488 bytes of available stack space.
It should be possible to increase it by either using a different stack or map some more space at 0x17ffX000.
I'll try both and figure out what's the best option here.
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

Offline bluman855

  • New User
  • Join Date: Nov 2016
  • Location:
  • Posts: 1
  • Post Rating Ratio: +0/-0
Re: Ndless 4.2 is out!
« Reply #6 on: November 01, 2016, 04:21:16 am »
Sorry for the extreme necro, but is this problem resolved? I am on a non CAS Nspire CX, and the calculator reboots when I try to run nquake.

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18522
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Ndless 4.2 is out!
« Reply #7 on: November 01, 2016, 04:52:32 am »
Hi and welcome here bluman855. I can't help you but hopefully @Vogtinator can. It seems that @Legimet has been active recently on the Ndless repo, so maybe he might know if that issue was resolved yet.
  • 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 Vogtinator

  • Full User
  • Join Date: Dec 2014
  • Location: Germany
  • Posts: 109
  • Post Rating Ratio: +4/-0
  • Instruction counter
    • @UCii1mkxAsrIGvjFwS80YSmg
    • /u/Vogtinator
    • Vogtinator
    • ../../../cgi-bin/acct-view.cgi?userid=87663#
Re: Ndless 4.2 is out!
« Reply #8 on: November 01, 2016, 10:32:15 am »
Sorry for the extreme necro, but is this problem resolved? I am on a non CAS Nspire CX, and the calculator reboots when I try to run nquake.

The issue hasn't been resolved yet, as the underlying cause is fairly complex. However, I've got two weeks of vacation now so hopefully I'll be able to look into this in the next few days!
The approach of mapping additional pages is likely the best one, as it means not having to fiddle with sp at all. It just needs some modification to the nucleus task struct, so that the OS doesn't think that it overflowed.
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

Offline Vogtinator

  • Full User
  • Join Date: Dec 2014
  • Location: Germany
  • Posts: 109
  • Post Rating Ratio: +4/-0
  • Instruction counter
    • @UCii1mkxAsrIGvjFwS80YSmg
    • /u/Vogtinator
    • Vogtinator
    • ../../../cgi-bin/acct-view.cgi?userid=87663#
Re: Ndless 4.2 is out!
« Reply #9 on: November 01, 2016, 07:00:50 pm »
It was actually much less work than I thought, this ndless_resources adds 128k of additional stack space before running programs on OS >= 4.2.
Please test and report back!
  • Calculators owned: TI-Nspie CX CAS, Casio FX-85ES

Online xlibman

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18522
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Ndless 4.2 is out!
« Reply #10 on: November 02, 2016, 03:42:12 am »
Cool. Hopefully this resolves compatibility issues.

On a side note I wonder if it would be easy to add backward compatibility support with Ndless 1.0, 1.1, 1.7, 2.0, 2.1 programs and emulate grayscale mode with them?
  • 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 critor

  • Full User
  • Join Date: Dec 2014
  • Location:
  • Posts: 184
  • Post Rating Ratio: +6/-0
Re: Ndless 4.2 is out!
« Reply #11 on: November 06, 2016, 03:38:53 pm »
Note to those who have to update to OS 4.3 for some reason (latest version mandatory for some exams for example), and still haven't done so yet.

With the above latest Ndless 4.2r2006 release, there is a way to update to OS 4.3 and keep Ndless. :D

If your calculator is hardware revision V or older, check the tutorial : https://tiplanet.org/forum/viewtopic.php?f=57&t=19185 ;)

« Last Edit: November 09, 2016, 12:20:01 pm by critor »

 


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