Fix matrix disassembly notation

Changed disassembler output to match gas input for operations on
transposed matrices where row != col.
This commit is contained in:
Bovine 2015-01-03 02:04:08 -07:00
parent 7131148cdb
commit 2ed4c1bd6b

View File

@ -460,7 +460,10 @@ const char *GetMatrixNotation(int reg, MatrixSize size)
default: c='?'; break;
}
if (transpose && c=='M') c='E';
sprintf(hej[yo],"%c%i%i%i",c,mtx,col,row);
if (transpose)
sprintf(hej[yo],"%c%i%i%i",c,mtx,row,col);
else
sprintf(hej[yo],"%c%i%i%i",c,mtx,col,row);
return hej[yo];
}