This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

getting vriable address

how do i get variable address defined in C inside assembly instructions while writing some assembly instructions between C code.

Ashutosh Tiwari
Bangalore

Parents
  • then,,,, the persons not clever and talented that they think ??????????????

    When debating with a 5-year-old, you can use reverse psychology to get them to do just about anything. Since you are trying reversed psychology, I must assume that you expect answers from 5-year-olds. Alas, not too many have started with assembly programming at that age...

    If you have a school assignment that specifically requires you to use inline assembler: Please write a post telling us that. If you do not have a specific requirement to use inline assembler - do look at the suggestions you have received: Optimize your C code, or write the whole function in assembler. Just look at the disassembly of the C function - that will give you a skeleton for your new assembler file.

Reply
  • then,,,, the persons not clever and talented that they think ??????????????

    When debating with a 5-year-old, you can use reverse psychology to get them to do just about anything. Since you are trying reversed psychology, I must assume that you expect answers from 5-year-olds. Alas, not too many have started with assembly programming at that age...

    If you have a school assignment that specifically requires you to use inline assembler: Please write a post telling us that. If you do not have a specific requirement to use inline assembler - do look at the suggestions you have received: Optimize your C code, or write the whole function in assembler. Just look at the disassembly of the C function - that will give you a skeleton for your new assembler file.

Children
No data