pete wrote:
>
> Kenneth Brody wrote:
>
> > Consider a simple disassembly of:
> >
> > push 0x1234
> >
> > Is "0x1234" a constant, or the address of a variable?
>
> The concepts of "address" and "constant",
> aren't mutually exclusive.
>
> N869
> 6.6 Constant expressions
>
> [#9] An address constant is a null pointer, a pointer to an
> lvalue designating an object of static storage duration, or
> to a function designator;
However, in the OPs case of wanting to disassemble, modify,
reassemble, it makes a big difference. Consider:
foo(&x);
bar(0x1234);
If &x==0x1234, it is quite possible to see this as a disassembly:
push 0x1234
call foo
push 0x1234
call bar
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody |
www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net |
www.fptech.com | <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <private.php?do=newpm&u=>