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

SDL/n2DLib ports for TI Nspire

Started by gameblabla, August 19, 2015, 08:48:31 pm

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

gameblabla

Mame for TI Nspire, you want it ?
It's yours my friend, as long as you debug it with GDB !
TNS file
Github repo

Trying to port Wolf4SDL and guess what ? Crashes.
Crashes before the application even starts...
Same thing for MAME apparently.

Is my devkit buggy ?
I do not know but you can still give it a try on your nspire.
If it works,  then you can run your games (provided they come from the old mame 0.37 set) by putting this line in ndless.cfg.tns :
ext.zip=mame

This is going nowhere so i'll just take a break just like i did in december and hopefully
gcc and newlib will get fixed again.

DJ Omnimaga

Hm, sorry to hear about Wolf4SDL crashing. Maybe you could ask the Ndless team directly about what could be wrong? (assuming they are the ones who made gcc and newlib)

Also Mame for the TI-Nspire is definitively interesting if it runs. It can emulate a lot of obscure platforms if I recall correctly, right?

Vogtinator

Quote from: gameblabla on April 22, 2016, 02:45:25 am
Mame for TI Nspire, you want it ?
It's yours my friend, as long as you debug it with GDB !
TNS file
Github repo

Trying to port Wolf4SDL and guess what ? Crashes.
Crashes before the application even starts...
Same thing for MAME apparently.


I tried to compile it, didn't work. I had to add "#undef TRUE" and "#undef FALSE" to nucleus.h.
The reason for the crashes is probably that malloc fails. The binary is also too big to be debugged (without tweaking emu_debug_alloc_size) and it doesn't even load on OS >= 4.0.

DJ Omnimaga


Vogtinator

The default emu_debug_alloc_size is 8MiB. It prints a message "[Zehn] emu_debug_alloc_size too small!" if the executable needs more.

gameblabla

To compile Mame, you actually need to comment out the os.h file.
Maybe i should file a bug for this but you should completely remove this file because it conflicts with a lot of applications out there...
And the uncompressed executable is 30MB, so debugging it is out of question...

I guess it's really dead then...
How about you look at Wolfenstein 3D instead ? ;D
https://github.com/gameblabla/wolf4sdl_nspire

I will see if i can't port KEGS instead, it's pretty fast on my computer and it takes like less than 1% of my cpu,
it should run pretty fast on nspire.

Vogtinator

April 23, 2016, 07:37:41 pm #231 Last Edit: April 23, 2016, 07:51:02 pm by Vogtinator
Quote from: gameblabla on April 23, 2016, 02:09:33 pm
To compile Mame, you actually need to comment out the os.h file.
Maybe i should file a bug for this but you should completely remove this file because it conflicts with a lot of applications out there...

It's already deprecated, but everything still uses it :-/

QuoteAnd the uncompressed executable is 30MB, so debugging it is out of question...

It's about 10 MiB here, but even that's too large to use on 4.0 ("ld_exec: could not malloc savedscr")

QuoteI guess it's really dead then...
How about you look at Wolfenstein 3D instead ? ;D
https://github.com/gameblabla/wolf4sdl_nspire

Same crash?
Edit: Works fine here on OS 3.1. Probably also a memory problem. enable_relative_paths doesn't seem to work though, I had to place the .wl1.tns files in /documents.

QuoteI will see if i can't port KEGS instead, it's pretty fast on my computer and it takes like less than 1% of my cpu,
it should run pretty fast on nspire.

gameblabla

April 23, 2016, 07:52:09 pm #232 Last Edit: April 23, 2016, 07:54:39 pm by gameblabla
QuoteEdit: Works fine here on OS 3.1. Probably also a memory problem. enable_relative_paths doesn't seem to work though, I had to place the .wl1.tns files in /documents.

ah, interesting, care to share your tns ?

QuoteProbably also a memory problem

What do you mean, memory ?
You mean that it is taking too much RAM or is it something else ?

Vogtinator

Here you go.


gameblabla

Quote from: Vogtinator on April 23, 2016, 07:54:30 pm
Here you go.


Thanks, i don't know how you got it to work though...
It crashes right away on my nspire. (OS 4.2 btw)

I will reinstall my OS and go back to OS 3.1.

Vogtinator

Quote from: gameblabla on April 23, 2016, 07:58:14 pm
Quote from: Vogtinator on April 23, 2016, 07:54:30 pm
Here you go.


Thanks, i don't know how you got it to work though...
It crashes right away on my nspire. (OS 4.2 btw)

I will reinstall my OS and go back to OS 3.1.


Just tried on 4.2 CX CAS (firebird) and it works fine. Do you have the latest ndless?

gameblabla

April 23, 2016, 08:19:02 pm #236 Last Edit: April 23, 2016, 08:23:45 pm by gameblabla
Quote from: Vogtinator on April 23, 2016, 08:05:59 pm
Just tried on 4.2 CX CAS (firebird) and it works fine. Do you have the latest ndless?

Yeah, i had the latest ndless installed.
Reformatted my calc, put OS 3.1 then tried to run Wolfenstein : it crashed right away.
Have you tried on a real calc ?

Vogtinator

I don't have access to my calc right now. There's only a few possibe causes for a crash on HW: Unaligned access and other HW side-effects.
The whole lot of  GCC warnings point to the first.

DJ Omnimaga

Wow, if this game works on a real calc in the future, this will be epic! O.O

gameblabla

Quote from: Vogtinator on April 23, 2016, 08:32:31 pm
I don't have access to my calc right now. There's only a few possibe causes for a crash on HW: Unaligned access and other HW side-effects.
The whole lot of  GCC warnings point to the first.

Well, i can't even run your binary on firebird...
I'm seriously thinking i have corrupted all of my Nspire-related files...

Could anybody else give Wolfenstein 3D a try on their nspire ?

Powered by EzPortal