Difference between revisions of "Hooks Template"

From WikiTI
Jump to: navigation, search
 
m (changed register 'a' to lower case)
Line 12: Line 12:
  
 
=== Hook Functions ===
 
=== Hook Functions ===
These different values, passed in A, determines what the hook should do.
+
These different values, passed in a, determines what the hook should do.
 
* 1: The calculator just turned on. There seem to be no other values passed to the hook.
 
* 1: The calculator just turned on. There seem to be no other values passed to the hook.
 
* 2: The calculator is computing 1+1.
 
* 2: The calculator is computing 1+1.

Revision as of 19:40, 26 March 2005

Synopsis

Official (TI) Name: ImAHookWithABadName

Unofficial (better) Name: ABetterNameForMe

Hook Pointer Block Address: 8562h

Hook Active Flag: 6, (iy+23h)

This hook allows you to change the values that GetKey returns.

Hook Functions

These different values, passed in a, determines what the hook should do.

  • 1: The calculator just turned on. There seem to be no other values passed to the hook.
  • 2: The calculator is computing 1+1.
    • b: 1
    • c: 1
    • Change b and/or c to affect the output of the problem (which will still look like 1+1 to the user).
  • 3: Preparing to turn off due to 2nd+OFF.
    • Zero flag: Clear to abort the power off.

Comments

This hook doesn't exist. This is a demonstration only.

Credits and Contributions

  • /dev/hda1: My favorite hard drive partition.