Difference between revisions of "Hooks Template"
From WikiTI
m (added ", in hexadecimal") |
(Changed some links and added bcalls for set, reset, and call) |
||
Line 6: | Line 6: | ||
== Synopsis == | == Synopsis == | ||
− | '''Official | + | '''Official Name:''' ImAHookWithABadName |
− | '''Unofficial | + | '''Unofficial Name:''' ABetterNameForMe |
− | '''Hook Pointer Block Address:''' | + | '''Hook Pointer Block Address:''' [[83Plus:RAM:8562|8562]] |
+ | |||
+ | '''Hook Enable BCALL:''' [[83Plus:BCALLs:1234|1234]] | ||
+ | |||
+ | '''Hook Disable BCALL:''' [[83Plus:BCALLs:5678|5678]] | ||
+ | |||
+ | '''Hook Call BCALL:''' [[83Plus:BCALLs:9012|9012]] | ||
'''Hook Active Flag:''' 6, (iy+23h) | '''Hook Active Flag:''' 6, (iy+23h) | ||
<!-- need to change that to a linked example once we figure out how we're doing that --> | <!-- need to change that to a linked example once we figure out how we're doing that --> | ||
− | This hook allows you to change the values that [[83Plus:BCALLs: | + | This hook allows you to change the values that [[83Plus:BCALLs:4972|GetKey]] returns. |
=== Hook Functions === | === Hook Functions === |
Revision as of 19:02, 27 March 2005
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
Official Name: ImAHookWithABadName
Unofficial Name: ABetterNameForMe
Hook Pointer Block Address: 8562
Hook Enable BCALL: 1234
Hook Disable BCALL: 5678
Hook Call BCALL: 9012
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.