Difference between revisions of "83Plus:Hooks:9B84"
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
− | '''Name:''' | + | '''Name:''' Raw Key ''(has had other names proposed, which are discouraged -- see notes below.)'' |
− | '''Hook Pointer Block Address:''' [[83Plus:RAM: | + | '''Hook Pointer Block Address:''' [[83Plus:RAM:9B84|9B84]] |
− | '''Hook Enable BCALL:''' [[83Plus:BCALLs: | + | '''Hook Enable BCALL:''' [[83Plus:BCALLs:4F66|4F66]] |
− | '''Hook Disable BCALL:''' [[83Plus:BCALLs: | + | '''Hook Disable BCALL:''' [[83Plus:BCALLs:4F6F|4F6F]] |
− | '''Hook Call BCALL:''' [[83Plus:BCALLs: | + | '''Hook Call BCALL:''' [[83Plus:BCALLs:4F5D|4F5D]] |
− | '''Hook Active Flag:''' | + | '''Hook Active Flag:''' 5, (iy + 34h) |
This hook allows you to change the values that [[83Plus:BCALLs:4972|GetKey]] returns. | This hook allows you to change the values that [[83Plus:BCALLs:4972|GetKey]] returns. | ||
== Using the Hook == | == Using the Hook == | ||
− | + | ||
− | + | This hook is called any time a key is accepted by _GetKey. It is called for kOff only if bit [[83Plus:Flags:28#Bit_7|7,(iy+28h)]] is set. | |
− | + | ||
− | + | * A = keycode; ([[83Plus:RAM:8446|keyExtend]]) = extended keycode | |
− | * | + | ** You can modify these values to change the key that is "pressed." |
− | ** | + | * Return with Z set if the keypress should be ignored. |
− | * | + | |
− | + | ||
== Comments == | == Comments == | ||
− | This hook | + | This hook is one of the four "official" hooks defined in ti83plus.inc. However, it appears that someone at TI made a mistake in adding its address, because it does not in fact have anything to do with "raw" keys. It has been suggested that this was intended to be called the "GetKey" hook. To avoid the possible confusion, the name "Raw Key" should be used nevertheless. |
== Credits and Contributions == | == Credits and Contributions == | ||
− | * | + | * Texas Instruments |
Revision as of 21:36, 27 March 2005
Synopsis
Name: Raw Key (has had other names proposed, which are discouraged -- see notes below.)
Hook Pointer Block Address: 9B84
Hook Enable BCALL: 4F66
Hook Disable BCALL: 4F6F
Hook Call BCALL: 4F5D
Hook Active Flag: 5, (iy + 34h)
This hook allows you to change the values that GetKey returns.
Using the Hook
This hook is called any time a key is accepted by _GetKey. It is called for kOff only if bit 7,(iy+28h) is set.
- A = keycode; (keyExtend) = extended keycode
- You can modify these values to change the key that is "pressed."
- Return with Z set if the keypress should be ignored.
Comments
This hook is one of the four "official" hooks defined in ti83plus.inc. However, it appears that someone at TI made a mistake in adding its address, because it does not in fact have anything to do with "raw" keys. It has been suggested that this was intended to be called the "GetKey" hook. To avoid the possible confusion, the name "Raw Key" should be used nevertheless.
Credits and Contributions
- Texas Instruments