<?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/index.php?action=history&amp;feed=atom&amp;title=83Plus%3ABCALLs%3A4024</id>
		<title>83Plus:BCALLs:4024 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=83Plus%3ABCALLs%3A4024"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4024&amp;action=history"/>
		<updated>2026-05-21T04:14:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4024&amp;diff=8591&amp;oldid=prev</id>
		<title>FloppusMaximus: New page: SendKPress SendKPress 4024 - SendKPress == Synopsis == '''Official Name:...</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4024&amp;diff=8591&amp;oldid=prev"/>
				<updated>2009-09-24T00:52:07Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/index.php?title=Category:83Plus:BCALLs:By_Name:Monitor&quot; title=&quot;Category:83Plus:BCALLs:By Name:Monitor&quot;&gt;SendKPress&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:83Plus:BCALLs:By_Name&quot; title=&quot;Category:83Plus:BCALLs:By Name&quot;&gt;SendKPress&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:83Plus:BCALLs:By_Address&quot; title=&quot;Category:83Plus:BCALLs:By Address&quot;&gt;4024 - SendKPress&lt;/a&gt; == Synopsis == &amp;#039;&amp;#039;&amp;#039;Official Name:...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:83Plus:BCALLs:By Name:Monitor|SendKPress]] [[Category:83Plus:BCALLs:By Name|SendKPress]] [[Category:83Plus:BCALLs:By Address|4024 - SendKPress]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Official Name:''' SendKPress&lt;br /&gt;
&lt;br /&gt;
'''BCALL Address:''' 4024&lt;br /&gt;
&lt;br /&gt;
Calls the system monitor but allows the programmer to push an initial key through [[83Plus:RAM:858D|cxMain]].  This is very much like [[83Plus:BCALLs:401E|Mon]] and [[83Plus:BCALLs:4021|MonForceKey]].&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* A = initial key press to simulate&lt;br /&gt;
* [[83Plus:Flags:28|AppAllowContext, (IY + APIFlg)]] = 1 to allow Mon to pass context keys, like kYequ to the cxMain routine.&lt;br /&gt;
* [[83Plus:Flags:0C|CurLock, (IY + curFlags)]] = 1 to lock the cursor off&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* none&lt;br /&gt;
&lt;br /&gt;
=== Registers Destroyed ===&lt;br /&gt;
* Doesn't matter because it doesn't return&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
This routine is similar to [[83Plus:BCALLs:4021|MonForceKey]], but the initial keypress is passed more-or-less directly to cxMain (whereas MonForceKey passes the keypress to the [[83Plus:Hooks:9B84|raw key hook]], if enabled, and handles the various special keys.)&lt;br /&gt;
&lt;br /&gt;
The system NEVER returns from this B_CALL.  The programmer should find alternative methods of regaining control and exiting such as hooks, cxMain, etc.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
To simulate a key press by the user when first entering the system monitor:&lt;br /&gt;
&lt;br /&gt;
 ;set up edit buffer&lt;br /&gt;
 ;...&lt;br /&gt;
 ld a,k8&lt;br /&gt;
 B_CALL SendKeyPress  ;should see the number 8 appear in the edit buffer&lt;/div&gt;</summary>
		<author><name>FloppusMaximus</name></author>	</entry>

	</feed>