Author Topic: ASM on-calc TI-Nspire?  (Read 8136 times)

0 Members and 1 Guest are viewing this topic.

Offline Official.Xian

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +1/-0
  • n00bGalore
    • View Profile
ASM on-calc TI-Nspire?
« on: January 05, 2014, 10:41:42 am »
Can someone give me some help getting started with ASM programming for the TI-Nspire. I have very limited access to the computer and would like to know if it's possible to do ASM programming on the calculator, and if so, what do I need to do this, and how do I get what I need? Thank you in advance! --n00bGalore
http://internetometer.com/image/41346.png

If you think I deserve it, you may give my internets! :D

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: ASM on-calc TI-Nspire?
« Reply #1 on: January 05, 2014, 10:43:14 am »
For now, it's not possible to program anything else than TI-Basic or Lua (unofficially) directly on a TI-Nspire, 'cause there is no on-calc assembler nor compiler for any language (nor editor). Of course, you're always free to make one ;D

Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #2 on: January 05, 2014, 11:11:22 am »
Here is the link. You can inline machine code from Lua and execute it[Like the Ti-89]. Examples are given.

http://ourl.ca/17033/320431

Now you can write or port the assembler part :)
Its easier of course to develop this on the emulator, to avoid calc reboots from errors

Offline Official.Xian

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +1/-0
  • n00bGalore
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #3 on: January 05, 2014, 11:20:08 am »
Looks like I need to do a lot of learning and write my own... *sets off to learn*
http://internetometer.com/image/41346.png

If you think I deserve it, you may give my internets! :D

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: ASM on-calc TI-Nspire?
« Reply #4 on: January 05, 2014, 11:21:10 am »
Quite a bunch of people will thank you very hard if you make an actual assembler :P

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #5 on: January 05, 2014, 04:18:41 pm »
How hard would it be to port GCC for the purposes of using its inline assembler?

Offline Official.Xian

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +1/-0
  • n00bGalore
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #6 on: July 10, 2014, 08:24:20 am »
How hard would it be to port GCC for the purposes of using its inline assembler?
~bump~ I'm not sure, but maybe it could be done easily in Linux on the Nspire?
http://internetometer.com/image/41346.png

If you think I deserve it, you may give my internets! :D

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #7 on: July 10, 2014, 08:48:22 am »
How hard would it be to port GCC for the purposes of using its inline assembler?
~bump~ I'm not sure, but maybe it could be done easily in Linux on the Nspire?
Answer : on Linux there's nothing hard, just cross compile gcc and you can do what you want.

Offline Official.Xian

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +1/-0
  • n00bGalore
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #8 on: July 15, 2014, 10:48:12 pm »
How hard would it be to port GCC for the purposes of using its inline assembler?
~bump~ I'm not sure, but maybe it could be done easily in Linux on the Nspire?
Answer : on Linux there's nothing hard, just cross compile gcc and you can do what you want.
Okay thanks. Do you know if it'd be possible to make a teenie tiny Linux distro for the Nspire whose sole purpose is compiling?
http://internetometer.com/image/41346.png

If you think I deserve it, you may give my internets! :D

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #9 on: July 15, 2014, 11:29:37 pm »
Well, if your goal is assembly you don't need to port GCC in its entirety, just GAS (the GNU assembler, commonly renamed 'as' on linux systems) or some other assembler and linker. That should fit into the 32 MB of greyscale nspires quite easily alongside the smaller kernel.

FYI there is already a fully functional linux port to the nspire. It can even run X.org (poorly) More information about that can be found here: http://www.omnimaga.org/ti-nspire-projects/calling-all-linux-kernel-developers!/


The smallest running set should take up less than 4 MB, leaving plenty of room for programming. On the other hand, I seem to recall there being an issue about writing any new data, so you'd lose everything on reboot, unless they've got NAND support running.


You might be better off trying to port an assembler to ndless, if that's the case.
« Last Edit: July 15, 2014, 11:31:46 pm by willrandship »

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: ASM on-calc TI-Nspire?
« Reply #10 on: July 16, 2014, 12:05:11 pm »
The small kernel shouldn't be used, it's just the bare minimum to boot up.