Difference between revisions of "83Plus:Hooks:9BB8"

From WikiTI
Jump to: navigation, search
 
Line 1: Line 1:
'''Note:''' Do not take the information on this template page as actual documentation!
 
 
The Hooks are named by their hook pointer block address (the four bytes consisting of page, address, and an extra byte), in hexadecimal. An example is [[83Plus:Hooks:9B84]].
 
 
----
 
 
 
== Synopsis ==
 
== Synopsis ==
'''Name:''' ImAHook
+
'''Name:''' Help Hook
  
'''Hook Pointer Block Address:''' [[83Plus:RAM:8562|8562]]
+
'''Hook Pointer Block Address:''' [[83Plus:RAM:9BB8|9BB8]]
  
'''Hook Enable BCALL:''' [[83Plus:BCALLs:1234|1234]]
+
'''Hook Enable BCALL:''' [[83Plus:BCALLs:504A|504A]]
  
'''Hook Disable BCALL:''' [[83Plus:BCALLs:5678|5678]]
+
'''Hook Disable BCALL:''' [[83Plus:BCALLs:504D|504D]]
  
'''Hook Call BCALL:''' [[83Plus:BCALLs:9012|9012]]
+
'''Hook Call BCALL:''' ''(none known)''
  
'''Hook Active Flag:''' 6, (iy + 23h)
+
'''Hook Active Flag:''' [[83Plus:Flags:36#Bit_4|4, (iy + 36h)]]
  
This hook allows you to change the values that [[83Plus:BCALLs:4972|GetKey]] returns.
+
This hook is called when a key is pressed at the Mode screen or in a system menu, as well as at Mode screen startup.
  
 
== Using the Hook ==
 
== Using the Hook ==
These different values, passed in a, determines what the hook should do.
+
These different values, passed in A, determine what the hook should do.
* 1: The calculator just turned on. There seem to be no other values passed to the hook.
+
* 1: A key was pressed in a menu
* 2: The calculator is computing 1+1.
+
** B = keycode
** b: 1
+
* 3: At the mode screen
** c: 1
+
** B = kMode at startup
** Change b and/or c to affect the output of the problem (which will still look like 1+1 to the user).
+
** B = kApp when the Mode key is pressed
* 3: Preparing to turn off due to 2nd+OFF.
+
** B = keycode for other keys
** Zero flag: Clear to abort the power off.
+
  
 
== Comments ==
 
== Comments ==
This hook doesn't exist. This is a demonstration only.
+
This hook has been referred to as the Mode hook, but the only app to use it (Catalog Help) has nothing to do with the Mode screen.
 
+
== Credits and Contributions ==
+
* '''/dev/hda1:''' My favorite hard drive partition.
+

Revision as of 00:11, 28 March 2005

Synopsis

Name: Help Hook

Hook Pointer Block Address: 9BB8

Hook Enable BCALL: 504A

Hook Disable BCALL: 504D

Hook Call BCALL: (none known)

Hook Active Flag: 4, (iy + 36h)

This hook is called when a key is pressed at the Mode screen or in a system menu, as well as at Mode screen startup.

Using the Hook

These different values, passed in A, determine what the hook should do.

  • 1: A key was pressed in a menu
    • B = keycode
  • 3: At the mode screen
    • B = kMode at startup
    • B = kApp when the Mode key is pressed
    • B = keycode for other keys

Comments

This hook has been referred to as the Mode hook, but the only app to use it (Catalog Help) has nothing to do with the Mode screen.