<?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%3A52F6</id>
		<title>83Plus:BCALLs:52F6 - 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%3A52F6"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:52F6&amp;action=history"/>
		<updated>2026-04-05T21:38:48Z</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:52F6&amp;diff=5220&amp;oldid=prev</id>
		<title>FloppusMaximus: Hot off the disassembler!</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:52F6&amp;diff=5220&amp;oldid=prev"/>
				<updated>2006-09-05T23:51:52Z</updated>
		
		<summary type="html">&lt;p&gt;Hot off the disassembler!&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:Other|SetAppRestrictions]] [[Category:83Plus:BCALLs:By_Name|SetAppRestrictions]] [[Category:83Plus:BCALLs:By_Address|52F6 - SetAppRestrictions]]&lt;br /&gt;
== Synopsis ==&lt;br /&gt;
'''Unofficial Name:''' SetAppRestrictions&lt;br /&gt;
&lt;br /&gt;
'''BCALL Address:''' 52F6&lt;br /&gt;
&lt;br /&gt;
'''Minimum OS Version:''' 2.40&lt;br /&gt;
&lt;br /&gt;
Enable specified &amp;quot;TestGuard 2&amp;quot; app/program restrictions.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* A = 0: disable app by name&lt;br /&gt;
** [[83Plus:RAM:8478|OP1]] = name of app to disable&lt;br /&gt;
* A = 1: disable all apps&lt;br /&gt;
* A = 2: disable programs&lt;br /&gt;
* A = 3: disable programs and all apps&lt;br /&gt;
* A = 4: set permission bitmap&lt;br /&gt;
** [[83Plus:RAM:848E|OP3]] (14 bytes) = new bitmap to be ANDed with current bitmap&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* Carry set if A = 0 and the requested app does not exist&lt;br /&gt;
* Otherwise, carry reset, regardless of the effect or lack thereof&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* AF, BC, DE, HL&lt;br /&gt;
* OP1-OP2, ramCode, probably other areas&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
Note that this routine is cannot remove restrictions, only create them.&lt;br /&gt;
&lt;br /&gt;
The permission bitmap, used by the A = 4 option, is fourteen bytes and is arranged as follows:&lt;br /&gt;
&lt;br /&gt;
* Byte 0, bit 0 is reset to disable execution and editing of both BASIC and assembly programs in the OS.&lt;br /&gt;
* The remaining bits of byte 0 appear to be unused, but might be used in the future for other global permission states.&lt;br /&gt;
* Byte ''a'', bit ''b'' (''a'' &amp;gt; 0) is reset to disable execution of the application with base page 8''a''+''b''.  (In other words, the pages are given in &amp;quot;memory order,&amp;quot; rather than &amp;quot;installation order&amp;quot; as with the app presence bitmap.)&lt;br /&gt;
* The last 8 bytes are unused on the 84+ BE (but the corresponding bytes of OP3 are still copied to the certificate.)&lt;br /&gt;
&lt;br /&gt;
Remember that you can clear all restrictions by receiving any file over the link, or by manually sending a file.&lt;/div&gt;</summary>
		<author><name>FloppusMaximus</name></author>	</entry>

	</feed>