Author Topic: Adding CAS to Ti-nspire Touchpad?  (Read 9686 times)

0 Members and 1 Guest are viewing this topic.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Adding CAS to Ti-nspire Touchpad?
« Reply #15 on: August 16, 2011, 12:38:03 pm »
Ithink it overwrites it, so when you reboot, the normal OS is there.
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Adding CAS to Ti-nspire Touchpad?
« Reply #16 on: August 16, 2011, 02:05:57 pm »
Yes, OSLauncher overwrites the original OS in RAM. The core functionality of OSLauncher boils down to five C statements, one of which may be superfluous:
Code: [Select]
   *((uint32_t *)0xDC00000C) = 0xFFFFFFFF;
    __builtin_memcpy((void *)0x10000000, dest, ziphdr.usize);
    __builtin_memcpy((void *)0x00000000, (void *)0x10000000, 0x40);
    *((uint32_t *)0xC000001C) &= ~((1 << 0) | (1 << 11));
    asm volatile(
    ".arm \n"
    "mov lr, pc\n"
    "ldr pc, =0x10000000\n"
    );
« Last Edit: August 16, 2011, 02:06:28 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.