<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<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=219.83.17.14</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=219.83.17.14"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Special:Contributions/219.83.17.14"/>
		<updated>2026-04-20T21:28:39Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:404B</id>
		<title>83Plus:BCALLs:404B</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:404B"/>
				<updated>2006-02-23T06:08:30Z</updated>
		
		<summary type="html">&lt;p&gt;219.83.17.14: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:83Plus:BCALLs:By Name:Monitor|AppInit]] [[Category:83Plus:BCALLs:By Name:Utility|AppInit]] [[Category:83Plus:BCALLs:By Name|AppInit]] [[Category:83Plus:BCALLs:By Address|404B - AppInit]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Official Name:''' AppInit&lt;br /&gt;
&lt;br /&gt;
'''BCALL Address:''' 404B&lt;br /&gt;
&lt;br /&gt;
Sets the context vector table so an application can receive various notifications from the OS.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* HL=address of custom vector table to copy&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* [[83Plus:RAM:858D|cxMain]] and the 6 vectors that follow&lt;br /&gt;
* [[83Plus:RAM:8599|cxPage]] is set to the current page of the app&lt;br /&gt;
* [[83Plus:Flags:0D|(iy+appFlags)]] is set to the 15th byte of the table&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* HL, A, DE&lt;br /&gt;
&lt;br /&gt;
=== Comments ===&lt;br /&gt;
Typically this routine is called at the start of an application so that the application can receive events and react appropriately.  If this routine is used, it is also important to call [[83Plus:BCALLs:4C36|ReloadAppEntryVecs]] before exiting the app.  Failing to do so will likely result in a crash.&lt;br /&gt;
&lt;br /&gt;
This copies 14 bytes from the address indicated in HL to [[83Plus:RAM:858D|cxMain]], an additional byte to [[83Plus:Flags:0D|(iy+appFlags)]], then stores the page number obtained from Port 6 into [[83Plus:RAM:8599|cxPage]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 &lt;br /&gt;
 ld hl,vectorTable&lt;br /&gt;
 B_CALL appInit&lt;br /&gt;
 ;....&lt;br /&gt;
&lt;br /&gt;
 vectorTable:&lt;br /&gt;
 ;NOTE: you must define the following routines yourself.  If you have no need for such routines,&lt;br /&gt;
 ;then simply point these vectors to a dummy return.&lt;br /&gt;
 dw cxMainHandler     ;usually handles keys&lt;br /&gt;
 dw cxPPutAwayHandler ;Partial put away, this should be used to clean when exiting edit buffers&lt;br /&gt;
 dw cxPutAwayHandler  ;Put away, this should be used to clean up just before exiting an app.  &lt;br /&gt;
                      ;Usually in response to OFF or 2nd+quit.&lt;br /&gt;
 dw cxRedispHandler   ;Redisplay the application's screen.&lt;br /&gt;
 dw cxErrorEPHandler  ;This can be used to process errors before error handlers set up by AppOnErr&lt;br /&gt;
 dw cxSizeWindHandler ;Window size change notification.  For example, rcl has been activated.&lt;br /&gt;
 db 0                 ;value to be copied to (iy+appFlags)&lt;/div&gt;</summary>
		<author><name>219.83.17.14</name></author>	</entry>

	</feed>