<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[0b00111001 -&amp;gt; 0x39]]></title><description><![CDATA[<p>Guten Abend</p>
<p>Mein Iar-Compiler (AVR) meckert, sobald er auf die binaere Darstellung stösst. Beispiel: PORTB = 0b00111001 akzeptiert er nicht und will unbedingt ein 0x39 sehen.<br />
Der GCC oder der Imagecraft Compiler haben damit aber keine Probleme.</p>
<p>Hat jemand eine Idee, wie ich dieses Verhalten umschiffen kann?</p>
<p>Besten Dank im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/146750/0b00111001-gt-0x39</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 19:27:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/146750.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 May 2006 14:59:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 14:59:37 GMT]]></title><description><![CDATA[<p>Guten Abend</p>
<p>Mein Iar-Compiler (AVR) meckert, sobald er auf die binaere Darstellung stösst. Beispiel: PORTB = 0b00111001 akzeptiert er nicht und will unbedingt ein 0x39 sehen.<br />
Der GCC oder der Imagecraft Compiler haben damit aber keine Probleme.</p>
<p>Hat jemand eine Idee, wie ich dieses Verhalten umschiffen kann?</p>
<p>Besten Dank im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054923</guid><dc:creator><![CDATA[mkmk]]></dc:creator><pubDate>Wed, 10 May 2006 14:59:37 GMT</pubDate></item><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 15:01:43 GMT]]></title><description><![CDATA[<p>Naja ich würd sagen du guckst mal in die Anleitung zu diesem Compiler, 0b... gehört nicht zum Standard.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054927</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 10 May 2006 15:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 15:15:21 GMT]]></title><description><![CDATA[<p>Das Compiler-Handbuch habe ich schon durchgeackert. Steht nichts darin. Aber dass die binaere Darstellungsform nicht Standart ist, habe ich nicht gewusst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054936</guid><dc:creator><![CDATA[mkmk]]></dc:creator><pubDate>Wed, 10 May 2006 15:15:21 GMT</pubDate></item><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 15:33:47 GMT]]></title><description><![CDATA[<p>Hallo, ich mach auch viel mit AVR und habe keine Lösung. Ich verwende immer Hex, und die binäre Darstellung als Kommentar dahinter.</p>
<p>Villeicht kann man auch in C++ eine Umwandlung als Metatemplate schreiben. Aber ich weiß gar nicht inwiefern C++ unterstützt ist (dachte es ist nicht ganz implementiert). Ich verwende nur C.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054950</guid><dc:creator><![CDATA[Fachman für AVR]]></dc:creator><pubDate>Wed, 10 May 2006 15:33:47 GMT</pubDate></item><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 16:05:01 GMT]]></title><description><![CDATA[<p>Das einzige, was mir als (Schnapps)Idee einfaellt, ist eine Header-Datei zu erstellen und dort 256 defines einzutragen</p>
<p>#define b00000000 0x00<br />
#define b00000001 0x01<br />
#define b11111111 0xFF</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1054965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1054965</guid><dc:creator><![CDATA[mkmk]]></dc:creator><pubDate>Wed, 10 May 2006 16:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 18:01:26 GMT]]></title><description><![CDATA[<blockquote>
<p>Villeicht kann man auch in C++ eine Umwandlung als Metatemplate schreiben.</p>
</blockquote>
<p>Kann man. Ohne Error-Checks:</p>
<pre><code class="language-cpp">template &lt;unsigned int I&gt;
struct bin {
    enum { value = bin&lt;I/10&gt;::value &lt;&lt; 1 | I % 10 };
};

template &lt;&gt;
struct bin&lt;0&gt; {
    enum { value = 0 };
};

int main() { 
cout &lt;&lt; bin&lt;1001&gt;::value &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1055074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1055074</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Wed, 10 May 2006 18:01:26 GMT</pubDate></item><item><title><![CDATA[Reply to 0b00111001 -&amp;gt; 0x39 on Wed, 10 May 2006 18:06:41 GMT]]></title><description><![CDATA[<p>mal eben gemerkt.. thanks</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1055078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1055078</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Wed, 10 May 2006 18:06:41 GMT</pubDate></item></channel></rss>