<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cobol on Marco Gabriel Blog</title>
    <link>https://www.marcogabriel.com/tags/cobol/</link>
    <description>Recent content in Cobol on Marco Gabriel Blog</description>
    <image>
      <title>Marco Gabriel Blog</title>
      <url>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://www.marcogabriel.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 04 Oct 2005 20:27:00 +0200</lastBuildDate>
    <atom:link href="https://www.marcogabriel.com/tags/cobol/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cobol und die moderne Welt</title>
      <link>https://www.marcogabriel.com/posts/75-cobol-und-die-moderne-welt/</link>
      <pubDate>Tue, 04 Oct 2005 20:27:00 +0200</pubDate>
      <guid>https://www.marcogabriel.com/posts/75-cobol-und-die-moderne-welt/</guid>
      <description>&lt;p&gt;Zufällig liefen mir heute Daten über den Weg, die aus einem in Cobol geschriebenen und zugegeben schon etwas älteren Programm stammen. Beim auseinandernehmen der Datenstrukturen stieß ich auf einen für mich ziemlich seltsam anmutenden Datentyp: &lt;code&gt;comp-3&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Stell dir vor, du hast eine gegebene Zahl &lt;code&gt;1234567&lt;/code&gt;, die du &lt;code&gt;comp-3&lt;/code&gt; codiert speicherst. Du gibst also &lt;code&gt;1234567&lt;/code&gt; rein und kriegst hexadezimal &lt;code&gt;0x12&lt;/code&gt;, &lt;code&gt;0x34&lt;/code&gt;, &lt;code&gt;0x56&lt;/code&gt;, &lt;code&gt;0x7c&lt;/code&gt; raus.&lt;/p&gt;
&lt;p&gt;Der Aufbau ist an sich recht leicht: Man packt jeweils eine Ziffer in ein 4-bit nybble (also ein teil-byte) und hängt ganz am Schluß noch mal in 4 bit ein &lt;code&gt;0xC&lt;/code&gt; für positiv oder ein &lt;code&gt;0xD&lt;/code&gt; für negativ an. Klingt logisch, nicht?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
