<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikiti.brandonw.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HQAT</id>
	<title>WikiTI - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HQAT"/>
	<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php/Special:Contributions/HQAT"/>
	<updated>2026-11-20T10:17:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B8C&amp;diff=6133</id>
		<title>83Plus:Hooks:9B8C</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B8C&amp;diff=6133"/>
		<updated>2008-02-26T13:41:51Z</updated>

		<summary type="html">&lt;p&gt;HQAT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:83Plus:Hooks:By_Name|Homescreen Hook]] [[Category:83Plus:Hooks:By_Address|9B8C - Homescreen Hook]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&#039;&#039;&#039;Name:&#039;&#039;&#039; Homescreen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Pointer Block Address:&#039;&#039;&#039; [[83Plus:RAM:9B8C|9B8C]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Enable BCALL:&#039;&#039;&#039; [[83Plus:BCALLs:4FAB|4FAB]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Disable BCALL:&#039;&#039;&#039; [[83Plus:BCALLs:4FAE|4FAE]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Call BCALL:&#039;&#039;&#039; &#039;&#039;(none known)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Active Flag:&#039;&#039;&#039; [[83Plus:Flags:34#Bit_4|4, (iy + 34h)]]&lt;br /&gt;
&lt;br /&gt;
This hook is called when various events occur on the homescreen.&lt;br /&gt;
&lt;br /&gt;
== Using the Hook ==&lt;br /&gt;
These different values, passed in A, determine what the hook should do.&lt;br /&gt;
* 0: The calculator is displaying a result.&lt;br /&gt;
** [[83Plus:RAM:8478|OP1]] = the value to display&lt;br /&gt;
** You can change the value in OP1 to display something different, which will not affect the value stored to Ans.&lt;br /&gt;
** If you want to display something wider than the screen, you must also write the formatted string to [[83Plus:RAM:97B1|fmtString]].&lt;br /&gt;
** Return NZ and TIOS will not display anything.&lt;br /&gt;
* 1: A key was pressed at the homescreen.&lt;br /&gt;
** B = keycode&lt;br /&gt;
** Change B to change the key that appears to be pressed.&lt;br /&gt;
** Return NZ to ignore the keypress.&lt;br /&gt;
* 2: An expression was entered to be evaluated.&lt;br /&gt;
** OP1 contains prgm!.&lt;br /&gt;
** To retreive the expression to be evaluated use prgm#.&lt;br /&gt;
** Return NZ to cancel running the program.&lt;br /&gt;
* 3: Changing context to the homescreen.&lt;br /&gt;
** B = previous context value&lt;br /&gt;
** You should always return Z in this case.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following code will display a random number as the result of any calculation.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;HomescreenHook:&lt;br /&gt;
        .db 83h             ; Required for all hooks&lt;br /&gt;
        or a                ; are we in condition 0 (display value?)&lt;br /&gt;
        jr nz,ReturnZ&lt;br /&gt;
        B_CALL Random      ; change our output value to a random #&lt;br /&gt;
ReturnZ:&lt;br /&gt;
        cp a                ; set zero condition&lt;br /&gt;
        ret&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Credits and Contributions ==&lt;br /&gt;
* &#039;&#039;&#039;Michael Vincent:&#039;&#039;&#039; Analysis and writing the most amazingly cool homescreen hacks I&#039;ve seen yet.&lt;/div&gt;</summary>
		<author><name>HQAT</name></author>
	</entry>
	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B8C&amp;diff=6132</id>
		<title>83Plus:Hooks:9B8C</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B8C&amp;diff=6132"/>
		<updated>2008-02-26T13:23:28Z</updated>

		<summary type="html">&lt;p&gt;HQAT: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:83Plus:Hooks:By_Name|Homescreen Hook]] [[Category:83Plus:Hooks:By_Address|9B8C - Homescreen Hook]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
&#039;&#039;&#039;Name:&#039;&#039;&#039; Homescreen&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Pointer Block Address:&#039;&#039;&#039; [[83Plus:RAM:9B8C|9B8C]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Enable BCALL:&#039;&#039;&#039; [[83Plus:BCALLs:4FAB|4FAB]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Disable BCALL:&#039;&#039;&#039; [[83Plus:BCALLs:4FAE|4FAE]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Call BCALL:&#039;&#039;&#039; &#039;&#039;(none known)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Hook Active Flag:&#039;&#039;&#039; [[83Plus:Flags:34#Bit_4|4, (iy + 34h)]]&lt;br /&gt;
&lt;br /&gt;
This hook is called when various events occur on the homescreen.&lt;br /&gt;
&lt;br /&gt;
== Using the Hook ==&lt;br /&gt;
These different values, passed in A, determine what the hook should do.&lt;br /&gt;
* 0: The calculator is displaying a result.&lt;br /&gt;
** [[83Plus:RAM:8478|OP1]] = the value to display&lt;br /&gt;
** You can change the value in OP1 to display something different, which will not affect the value stored to Ans.&lt;br /&gt;
** If you want to display something wider than the screen, you must also write the formatted string to [[83Plus:RAM:97B1|fmtString]].&lt;br /&gt;
** Return NZ and TIOS will not display anything.&lt;br /&gt;
* 1: A key was pressed at the homescreen.&lt;br /&gt;
** B = keycode&lt;br /&gt;
** Change B to change the key that appears to be pressed.&lt;br /&gt;
** Return NZ to ignore the keypress.&lt;br /&gt;
* 2: An expression was entered to be evaluated.&lt;br /&gt;
** OP1 contains the name of the entry, prgm#.&lt;br /&gt;
** To retreive the expression to be evaluated use prgm!.&lt;br /&gt;
** Return NZ to cancel running the program.&lt;br /&gt;
* 3: Changing context to the homescreen.&lt;br /&gt;
** B = previous context value&lt;br /&gt;
** You should always return Z in this case.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following code will display a random number as the result of any calculation.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;HomescreenHook:&lt;br /&gt;
        .db 83h             ; Required for all hooks&lt;br /&gt;
        or a                ; are we in condition 0 (display value?)&lt;br /&gt;
        jr nz,ReturnZ&lt;br /&gt;
        B_CALL Random      ; change our output value to a random #&lt;br /&gt;
ReturnZ:&lt;br /&gt;
        cp a                ; set zero condition&lt;br /&gt;
        ret&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Credits and Contributions ==&lt;br /&gt;
* &#039;&#039;&#039;Michael Vincent:&#039;&#039;&#039; Analysis and writing the most amazingly cool homescreen hacks I&#039;ve seen yet.&lt;/div&gt;</summary>
		<author><name>HQAT</name></author>
	</entry>
</feed>