<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RISC-V Code on ENSEIRB-MATMECA</title><link>https://emmk-73cb1c.gitlab.io/fr/notes/riscv/</link><description>Recent content in RISC-V Code on ENSEIRB-MATMECA</description><generator>Hugo -- gohugo.io</generator><language>fr</language><atom:link href="https://emmk-73cb1c.gitlab.io/fr/notes/riscv/index.xml" rel="self" type="application/rss+xml"/><item><title>Bases du langage d'assemblage RISC-V</title><link>https://emmk-73cb1c.gitlab.io/fr/notes/riscv/basic/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://emmk-73cb1c.gitlab.io/fr/notes/riscv/basic/</guid><description>&lt;div class="note-card ">
&lt;div class="item">
&lt;h5 class="note-title">&lt;span>RISC-V: Addition&lt;/span>&lt;/h5>
&lt;div class="card">
&lt;div class="card-body">&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-asm" data-lang="asm">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x1 &amp;lt;- x2 + 4
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">addi&lt;/span> &lt;span style="color:#66d9ef">x1&lt;/span>, &lt;span style="color:#66d9ef">x2&lt;/span>, &lt;span style="color:#ae81ff">4&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x3 &amp;lt;- x4 + x5
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">add&lt;/span> &lt;span style="color:#66d9ef">x3&lt;/span>, &lt;span style="color:#66d9ef">x4&lt;/span>, &lt;span style="color:#66d9ef">x5&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="note-card ">
&lt;div class="item">
&lt;h5 class="note-title">&lt;span>RISC-V: Opérations Logiques&lt;/span>&lt;/h5>
&lt;div class="card">
&lt;div class="card-body">&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-asm" data-lang="asm">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x1 &amp;lt;- x2 | 4 (OU logique)
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">ori&lt;/span> &lt;span style="color:#66d9ef">x1&lt;/span>, &lt;span style="color:#66d9ef">x2&lt;/span>, &lt;span style="color:#ae81ff">4&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x3 &amp;lt;- x4 | x5 (OU logique)
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">or&lt;/span> &lt;span style="color:#66d9ef">x3&lt;/span>, &lt;span style="color:#66d9ef">x4&lt;/span>, &lt;span style="color:#66d9ef">x5&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x1 &amp;lt;- x2 &amp;amp; 4 (ET logique)
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">andi&lt;/span> &lt;span style="color:#66d9ef">x1&lt;/span>, &lt;span style="color:#66d9ef">x2&lt;/span>, &lt;span style="color:#ae81ff">4&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x3 &amp;lt;- x4 &amp;amp; x5 (ET logique)
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">and&lt;/span> &lt;span style="color:#66d9ef">x3&lt;/span>, &lt;span style="color:#66d9ef">x4&lt;/span>, &lt;span style="color:#66d9ef">x5&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x1 &amp;lt;- x2 ^ 4 (XOR logique)
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">xori&lt;/span> &lt;span style="color:#66d9ef">x1&lt;/span>, &lt;span style="color:#66d9ef">x2&lt;/span>, &lt;span style="color:#ae81ff">4&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x3 &amp;lt;- x4 ^ x5 (XOR logique)
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">xor&lt;/span> &lt;span style="color:#66d9ef">x3&lt;/span>, &lt;span style="color:#66d9ef">x4&lt;/span>, &lt;span style="color:#66d9ef">x5&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="note-card ">
&lt;div class="item">
&lt;h5 class="note-title">&lt;span>RISC-V: Rangement mémoire&lt;/span>&lt;/h5>
&lt;div class="card">
&lt;div class="card-body">&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-asm" data-lang="asm">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x2 &amp;lt;- 0x08000000
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">li&lt;/span> &lt;span style="color:#66d9ef">x2&lt;/span>, &lt;span style="color:#ae81ff">0x08000000&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># MEM[0x08000004] &amp;lt;- x1
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">sw&lt;/span> &lt;span style="color:#66d9ef">x1&lt;/span>, &lt;span style="color:#ae81ff">4&lt;/span>(&lt;span style="color:#66d9ef">x2&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;/div>
&lt;/div>
&lt;/div>
&lt;div class="note-card ">
&lt;div class="item">
&lt;h5 class="note-title">&lt;span>RISC-V: Chargement mémoire&lt;/span>&lt;/h5>
&lt;div class="card">
&lt;div class="card-body">&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-asm" data-lang="asm">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x2 &amp;lt;- 0x08000000
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">li&lt;/span> &lt;span style="color:#66d9ef">x2&lt;/span>, &lt;span style="color:#ae81ff">0x08000000&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># x1 &amp;lt;- MEM[0x08000000]
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">lw&lt;/span> &lt;span style="color:#66d9ef">x1&lt;/span>, &lt;span style="color:#ae81ff">0&lt;/span>(&lt;span style="color:#66d9ef">x2&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/div>
&lt;/div>
&lt;/div>
&lt;/div></description></item></channel></rss>