🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #891

Re: Undocumented instructions in x86 CPUs

#891
From: Peter Gutmann
Date: Fri, 06 Nov 1992 03:49
25 lines
1702 bytes
In <15341@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:

>However, it *doesn't* mention what happens in AAM if the second byte of
>the instruction *isn't* 0A.  The "One-Byte Opcode Map" on page A-4
>shows AAM in the D4 location, which seems to indicate that D4 is the AAM
>opcode, so maybe, in fact, the second byte is a secret operand that's
>the base of the number system for which it's doing the adjustment.

Correct.  Supposedly Intel ran out of space in the microcode for the operand
so they made it external.  You can use other operands if you want.

>Note, though, that they may have cut corners in future implementations,
>such as the 586^H^H^HPentium, so that hex A is the only operand that
>works correctly.

It works with everything up to a '386, but does *not* work on the NEC CPU's.

There is some other instruction which does this as well and which does work
on the NEC CPU's (I think), but I can't look up the exact details since all the
info is at home.

Peter.
--
    pgut1@cs.aukuni.ac.nz || peterg@kcbbs.gen.nz || peter@nacjack.gen.nz
			       (In order of preference)
Technical Details
Message-ID: <1992Nov6.034917.11358@cs.aukuni.ac.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!sgiblab!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!pgut1
References: <mostert.51@cs.sun.ac.za> <FH==sq#@engin.umich.edu> <15341@auspex-gw.auspex.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!sgiblab!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!pgut1
Newsgroups: comp.sys.intel
Subject: Re: Undocumented instructions in x86 CPUs
Message-ID: <1992Nov6.034917.11358@cs.aukuni.ac.nz>
From: pgut1@cs.aukuni.ac.nz (Peter Gutmann)
Date: Fri, 6 Nov 1992 03:49:17 GMT
References: <mostert.51@cs.sun.ac.za> <FH==sq#@engin.umich.edu> <15341@auspex-gw.auspex.com>
Organization: Computer Science Dept. University of Auckland
Lines: 25