83Plus:BCALLs:52F9

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: RemoveAppRestrictions

BCALL Address: 52F9

Minimum OS Version: 2.40

Disable specified "TestGuard 2" app/program restrictions.

Inputs

  • A = 1: enable all apps
  • A = 2: enable programs
  • A = 3: enable programs and all apps

Outputs

None

Destroys

  • AF, BC, DE, HL
  • OP1-OP2, ramCode, probably other areas

Comments

If the permission bitmap would not be modified, this routine does nothing. Otherwise, the certificate sectors will be swapped.

This is not something you want to be doing every 5 minutes, as it may wear out the Flash chip over time. You probably shouldn't use this for a password-protection system.

Using option 1 and then option 2, or vice versa, will swap the sectors twice, while using option 3 will only swap them once.