4

Does Assembly (or at least NASM) have an equivalent to the C/C++ #define?

I want to do something like this:

#define i [ebp - 4]
John
  • 1,049
  • 1
  • 14
  • 34

1 Answers1

2

NASM:

%define i [ebp - 4]

Source: http://www.nasm.us/doc/nasmdoc4.html

edit: Maybe "equ" is interesting for you, too. Have a look at this thread: What's the difference between %define and equ in NASM?

Community
  • 1
  • 1
Welcor
  • 2,431
  • 21
  • 32