lkml.org 
[lkml]   [2005]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 387 emulator hack - mutant AAD trick - any objections?
Date
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-27 11:48    [W:0.055 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site