Section (.data .text .bss)
在Nasm檔案中分為三個區塊。
section .data
.....
section .text
.....
section .bss
.....data
section .data
filename db "this.txt".bss
.text
註解
Last updated
section .data
.....
section .text
.....
section .bss
....section .data
filename db "this.txt"Last updated
section .bss
variable: resb 4mov [variable], eaxmov eax, [variable]section.text
global _start
_start:
.....add eax, ebx ; 分號後面是註解 adds ebx to eax