π
<-
Chat plein-écran
[^]

Patching 4.4.0.532 CAS to run on Non-CAS

C, C++, ASM...

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby Lionel Debroux » 03 Feb 2017, 16:50

Up to OS 3.6, such trick didn't seem to cause any problem.

Maybe it didn't at some point later, but I remember from the OSLauncher era that it definitely did on OS 1.7.2741.
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 5.8%
 
Posts: 6443
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
Class: -
GitHub: debrouxl

Online

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby critor » 03 Feb 2017, 17:01

Ah... no sorry in fact it doesn't work here.

Although the OS seems to work, trying to calculate anything just reboots the calculator. :P

Either I made a mistake...
Either there is another CAS/non-CAS protection...
Either it's because I have the non-CAS resource files installed, but in that case it's something relatively new - added since OS 3.6.

Having patches for 3.9-4.3 OSes would surely help to understand.


Check with your patched Nlaunchy if you can really calculate things.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 3.5%
 
Posts: 34951
Images: 9323
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
Class: Lycée
YouTube: critor3000
Twitter: critor2000
Facebook: critor.ti

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 03 Feb 2017, 18:53

critor wrote:Ah... no sorry in fact it doesn't work here.

Although the OS seems to work, trying to calculate anything just reboots the calculator. :P

Either I made a mistake...
Either there is another CAS/non-CAS protection...
Either it's because I have the non-CAS resource files installed, but in that case it's something relatively new - added since OS 3.6.

Having patches for 3.9-4.3 OSes would surely help to understand.


Check with your patched Nlaunchy if you can really calculate things.


There is another protection. EIGHT others. All checks of 900a002c in subtly different ways so you CAN'T patch them with one patch. There's a different one for the scratchpad vs saved documents!

Edit: I just wanted to tell you about this cool site

http://armconverter.com/
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 70.7%
 
Posts: 742
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Online

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby critor » 03 Feb 2017, 19:27

parrotgeek1 wrote:There is another protection. EIGHT others. All checks of 900a002c in subtly different ways so you CAN'T patch them with one patch. There's a different one for the scratchpad vs saved documents!

Ah, great... :P

I was testing in the scratchpad.
But I've just checked and calculations are also crashing in real documents.

8 protections... so TI really doesn't want CAS on non-CAS.
Maybe there will be fewer protections in versions 4.3-3.6.
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 3.5%
 
Posts: 34951
Images: 9323
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
Class: Lycée
YouTube: critor3000
Twitter: critor2000
Facebook: critor.ti

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 03 Feb 2017, 19:52

critor wrote:
parrotgeek1 wrote:There is another protection. EIGHT others. All checks of 900a002c in subtly different ways so you CAN'T patch them with one patch. There's a different one for the scratchpad vs saved documents!

Ah, great... :P

I was testing in the scratchpad.
But I've just checked and calculations are also crashing in real documents.

8 protections... so TI really doesn't want CAS on non-CAS.
Maybe there will be fewer protections in versions 4.3-3.6.

There are actually 132 protections! But, there are only 4 kinds of protection. Maybe I could patch them automatically.

TYpe 1 with reading dword_114a2ad8:

ldr r3, [r6,#0x2c]
sub sp, sp, #8
tst r3, #0x40000000

1087d2b0 1087d670 1087d2ac 1087d66c 10887758 10894ecc 10894f70

Type 2 with bne directly and mov r0,0xffffffff and sub_103ab408

1087da38 1087f1d8 1087f238 1087f298 1087f3dc 10880968 10880A68

Type 3 (type 1 but with stuff before the beq)

1087db64 1087ddb4 1087e0b0

Type 4 (longer)

1087effc 1087f2fc 10884e7c?
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 70.7%
 
Posts: 742
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 03 Feb 2017, 22:16

update: a very skilled programmer on twitter is helping me automatically find and patch these
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 70.7%
 
Posts: 742
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby Bisam » 03 Feb 2017, 22:49

Are you sure all these are protections ?
The OS might also check if CAS is present when using CAS functions which also can work on non-CAS.
When trying that, it returns a generic message instead of using the CAS version of the function.
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 47.8%
 
Posts: 5446
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 03 Feb 2017, 23:18

Bisam wrote:Are you sure all these are protections ?
The OS might also check if CAS is present when using CAS functions which also can work on non-CAS.
When trying that, it returns a generic message instead of using the CAS version of the function.

Yes I'm sure. The code intentionally reboots the calculator if the check fails. It does nothing else. It's actually mostly identical code repeated over and over
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 70.7%
 
Posts: 742
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

Online

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby critor » 03 Feb 2017, 23:24

parrotgeek1 wrote:update: a very skilled programmer on twitter is helping me automatically find and patch these

Great ! :bj:
An anonymous programmer. ;)

Did you check if there are also hundreds of protections to patch in older OS 3.6-4.3 ?
Image
User avatar
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Level up: 3.5%
 
Posts: 34951
Images: 9323
Joined: 25 Oct 2008, 00:00
Location: Montpellier
Gender: Male
Calculator(s):
Class: Lycée
YouTube: critor3000
Twitter: critor2000
Facebook: critor.ti

Re: Patching 4.4.0.532 CAS to run on Non-CAS

Unread postby parrotgeek1 » 04 Feb 2017, 00:06

critor wrote:
parrotgeek1 wrote:update: a very skilled programmer on twitter is helping me automatically find and patch these

Great ! :bj:
An anonymous programmer. ;)

Did you check if there are also hundreds of protections to patch in older OS 3.6-4.3 ?


Yes in 3.9-4.3. 3.6 is almost working
My Projects:
nLoaderCAS Patcher for ControlXnLaunchy CXM fork (3.9 CAS on B&W) - News ArticleTI-82 Advanced App Installer
Prototypes:
Upgrade EVT Nspire CAS+Fix keyboard on prototype TI-Nspire CAS Touchpad
- Highlights: Nspire CX Non-CAS OS 3.3, CX & CX CAS OS 4.4 & 4.5 special reformatting installers (both found by me on TI's site)
Discoveries:
Boot1.5 vulnerability (used in nLoader) • Nspire dev boardsPink CX
Je peux comprendre le français mais je ne peux pas le parler bien.
User avatar
parrotgeek1Programmeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 70.7%
 
Posts: 742
Joined: 29 Mar 2016, 01:22
Location: USA
Gender: Male
Calculator(s):
Twitter: parrotgeek1
GitHub: parrotgeek1

PreviousNext

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: No registered users and 0 guests

-
Search
-
Featured topics
Omega, le fork étendant les capacités de ta NumWorks, même en mode examen !
Comparaisons des meilleurs prix pour acheter sa calculatrice !
12
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...

Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety 
-
Stats.
455 utilisateurs:
>436 invités
>12 membres
>7 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)