<?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_Initialize</id>
		<title>83Plus:Software:usb8x/Asm Interface/MSD/MSD Initialize - 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_Initialize"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Software:usb8x/Asm_Interface/MSD/MSD_Initialize&amp;action=history"/>
		<updated>2026-06-12T08:19:37Z</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_Initialize&amp;diff=5049&amp;oldid=prev</id>
		<title>Brandonw at 07:22, 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_Initialize&amp;diff=5049&amp;oldid=prev"/>
				<updated>2006-08-17T07:22:55Z</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_Initialize&lt;br /&gt;
&lt;br /&gt;
'''Minimum usb8x version:''' 0.10&lt;br /&gt;
&lt;br /&gt;
Initializes the USB mass storage device.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* HL points to a buffer for internal use (typically 254 bytes)&lt;br /&gt;
* DE points to a sector buffer (typically 512 bytes)&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* C set if problems&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* AF, BC, DE, HL&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The exact sizes of each memory buffer can be obtained with the [[../MSDVersion|MSDVersion]] entry point. They will conveniently fit in a 768-byte buffer such as appBackUpScreen. However, it can be allocated dynamically (in this example with appBackUpScreen) as follows:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 U_CALL MSDVersion&lt;br /&gt;
 ld de,appBackUpScreen&lt;br /&gt;
 push de&lt;br /&gt;
 add hl,de&lt;br /&gt;
 ex de,hl&lt;br /&gt;
 pop hl&lt;br /&gt;
 U_CALL MSD_Initialize&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
There are many reasons why this call would fail. offErrorCode will contain a more detailed error code.&lt;/div&gt;</summary>
		<author><name>Brandonw</name></author>	</entry>

	</feed>