Skip to content

Commit 53790a3

Browse files
committed
Translate untranslated lines in asm.md
1 parent abe45f6 commit 53790a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unsafe/asm.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,19 @@ If you use a smaller data type (e.g. `u16`) with an operand and forget to use te
620620
より小さなデータ型(例:`u16`)をオペランドに利用し、テンプレート修飾子を使い忘れた場合、
621621
コンパイラは警告を出力し、正しい修飾子を提案してくれます。
622622

623+
<!--
623624
## Memory address operands
625+
-->
626+
## メモリアドレスオペランド
624627

628+
<!--
625629
Sometimes assembly instructions require operands passed via memory addresses/memory locations.
626630
You have to manually use the memory address syntax specified by the target architecture.
627631
For example, on x86/x86_64 using Intel assembly syntax, you should wrap inputs/outputs in `[]` to indicate they are memory operands:
632+
-->
633+
アセンブリ命令はオペランドがメモリアドレスやメモリロケーション経由で渡される必要なこともあります。
634+
そのときは手動で、ターゲットのアーキテクチャによって指定されたメモリアドレスのシンタックスを利用しなくてはなりません。
635+
例えば、Intelのアセンブリシンタックスを使うx86/x86_64の場合、入出力を`[]`で囲んで、メモリオペランドであることを示さなくてはなりません。
628636

629637
```rust
630638
# #[cfg(target_arch = "x86_64")] {

0 commit comments

Comments
 (0)