docs: update README with project description and fix bit display order

Fix bit display order in adder demos to show most significant bit first
This commit is contained in:
sanbuphy
2026-03-04 15:13:28 +08:00
parent 87b150a3e7
commit c927f03018
3 changed files with 11 additions and 9 deletions
@@ -69,7 +69,7 @@
v-for="(b, i) in bitsA"
:key="'a' + i"
class="bit"
:class="{ hl: activeBit === i }"
:class="{ hl: activeBit === (bitCount - 1 - i) }"
>{{ b }}</span>
</span>
<span class="binary-dec">({{ clampedA }})</span>
@@ -81,7 +81,7 @@
v-for="(b, i) in bitsB"
:key="'b' + i"
class="bit"
:class="{ hl: activeBit === i }"
:class="{ hl: activeBit === (bitCount - 1 - i) }"
>{{ b }}</span>
</span>
<span class="binary-dec">({{ clampedB }})</span>
@@ -93,7 +93,7 @@
v-for="(b, i) in bitsSum"
:key="'s' + i"
class="bit result-bit"
:class="{ hl: activeBit === i }"
:class="{ hl: activeBit === (bitCount - 1 - i) }"
>{{ b }}</span>
</span>
<span class="binary-dec">({{ resultDec }}{{ overflow ? ' 溢出' : '' }})</span>