954,490 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

assembly equivalent of a C statement

I have source code written in assembly for a radio tag and we need a quick way to change the id number each time it is programmed. My background is in C and I want to know if there is an equivalent to C's #define statement in assembly.

The #define statement defines a label a value and when the label is found in the code the compiler replaces it with the value.

I would appreciate it if you assembly gurus could help me out on this.

bignick270
Newbie Poster
1 post since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

Hi....
one of the suited options is make use of a macro.... most of the assembly languages support the macro... which performs almost the same function as that of the #define..

abhisdm
Light Poster
42 posts since Aug 2008
Reputation Points: 10
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You