Omnimaga
Calculator Community => TI Calculators => ASM => Topic started 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
-
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
-
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
-
Looks like I need to do a lot of learning and write my own... *sets off to learn*
-
Quite a bunch of people will thank you very hard if you make an actual assembler :P
-
How hard would it be to port GCC for the purposes of using its inline assembler?
-
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?
-
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.
-
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?
-
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.
-
The small kernel shouldn't be used, it's just the bare minimum to boot up.