#include "os.h" static unsigned chineese1_addrs[] = {0x0, 0x0, 0x10AADABC, 0x10B09ABC}; #define chineese1 ((unsigned *)nl_osvalue((int*)chineese1_addrs, 4)) static unsigned chineese2_addrs[] = {0x0, 0x0, 0x100B1024, 0x100B130C}; #define chineese2 ((unsigned *)nl_osvalue((int*)chineese2_addrs, 4)) static char *title = "cx2cxc"; static char *okinfo = "CX OS patched to CX-C. Your TI-Nspire CX will behave like a TI-Nspire CX-C until the next reboot. Move this patching program to the Ndless startup folder to make this permanent."; static char *errinfo = "Unsupported non-CX OS..."; void main() { if(is_cx) { *(chineese1) = 1; *(chineese2) = 0xE2506001; } if(!nl_isstartup()) { if(is_cx) show_msgbox(title, okinfo); else show_msgbox(title, errinfo); } }