www.digitalmars.com         C & C++   DMDScript  

c++ - Regarding inline assmebler

reply "Greg Peet" <admin REMOVEMEgregpeet.com> writes:
I read the docs with dmc and noticed that the EBX register is reserved (at
least that's how it read by my eyes). But then later you mention that EBX is
supported? Do you mean supported by other opcodes handling that register
only...or that it can manually be manipulated by me? Just a confusion that I
hoped to clear up =)

-- 
Gregory Peet

"Debugging is twice as hard as writing the code in the first place.
 Therefore, if you write the code as cleverly as possible, you are,
 by definition, not smart enough to debug it."
-Brian Kernighan
Aug 27 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Greg Peet" <admin REMOVEMEgregpeet.com> wrote in message
news:bihvfn$28vj$1 digitaldaemon.com...
 I read the docs with dmc and noticed that the EBX register is reserved (at
 least that's how it read by my eyes). But then later you mention that EBX

 supported? Do you mean supported by other opcodes handling that register
 only...or that it can manually be manipulated by me? Just a confusion that

 hoped to clear up =)

I'm not sure what you mean. You can use EBX like any other register, but the calling convention requires that it be saved/restored.
Aug 27 2003
parent "Greg Peet" <admin REMOVEMEgregpeet.com> writes:
Sorry if I was cryptic, you got my question head on =)

"Walter" <walter digitalmars.com> wrote in message
news:bij5m0$13kj$1 digitaldaemon.com...
|
|
| "Greg Peet" <admin REMOVEMEgregpeet.com> wrote in message
| news:bihvfn$28vj$1 digitaldaemon.com...
| > I read the docs with dmc and noticed that the EBX register is reserved
(at
| > least that's how it read by my eyes). But then later you mention that
EBX
| is
| > supported? Do you mean supported by other opcodes handling that register
| > only...or that it can manually be manipulated by me? Just a confusion
that
| I
| > hoped to clear up =)
|
| I'm not sure what you mean. You can use EBX like any other register, but
the
| calling convention requires that it be saved/restored.
|
|
Aug 27 2003