Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > NDISASM: doesn'...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 4629 of 4646
Post > Topic >>

NDISASM: doesn't recognize all Mod/RM extension opcodes?

by "Alexei A. Frounze" <spamtrap@[EMAIL PROTECTED] > Apr 24, 2008 at 05:19 AM

I didn't try the latest NDISASM, but the 0.98.35 that I have doesn't
disassembly correctly this:
db 0x82, 0xc0, 0x01 ; add Eb, Ib
I get the following disassembly in 16-bit mode:
0000000C  82                db 0x82
0000000D  C001B8            rol byte [bx+di],0xb8

Interestingly, this seems to be exactly the same instruction
(functionally) as this one:
db 0x80, 0xc0, 0x01 ; add Eb, Ib
for which I correctly get:
00000006  80C001            add al,0x1

Even more interestingly, the AMD documentation has both of these in
table A-6 of volume 3. In there 82 /r is additionally marked as
invalid in 64-bit mode. Whereas the intel documentation is overly
brief in its table A-6 of volume 2B.
At the same time neither manual in the sections describing ADD/ADC/SUB/
SBB/AND/OR/XOR/CMP lists the 82 /r encoding. Yet, the instructions
with the 82 /r encoding work (in at least non-64-bit modes).
Instructions to be deprecated? :)

Any comments?




 9 Posts in Topic:
NDISASM: doesn't recognize all Mod/RM extension opcodes?
"Alexei A. Frounze&q  2008-04-24 05:19:57 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
"Wolfgang Kern"  2008-04-24 21:41:08 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
"Rod Pemberton"  2008-04-25 03:45:46 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
Frank Kotler <spamtra  2008-04-25 18:07:13 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
Robert Redelmeier <red  2008-04-25 18:39:57 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
Frank Kotler <spamtra  2008-04-25 19:29:23 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
Robert Redelmeier <red  2008-04-25 20:49:05 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
Frank Kotler <spamtra  2008-04-25 21:58:42 
Re: NDISASM: doesn't recognize all Mod/RM extension opcodes?
Chuck Crayne <spamtra  2008-04-25 16:05:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 13:06:31 CDT 2008.