mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Denis Vlasenko <vda@ilport.com.ua>
To: <cutaway@bellsouth.net>, <linux-kernel@vger.kernel.org>
Subject: Re: 387 emulator hack - mutant AAD trick - any objections?
Date: Fri, 27 May 2005 12:35:41 +0300	[thread overview]
Message-ID: <200505271235.41353.vda@ilport.com.ua> (raw)
In-Reply-To: <007001c56290$25dd4d00$2800000a@pc365dualp2>

On Friday 27 May 2005 10:44, cutaway@bellsouth.net wrote:
> Brain fade...example should be:
> 
> 1) Start with AX = 0x0023
> 2) Execute AAM instruction
> 3) Now AX = 0x0305 (unpacked BCD)
> 4) Execute base 16 AAD instruction
> 5) Now AX = 0x0035 (packed BCD)

Intel syntax:

shl ah,4
or al,ah
mov ah,0  (if needed)

No need to use AAD16, it is 
a) doesnt work on some obscure ancient NEC x86 clones IIRC
b) is microcoded (slow)
--
vda


  reply	other threads:[~2005-05-27  9:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-27  7:44 cutaway
2005-05-27  9:35 ` Denis Vlasenko [this message]
2005-05-27 11:43   ` cutaway
2005-05-27 12:24   ` Maciej W. Rozycki
2005-05-27 13:47     ` cutaway
  -- strict thread matches above, loose matches on Subject: below --
2005-05-27  7:11 cutaway
2005-05-27  7:25 ` Mikael Pettersson
2005-05-27 12:17   ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200505271235.41353.vda@ilport.com.ua \
    --to=vda@ilport.com.ua \
    --cc=cutaway@bellsouth.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®