<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: HC12 Read String or Char</title>
	<atom:link href="http://www.zxcdev.com/2010/04/hc12-read-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zxcdev.com/2010/04/hc12-read-string/</link>
	<description>Enveloped by Code</description>
	<lastBuildDate>Thu, 28 Jul 2011 22:52:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Shawn</title>
		<link>http://www.zxcdev.com/2010/04/hc12-read-string/comment-page-1/#comment-6</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Tue, 13 Apr 2010 23:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.zxcdev.com/?p=51#comment-6</guid>
		<description>I am assuming you want to use something like an &quot;MD&quot; Memory Display in your code. I haven&#039;t done this myself but I would venture to guess you could acheve this in one of two ways.
&lt;pre lang=&quot;C&quot;&gt;
typedef void(*protoMemoryDisplay)(void*,void* = 0);
protoMemoryDisplay MemoryDisplay = (protoMemoryDisplay)(0xC9B6);
MemoryDisplay((void*)0x4000,(void*)0x4400);
&lt;/pre&gt;
OR
&lt;pre lang=&quot;ASM&quot;&gt;
ldab	4000
jsr	C9B6
&lt;/pre&gt;
&lt;pre lang=&quot;C&quot;&gt;
asm volatile(&quot;ldab	0x4000&quot;);
asm volatile(&quot;jsr	0xC9B6&quot;);
&lt;/pre&gt;
Really the way to tell is to dump C9B6 or the function that you want an run it through a HC12 Disassembler.</description>
		<content:encoded><![CDATA[<p>I am assuming you want to use something like an &#8220;MD&#8221; Memory Display in your code. I haven&#8217;t done this myself but I would venture to guess you could acheve this in one of two ways.</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #993333;">typedef</span> <span style="color: #993333;">void</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">*</span>protoMemoryDisplay<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #339933;">*,</span><span style="color: #993333;">void</span><span style="color: #339933;">*</span> <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
protoMemoryDisplay MemoryDisplay <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>protoMemoryDisplay<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">0xC9B6</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
MemoryDisplay<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #208080;">0x4000</span><span style="color: #339933;">,</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #208080;">0x4400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>OR</p>

<div class="wp_syntax"><div class="code"><pre class="asm" style="font-family:monospace;">ldab	<span style="color: #0000ff;">4000</span>
jsr	C9B6</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">asm <span style="color: #993333;">volatile</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;ldab	0x4000&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
asm <span style="color: #993333;">volatile</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;jsr	0xC9B6&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Really the way to tell is to dump C9B6 or the function that you want an run it through a HC12 Disassembler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tristan</title>
		<link>http://www.zxcdev.com/2010/04/hc12-read-string/comment-page-1/#comment-5</link>
		<dc:creator>Tristan</dc:creator>
		<pubDate>Tue, 13 Apr 2010 21:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.zxcdev.com/?p=51#comment-5</guid>
		<description>Hey have you gotten the mon12 commands to work within your code? I got the address from your blog entry, but I can&#039;t seem to get it to respond with anything but &quot;bad argument&quot;.</description>
		<content:encoded><![CDATA[<p>Hey have you gotten the mon12 commands to work within your code? I got the address from your blog entry, but I can&#8217;t seem to get it to respond with anything but &#8220;bad argument&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

