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

From WikiTI
Jump to: navigation, search
 
Line 12: Line 12:
 
'''Hook Active Flag:''' 0, (iy + 36h)
 
'''Hook Active Flag:''' 0, (iy + 36h)
  
This hook allows you to change the values that [[83Plus:BCALLs:4972|GetKey]] returns.
+
This hook allows you to change the actions that happen when tracing a graph.
  
 
== Using the Hook ==
 
== Using the Hook ==
 
These different values, passed in a, determines what the hook should do.
 
These different values, passed in a, determines what the hook should do.
* 0: Unknown what this is used for, but it's called between the a=1 and a=4 hookcalls and the b register contains y1=01 .. y0=0A or x1=01.. x6=06 or r1=01 .. r6=06 or u=01 .. w=03.
+
* 0: Unknown what this is used for, but it's called between the a=1 and a=4 hookcalls.
 +
** b: contains the function that will be graphed y1=01 .. y0=0A or x1=01.. x6=06 or r1=01 .. r6=06 or u=01 .. w=03.
 
* 1: The trace cursor will move.
 
* 1: The trace cursor will move.
 
** Zero flag: clear to abort the move.
 
** Zero flag: clear to abort the move.

Revision as of 02:28, 28 March 2005

Synopsis

Name: Trace Hook

Hook Pointer Block Address: 9BA8

Hook Enable BCALL: 4FF3

Hook Disable BCALL: 4FF6

Hook Call BCALL: None known

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

This hook allows you to change the actions that happen when tracing a graph.

Using the Hook

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

  • 0: Unknown what this is used for, but it's called between the a=1 and a=4 hookcalls.
    • b: contains the function that will be graphed y1=01 .. y0=0A or x1=01.. x6=06 or r1=01 .. r6=06 or u=01 .. w=03.
  • 1: The trace cursor will move.
    • Zero flag: clear to abort the move.
  • 2: The trace cursor wants to move outside the screen and thus the graph will be (partially) redrawn.
  • 3: The trace cursor blinks.
    • Zero flag: Clear to stop the blinking
  • 4: The trace cursor is (re)drawn
    • Zero flag: Clear to abort the drawing of the cursor. (The blinking pixel in the middle will still blink at the position the cursor wasn't drawn)

Comments

This documentation is probably incomplete.