###### tags: `組合語言` # 組合語言共筆 6 : Assembly Syntax Elements <br> ## 組合語言主要元素 組合語言主要有五大 Element 類別 :::warning 1. **Label** : > label 代表存放的 memory 位置 > ex : label main 就是存放 main function 的位置,寫成 main: ... 2. **Assembler Directives** ( 組譯器指引 ) : - [筆記 : Assembler Directives ](/dVTRyP9qRw-Czt1tMcWLgQ) > 用來宣告 Assembler 執行時的指令,最前面都會加上 "." 符號 > ex : .data、.text、.asciz 3. **Instructions and Pseudo-Instruction** ( 指令 / 虛擬指令 ) > 對記憶體、Register 進行操作、提供指示 > ex : ldr、mov ... 4. **Operands** : > 用來表示不同的暫存器、常數、記憶體位置 .... > ex : r0、pc、#0 ... 5. **Comment** : > 註解,可以使用 "@" 或 /**/ 作註解 > ex : @ 我是註解 :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up