July 09, 2020, 02:11:04 am

The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

WARNING: DO NOT UPGRADE your TI-83 Premium CE or TI-84 Plus CE to OS 5.5.1 and higher. It removes all compatibility with most games and removes ASM/C programming! DOWNGRADING IS IMPOSSIBLE. BE WARNED! Likewise, do NOT update your TI-Nspire CX past OS 4.5.0, else using Ndless and ASM/C programs will be impossible.

Ndless 4.2 is out!

Started by Yuki, February 19, 2016, 09:26:40 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yuki

February 19, 2016, 09:26:40 pm Last Edit: February 19, 2016, 09:29:56 pm by Juju

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
Read Zarmina!
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

DJ Omnimaga

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? <_<

rwill

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..

DJ Omnimaga

What's the minimum stack size required by nQuake?

rwill

Quote from: DJ Omnimaga on April 30, 2016, 04:01:10 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...

Vogtinator

Quote from: rwill 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..



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.

bluman855

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.

DJ Omnimaga

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.

Vogtinator

Quote from: bluman855 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.


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.

Vogtinator

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!

DJ Omnimaga

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?

critor

November 06, 2016, 03:38:53 pm #11 Last Edit: November 09, 2016, 12:20:01 pm by critor
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 ;)


Powered by EzPortal