#define 在汇编中的选择?
#define alternative in Assembly?
Assembly(或至少 NASM)是否有等同于 C/C++ #define 的东西?
我想做这样的事情:
#define i [ebp - 4]
NASM:
%define i [ebp - 4]
来源:http://www.nasm.us/doc/nasmdoc4.html
编辑:
也许 "equ" 对您来说也很有趣。看看这个线程:
What's the difference between %define and equ in NASM?
Assembly(或至少 NASM)是否有等同于 C/C++ #define 的东西?
我想做这样的事情:
#define i [ebp - 4]
NASM:
%define i [ebp - 4]
来源:http://www.nasm.us/doc/nasmdoc4.html
编辑: 也许 "equ" 对您来说也很有趣。看看这个线程: What's the difference between %define and equ in NASM?