Jim*_*hel 10
.word分配空间并初始化数据..equ定义一个常量,但不为它分配任何空间.
所以,例如,您可能会说:
one .equ 1 ; defines a constant called "one"
counter: .word one ; allocates space and initializes it with the value 1
Run Code Online (Sandbox Code Playgroud)
不同之处在于.equ指令不在编译图像中分配任何空间.