11 lines
2.2 KiB
XML
11 lines
2.2 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300" role="img" aria-labelledby="title desc">
|
|
<title id="title">Od wartości do bajtów pamięci</title><desc id="desc">Wartość 173 ma reprezentację binarną i szesnastkową. Słowo 0x12345678 jest zapisane w pamięci little-endian.</desc>
|
|
<defs><marker id="a" markerWidth="9" markerHeight="9" refX="8" refY="3" orient="auto"><path d="M0 0L0 6L9 3z" fill="#334155"/></marker><style>.b{fill:#f8fafc;stroke:#334155;stroke-width:2}.x{fill:#dbeafe;stroke:#2563eb}.m{fill:#dcfce7;stroke:#16a34a}.t{font:700 19px sans-serif;fill:#0f172a}.s{font:15px sans-serif;fill:#334155}.l{stroke:#334155;stroke-width:3;marker-end:url(#a)}</style></defs>
|
|
<rect width="640" height="300" fill="white"/>
|
|
<rect class="b" x="25" y="35" width="125" height="75" rx="12"/><text class="t" x="88" y="68" text-anchor="middle">173₁₀</text><text class="s" x="88" y="93" text-anchor="middle">wartość</text>
|
|
<path class="l" d="M150 72H205"/><rect class="b x" x="205" y="25" width="190" height="95" rx="12"/><text class="t" x="300" y="60" text-anchor="middle">1010 1101₂</text><text class="t" x="300" y="90" text-anchor="middle">AD₁₆</text><text class="s" x="300" y="112" text-anchor="middle">te same bity</text>
|
|
<text class="t" x="25" y="170">0x12345678</text><text class="s" x="25" y="194">32-bitowe słowo</text><path class="l" d="M155 180H215"/>
|
|
<g transform="translate(215 145)"><rect class="b m" width="92" height="75"/><rect class="b m" x="92" width="92" height="75"/><rect class="b m" x="184" width="92" height="75"/><rect class="b m" x="276" width="92" height="75"/><text class="t" x="46" y="35" text-anchor="middle">78</text><text class="t" x="138" y="35" text-anchor="middle">56</text><text class="t" x="230" y="35" text-anchor="middle">34</text><text class="t" x="322" y="35" text-anchor="middle">12</text><text class="s" x="46" y="62" text-anchor="middle">addr+0</text><text class="s" x="138" y="62" text-anchor="middle">addr+1</text><text class="s" x="230" y="62" text-anchor="middle">addr+2</text><text class="s" x="322" y="62" text-anchor="middle">addr+3</text></g>
|
|
<text class="s" x="399" y="260" text-anchor="middle">little-endian: najmłodszy bajt pod najniższym adresem</text>
|
|
</svg>
|