Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Official.Xian on January 05, 2014, 10:41:42 am

Title: ASM on-calc TI-Nspire?
Post by: Official.Xian 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
Title: Re: ASM on-calc TI-Nspire?
Post by: Matrefeytontias 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
Title: Re: ASM on-calc TI-Nspire?
Post by: bsl 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
Title: Re: ASM on-calc TI-Nspire?
Post by: Official.Xian 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*
Title: Re: ASM on-calc TI-Nspire?
Post by: Matrefeytontias 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
Title: Re: ASM on-calc TI-Nspire?
Post by: fb39ca4 on January 05, 2014, 04:18:41 pm
How hard would it be to port GCC for the purposes of using its inline assembler?
Title: Re: ASM on-calc TI-Nspire?
Post by: Official.Xian 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?
Title: Re: ASM on-calc TI-Nspire?
Post by: Streetwalrus 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.
Title: Re: ASM on-calc TI-Nspire?
Post by: Official.Xian 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?
Title: Re: ASM on-calc TI-Nspire?
Post by: willrandship 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!/ (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.
Title: Re: ASM on-calc TI-Nspire?
Post by: Streetwalrus on July 16, 2014, 12:05:11 pm
The small kernel shouldn't be used, it's just the bare minimum to boot up.