Fixing another bug in converting

PPC 
stwu r1,-32(r1) 

equal with intel
mov [esp-32],esp; 
mov esp, esp - 32; 

svn path=/trunk/; revision=25518
This commit is contained in:
Magnus Olsen
2007-01-18 22:09:08 +00:00
parent a286bd796f
commit 0cb4e210e1
3 changed files with 16 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ CPU_INT ConvertToIA32Process( FILE *outfp,
{
/* dest [eax - 0x20], source reg */
fprintf(outfp,"mov [");
fprintf(outfp,"mov dword [");
standardreg( RegTableCount,
pMystart->dst,
setup_ebp, outfp);
@@ -199,6 +199,19 @@ CPU_INT ConvertToIA32Process( FILE *outfp,
pMystart->src,
setup_ebp, outfp);
fprintf(outfp,"\n");
if ((pMystart->type & 128)== 128)
{
fprintf(outfp,"mov ");
standardreg( RegTableCount,
pMystart->src,
setup_ebp, outfp);
fprintf(outfp," , ");
standardreg( RegTableCount,
pMystart->dst,
setup_ebp, outfp);
fprintf(outfp," %d\n",pMystart->dst_extra);
}
}
}