Mail Archives: djgpp/1997/10/12/03:32:07
Nate Eldredge <eldredge AT ap DOT net> wrote:
: Yeah, this is fsdb's fault. The problem is that `cdw' and `cdq' have the
: same opcode, and are distinguished by either their presence in a 16- or
: 32-bit segment, or by a prefix byte. (An ugly kludge on Intel's part, IMHO.)
Thank you very much for this explanation, which teaches me something about
assembly generally as well as fsdb.
: This is, AFAIK, the only case in which this actually changes the name of the
: opcode (in Intel syntax). Usually it's a matter of using %ax vs. %eax, 16-
: vs. 32-bit registers. It seems fsdb is not smart enough to be able to change
: the opcode name depending on the operand size. I guess you can either live
: with it, or add the feature to fsdb.
Would that I had that level of competence <grin> -- and I certainly
wouldn't complain about fsdb's performance on this point. It was just a
point of curiosity, which you have amply satisfied.
Incidentally, while I often use fsdb either to debug or to test a program
for possible bugs (suspecting that at times this might prevent a crash if
an error does occur), I also enjoy using it just to watch the registers in
action. The fine point we've been discussing quite aside, a 64-bit
division is very impressive and even beautiful to watch.
: Nate Eldredge
: eldredge AT ap DOT net
Most appreciatively,
Margo Schulter
mschulter AT value DOT net
- Raw text -