sprintf format bug

This commit is contained in:
Kelvin Sherlock 2013-02-05 23:58:51 -05:00
parent 42c6b1751e
commit 392a93a623

View File

@ -1023,11 +1023,11 @@ static ULO cpuDisMovep(ULO prc, UWO opc, STR *sdata, STR *sinstruction, STR *sop
sprintf(sinstruction, "MOVEP.%c", sizech);
if (to_mem)
{
sprintf(soperands, "D%1d,$.4X(A%d)", dataregno, disp, adrregno);
sprintf(soperands, "D%1d,$%.4X(A%d)", dataregno, disp, adrregno);
}
else
{
sprintf(soperands, "$.4X(A%1d),D%1d,", disp, adrregno, dataregno);
sprintf(soperands, "$%.4X(A%1d),D%1d,", disp, adrregno, dataregno);
}
return prc + 4;
}