Addenum to IA-32 assembler support enhancements from HEAD branch.

This commit is contained in:
Andy Polyakov 2003-01-12 22:40:09 +00:00
parent 1d76d78858
commit a6816db813
2 changed files with 6 additions and 4 deletions

View File

@ -32,8 +32,9 @@ sub fcrypt_body
&xor( $R, $R); &xor( $R, $R);
# PIC-ification:-) # PIC-ification:-)
if ($cpp) { &picmeup("edx","DES_SPtrans"); } &picmeup("edx","DES_SPtrans");
else { &lea("edx",&DWP("DES_SPtrans")); } #if ($cpp) { &picmeup("edx","DES_SPtrans"); }
#else { &lea("edx",&DWP("DES_SPtrans")); }
&push("edx"); # becomes &swtmp(1) &push("edx"); # becomes &swtmp(1)
# #
&mov($trans,&wparam(1)); # reloaded with DES_SPtrans in D_ENCRYPT &mov($trans,&wparam(1)); # reloaded with DES_SPtrans in D_ENCRYPT

View File

@ -73,8 +73,9 @@ sub DES_encrypt
} }
# PIC-ification:-) # PIC-ification:-)
if ($cpp) { &picmeup($trans,"DES_SPtrans"); } &picmeup($trans,"DES_SPtrans");
else { &lea($trans,&DWP("DES_SPtrans")); } #if ($cpp) { &picmeup($trans,"DES_SPtrans"); }
#else { &lea($trans,&DWP("DES_SPtrans")); }
&mov( "ecx", &wparam(1) ); &mov( "ecx", &wparam(1) );
&cmp("ebx","0"); &cmp("ebx","0");