Difference between revisions of "83Plus:Hooks:9BD4"
From WikiTI
m |
|||
Line 1: | Line 1: | ||
− | + | [[Category:83Plus:Hooks:By_Name|USB Activity Hook]] | |
− | + | [[Category:83Plus:Hooks:By_Address|9BD4 - USB Activity Hook]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== Synopsis == | == Synopsis == | ||
− | '''Name:''' | + | '''Name:''' USB Activity Hook |
− | '''Hook Pointer Block Address:''' [[83Plus:RAM: | + | '''Hook Pointer Block Address:''' [[83Plus:RAM:9BD4|9BD4]] |
− | '''Hook Enable BCALL:''' [[83Plus:BCALLs: | + | '''Hook Enable BCALL:''' [[83Plus:BCALLs:528A|528A]] |
− | '''Hook Disable BCALL:''' [[83Plus:BCALLs: | + | '''Hook Disable BCALL:''' [[83Plus:BCALLs:528D|528D]] |
− | '''Hook Call BCALL:''' | + | '''Hook Call BCALL:''' ''(none known)'' |
− | '''Hook Active Flag:''' | + | '''Hook Active Flag:''' [[83Plus:Flags:3A#Bit_0|0, (iy+3Ah)]] |
− | This hook | + | This hook is called from the interrupt routine when USB activity is detected. |
== Using the Hook == | == Using the Hook == | ||
− | + | * The hook is called whenever any of bits 4-0 of [[83Plus:Ports:55|port 55h]] are low. | |
− | * | + | ** C holds the complement of these bits. |
− | + | * B always contains the constant 2Ch. | |
− | + | * Return with B=0 to abort linking, similar to the [[83Plus:Hooks:9BD0|silent link hook]]. | |
− | + | ||
− | ** | + | |
− | * | + | |
− | * | + | |
== Comments == | == Comments == | ||
− | This hook | + | This hook was introduced in OS 2.30. Apps should check the OS version before attempting to use this hook. |
== Credits and Contributions == | == Credits and Contributions == | ||
− | * ''' | + | * '''84plusfreak''' -- sorry, I don't know your real name -- discovered and analyzed this hook. |
Revision as of 09:20, 28 March 2005
Synopsis
Name: USB Activity Hook
Hook Pointer Block Address: 9BD4
Hook Enable BCALL: 528A
Hook Disable BCALL: 528D
Hook Call BCALL: (none known)
Hook Active Flag: 0, (iy+3Ah)
This hook is called from the interrupt routine when USB activity is detected.
Using the Hook
- The hook is called whenever any of bits 4-0 of port 55h are low.
- C holds the complement of these bits.
- B always contains the constant 2Ch.
- Return with B=0 to abort linking, similar to the silent link hook.
Comments
This hook was introduced in OS 2.30. Apps should check the OS version before attempting to use this hook.
Credits and Contributions
- 84plusfreak -- sorry, I don't know your real name -- discovered and analyzed this hook.