<?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%3ASoftware%3Ausb8x%2FAsm_Interface%2FMSD%2FMSD_ExportVariable</id>
		<title>83Plus:Software:usb8x/Asm Interface/MSD/MSD ExportVariable - 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%3ASoftware%3Ausb8x%2FAsm_Interface%2FMSD%2FMSD_ExportVariable"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Software:usb8x/Asm_Interface/MSD/MSD_ExportVariable&amp;action=history"/>
		<updated>2026-04-08T16:53:07Z</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:Software:usb8x/Asm_Interface/MSD/MSD_ExportVariable&amp;diff=5091&amp;oldid=prev</id>
		<title>Brandonw at 19:50, 17 August 2006</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Software:usb8x/Asm_Interface/MSD/MSD_ExportVariable&amp;diff=5091&amp;oldid=prev"/>
				<updated>2006-08-17T19:50:21Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Synopsis ==&lt;br /&gt;
'''Name:''' MSD_ExportVariable&lt;br /&gt;
&lt;br /&gt;
'''Minimum usb8x version:''' 0.10&lt;br /&gt;
&lt;br /&gt;
Exports variable in RAM/Flash to specified directory as *.8x* file.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* (OP1) contains type of variable to export&lt;br /&gt;
* OP1+1 contains ASCIIZ string of variable name to export (identical to format for _ChkFindSym, etc.)&lt;br /&gt;
* HL points to an ASCIIZ string of directory path to export variable to&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* *.8x* file of proper name and type is created in specified directory&lt;br /&gt;
* C set if problems&lt;br /&gt;
* Returns C set if duplicate variable was found in specified directory&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* AF, BC, DE, HL&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Example code to export prgmGAME to the root directory:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 B_CALL ZeroOP1&lt;br /&gt;
 ld hl,sVarName&lt;br /&gt;
 rst 20h&lt;br /&gt;
 ld hl,sDirectory&lt;br /&gt;
 U_CALL MSD_ExportVariable&lt;br /&gt;
 ...&lt;br /&gt;
 sVarName: DB ProgObj,&amp;quot;GAME&amp;quot;,0&lt;br /&gt;
 sDirectory: DB &amp;quot;/&amp;quot;,0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
If you are writing an application, you must copy the strings you use to RAM first, or else usb8x will not be able to see them.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[../MSD_ImportVariable|MSD_ImportVariable]] - Import *.8x* file in specified directory to RAM/Flash as variable&lt;/div&gt;</summary>
		<author><name>Brandonw</name></author>	</entry>

	</feed>