Skip to content

Commit 9de6d34

Browse files
committed
Translate untranslated lines in asm.md
1 parent 942d8bb commit 9de6d34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unsafe/asm.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,12 +703,22 @@ assert_eq!(a, 5);
703703
# }
704704
```
705705

706+
<!--
706707
This will decrement the `{0}` register value from 10 to 3, then add 2 and store it in `a`.
708+
-->
709+
このコードは、`{0}`のレジスタの値を10から3にデクリメントし、2を加え、`a`にその値を保存します。
707710

711+
<!--
708712
This example shows a few things:
713+
-->
714+
この例は、以下のことを示しています:
709715

716+
<!--
710717
- First, that the same number can be used as a label multiple times in the same inline block.
711718
- Second, that when a numeric label is used as a reference (as an instruction operand, for example), the suffixes “b” (“backward”) or ”f” (“forward”) should be added to the numeric label. It will then refer to the nearest label defined by this number in this direction.
719+
-->
720+
- まず、ラベルとして同じ数字を複数回、同じインラインブロックで利用できます。
721+
- つぎに、数字のラベルが参照として(例えば、命令のオペランドに)利用された場合、"b"("後方")や"f"("前方")の接尾辞が数字のラベルに追加されなくてはなりません。そうすることで、この数字の指定された方向の最も近いラベルを参照できます。
712722

713723
[local labels]: https://sourceware.org/binutils/docs/as/Symbol-Names.html#Local-Labels
714724
[an LLVM bug]: https://bugs.llvm.org/show_bug.cgi?id=36144

0 commit comments

Comments
 (0)