質問するログイン新規登録

回答編集履歴

2

引用をコードに変更

2019/10/23 03:24

投稿

rubato6809
rubato6809

スコア1382

answer CHANGED
@@ -2,10 +2,11 @@
2
2
  This directive sets the value of symbol to expression. It is synonymous with `.set'; see section .set symbol, expression.
3
3
 
4
4
  なので
5
+ ```as
6
+ msg: .ascii "hello world\n"
7
+ msgend: .equ len, msgend - msg
8
+ ```
5
9
 
6
- > msg: .ascii "hello world\n"
7
- > msgend: .equ len, msgend - msg
8
-
9
10
  は ``` len == msgend - msg ``` とlenの値を指定する、という意味です。
10
11
 
11
12
  - msg は "hello world\n" の先頭アドレス

1

リンク追加

2019/10/23 03:24

投稿

rubato6809
rubato6809

スコア1382

answer CHANGED
@@ -1,8 +1,6 @@
1
- .equ symbol, expression
1
+ [.equ symbol, expression](https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html#SEC86)
2
2
  This directive sets the value of symbol to expression. It is synonymous with `.set'; see section .set symbol, expression.
3
3
 
4
- The syntax for equ on the HPPA is `symbol .equ expression'.
5
-
6
4
  なので
7
5
 
8
6
  > msg: .ascii "hello world\n"