Author Topic: Ndless 3 Alpha on Nspire CX CAS (photos + video)  (Read 38139 times)

0 Members and 2 Guests are viewing this topic.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #15 on: December 03, 2011, 09:48:30 am »
Yay !! Finally, 79€ for a CX are really worth it ;D
I hope TI will not block it soon D:
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #16 on: December 03, 2011, 09:53:01 am »
what? €79??? where did you buy that one? here it's like €150...

--edit--
same as my nr of posts btw xp
« Last Edit: December 03, 2011, 09:53:29 am by Nick »

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #17 on: December 03, 2011, 09:58:56 am »
what? €79??? where did you buy that one? here it's like €150...

--edit--
same as my nr of posts btw xp
>:D Muahahahaha !!!
I had a huge bargain for that one (this is one of the reasons I didn't buy a Prizm) because my mother is a math teacher and teaches in a school of guys that don't even know how to use a 30XB Multiview, so she ordered it for me :D
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Cuervo

  • LV2 Member (Next: 40)
  • **
  • Posts: 33
  • Rating: +2/-1
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #18 on: December 03, 2011, 10:14:44 am »
From April 2011 till 31. of December TI sells much stuff for a lower price for teachers in some countries.

In Germany we have
65,00 € for a CX,
70,00 € for a CX CAS,
28,61 € for the Teacher Software only (which can be used as CAS and non-CAS),
2,91 € for a battery charger (internal CX battery),
140,00 € for the LabCraddle,
83,03 € for the TI-84 SE,
58,38 € for the TI-SmartView Software (84+),
116,32 € for the TI-89 Titanium,
142,80 € for the Voyage 200,
133,28 € for the ViewScreen-Display (TI-84+/SE),
142,80 € for the ViewScreen-Display (TI-89 Titanium/Voyage 200),
124,95 € for the TI-Nspire Viewscreen (not the CX Models),
114,24 € for the CBL2 and
68,55 € for the CBR2.

The shipping charges for Hardware is 9,00 €, for Software only 4,00 €.
But you need a school's stamp for ordering this.

Because my school ordered them, I got a CX CAS for 75,00 €.. ^^
« Last Edit: December 03, 2011, 10:16:47 am by Cuervo »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #19 on: December 03, 2011, 10:37:29 am »
Quote
I hope TI will not block it soon :(
TI will certainly block this new incarnation of Ndless, just like they blocked all past incarnations of Ndless... and further reverse-engineering work will be required, on future OS and hardware versions, to eventually defeat them. It's just a matter of time, many manufacturers try to lock things down but fail again and again and again.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #20 on: December 03, 2011, 06:33:31 pm »
Wow!  Extremely impressive! :)

Can I get information on how to draw to the Nspire CX's screen?  I would like to start updating my stuff (particularly nPlayer) and I need this info to proceed! :)
The buffer has 16-bit pixel entries with 5 bits for red (mask 0xF800), 6 bits for green (mask 0x07E0), and 5 bits for blue (mask 0x001F). You can also change the color settings by interfacing with the LCD controller (look up PrimeCell PL111). The address of the buffer can be read from 0xC0000010 on all Nspire models.


Could we have some code sample which would display black, white, red, green & blue pixels?

Many things seem different and unfortunately HackSpire is not up to date.
TI-Planet co-admin.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #21 on: December 03, 2011, 06:41:35 pm »
Wow!  Extremely impressive! :)

Can I get information on how to draw to the Nspire CX's screen?  I would like to start updating my stuff (particularly nPlayer) and I need this info to proceed! :)
The buffer has 16-bit pixel entries with 5 bits for red (mask 0xF800), 6 bits for green (mask 0x07E0), and 5 bits for blue (mask 0x001F). You can also change the color settings by interfacing with the LCD controller (look up PrimeCell PL111). The address of the buffer can be read from 0xC0000010 on all Nspire models.


Could we have some code sample which would display black, white, red, green & blue pixels?

Many things seem different and unfortunately HackSpire is not up to date.
Yes, please do! I'd like to try and port SDL to this platform :D
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #22 on: December 03, 2011, 07:16:06 pm »
You can draw stuff exactly like on the Prizm. The buffer is a 320x240 array of shorts, so you can read and store the pixels directly by array indexing. Basically if you have red value 0-31, green value 0-63, blue value 0-31, you get short color = (red << 11) | (blue << 5) | green;

To get the buffer array, you might be able to do unsigned short buffer[320][240] = *(unsigned short**)0xC0000010; I'm not exactly sure of the correct syntax though.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #23 on: December 03, 2011, 08:32:02 pm »
Code: [Select]
unsigned short (*buffer)[320] = *(unsigned short (**)[320])0xC0000010;and then individual pixels are accessible with buffer[y][x]. It's not too common to have a pointer-to-array in C, but it is legal :)
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #24 on: December 04, 2011, 02:02:43 am »
One can also define a single-dimensional array of LCD_HEIGHT (320) * LCD_WIDTH (240) elements, and access pixel at (x, y) by buffer[x+y*LCD_WIDTH].
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #25 on: December 04, 2011, 03:59:05 am »
Programs will be run in grayscale mode, although it is currently buggy.
You should set LCD Control (C0000018, and not C000001C as on classic TI-Nspire) bits 1-3. I'll add a function to libndls for this.
Ndless.me with the finest TI-Nspire programs

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #26 on: December 04, 2011, 04:23:10 am »
Ok, most Ndless 1.7/2.0 programs don't display anything on a TI-Nspire CX.
Because the screen buffer base address seems to have been changed.
So most programs who were using a hard-coded screen base address are writing outside of the screen buffer,which may crash/reboot the calculator.

Screen Buffer was at 0xa4000100 on TI-Nspire ClickPad/TouchPad.
If I'm not mistaken, it os now at 0x13FDA800 on TI-Nspire CX.

To make portable programs, you can get the screen buffer address which seems to be stored at 0xC0000010 on all models.


NESpire is working because it was recompiled for CX Nspires.
mViewer is working because it was allocating and using a second screen buffer.
« Last Edit: December 04, 2011, 04:23:27 am by critor »
TI-Planet co-admin.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #27 on: December 04, 2011, 06:03:30 am »
Little question:
I should be able to code Ndless 3.1 programs with the current SDK, right?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #28 on: December 04, 2011, 06:06:07 am »
Existing functions of the SDK continue to work, but programs will need to be rebuilt with v3.1 to be compatible with CX because of these hardware changes.
Ndless.me with the finest TI-Nspire programs

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Ndless 3 Alpha on Nspire CX CAS (photos + video)
« Reply #29 on: December 04, 2011, 06:12:15 am »
Okay, thanks for the information :)